Update generated APIs
This commit is contained in:
parent
e399d04d33
commit
99a5f8de62
|
@ -163,6 +163,7 @@
|
||||||
"/androidenterprise:v1/CollectionsListResponse": list_collections_response
|
"/androidenterprise:v1/CollectionsListResponse": list_collections_response
|
||||||
"/androidenterprise:v1/DevicesListResponse": list_devices_response
|
"/androidenterprise:v1/DevicesListResponse": list_devices_response
|
||||||
"/androidenterprise:v1/EnterprisesListResponse": list_enterprises_response
|
"/androidenterprise:v1/EnterprisesListResponse": list_enterprises_response
|
||||||
|
"/androidenterprise:v1/EnterprisesSendTestPushNotificationResponse": send_test_push_notification_response
|
||||||
"/androidenterprise:v1/EntitlementsListResponse": list_entitlements_response
|
"/androidenterprise:v1/EntitlementsListResponse": list_entitlements_response
|
||||||
"/androidenterprise:v1/GroupLicenseUsersListResponse": list_group_license_users_response
|
"/androidenterprise:v1/GroupLicenseUsersListResponse": list_group_license_users_response
|
||||||
"/androidenterprise:v1/GroupLicensesListResponse": list_group_licenses_response
|
"/androidenterprise:v1/GroupLicensesListResponse": list_group_licenses_response
|
||||||
|
@ -317,6 +318,7 @@
|
||||||
"/books:v1/books.promooffer.accept": accept_promo_offer
|
"/books:v1/books.promooffer.accept": accept_promo_offer
|
||||||
"/books:v1/books.promooffer.dismiss": dismiss_promo_offer
|
"/books:v1/books.promooffer.dismiss": dismiss_promo_offer
|
||||||
"/books:v1/books.promooffer.get": get_promo_offer
|
"/books:v1/books.promooffer.get": get_promo_offer
|
||||||
|
"/books:v1/Seriesmembership": series_membership
|
||||||
"/books:v1/books.volumes.associated.list": list_associated_volumes
|
"/books:v1/books.volumes.associated.list": list_associated_volumes
|
||||||
"/books:v1/books.volumes.mybooks.list": list_my_books
|
"/books:v1/books.volumes.mybooks.list": list_my_books
|
||||||
"/books:v1/books.volumes.recommended.list": list_recommended_volumes
|
"/books:v1/books.volumes.recommended.list": list_recommended_volumes
|
||||||
|
@ -508,6 +510,15 @@
|
||||||
"/content:v2/content.productstatuses.custombatch": batch_product_status
|
"/content:v2/content.productstatuses.custombatch": batch_product_status
|
||||||
"/content:v2/content.productstatuses.get": get_product_status
|
"/content:v2/content.productstatuses.get": get_product_status
|
||||||
"/content:v2/content.productstatuses.list": list_product_statuses
|
"/content:v2/content.productstatuses.list": list_product_statuses
|
||||||
|
"/content:v2/content.orders.advancetestorder": advance_test_order
|
||||||
|
"/content:v2/content.orders.getbymerchantorderid": get_order_by_merchant_order_id
|
||||||
|
"/content:v2/content.orders.cancellineitem": cancel_order_line_item
|
||||||
|
"/content:v2/content.orders.createtestorder": create_test_order
|
||||||
|
"/content:v2/content.orders.custombatch": custom_order_batch
|
||||||
|
"/content:v2/content.orders.gettestordertemplate": get_test_order_template
|
||||||
|
"/content:v2/content.orders.updatemerchantorderid": update_merchant_order_id
|
||||||
|
"/content:v2/content.orders.updateshipment": update_order_shipment
|
||||||
|
"/content:v2/content.orders.returnlineitem": return_order_line_item
|
||||||
"/coordinate:v1/CustomFieldDefListResponse": list_custom_field_def_response
|
"/coordinate:v1/CustomFieldDefListResponse": list_custom_field_def_response
|
||||||
"/coordinate:v1/JobListResponse": list_job_response
|
"/coordinate:v1/JobListResponse": list_job_response
|
||||||
"/coordinate:v1/LocationListResponse": list_location_response
|
"/coordinate:v1/LocationListResponse": list_location_response
|
||||||
|
@ -517,6 +528,16 @@
|
||||||
"/datastore:v1beta2/AllocateIdsResponse": allocate_ids_response
|
"/datastore:v1beta2/AllocateIdsResponse": allocate_ids_response
|
||||||
"/datastore:v1beta2/BeginTransactionRequest": begin_transaction_request
|
"/datastore:v1beta2/BeginTransactionRequest": begin_transaction_request
|
||||||
"/datastore:v1beta2/BeginTransactionResponse": begin_transaction_response
|
"/datastore:v1beta2/BeginTransactionResponse": begin_transaction_response
|
||||||
|
"/deploymentmanager:v2/DeploymentsListResponse": list_deployments_response
|
||||||
|
"/deploymentmanager:v2/ManifestsListResponse": list_manifests_response
|
||||||
|
"/deploymentmanager:v2/OperationsListResponse": list_operations_response
|
||||||
|
"/deploymentmanager:v2/ResourcesListResponse": list_resources_response
|
||||||
|
"/deploymentmanager:v2/TypesListResponse": list_types_response
|
||||||
|
"/deploymentmanager:v2/DeploymentsListResponse": list_deployments_response
|
||||||
|
"/deploymentmanager:v2/ManifestsListResponse": list_manifests_response
|
||||||
|
"/deploymentmanager:v2/OperationsListResponse": list_operations_response
|
||||||
|
"/deploymentmanager:v2/ResourcesListResponse": list_resources_response
|
||||||
|
"/deploymentmanager:v2/TypesListResponse": list_types_response
|
||||||
"/deploymentmanager:v2beta1/DeploymentsListResponse": list_deployments_response
|
"/deploymentmanager:v2beta1/DeploymentsListResponse": list_deployments_response
|
||||||
"/deploymentmanager:v2beta1/ManifestsListResponse": list_manifests_response
|
"/deploymentmanager:v2beta1/ManifestsListResponse": list_manifests_response
|
||||||
"/deploymentmanager:v2beta1/OperationsListResponse": list_operations_response
|
"/deploymentmanager:v2beta1/OperationsListResponse": list_operations_response
|
||||||
|
@ -584,6 +605,7 @@
|
||||||
"/dfareporting:v2.1/dfareporting.placements.generatetags": generate_placement_tags
|
"/dfareporting:v2.1/dfareporting.placements.generatetags": generate_placement_tags
|
||||||
"/discovery:v1/RestDescription/methods": api_methods
|
"/discovery:v1/RestDescription/methods": api_methods
|
||||||
"/discovery:v1/RestResource/methods": api_methods
|
"/discovery:v1/RestResource/methods": api_methods
|
||||||
|
"/discovery:v1/discovery.apis.getRest": get_rest_api
|
||||||
"/dns:v1/ChangesListResponse": list_changes_response
|
"/dns:v1/ChangesListResponse": list_changes_response
|
||||||
"/dns:v1/ManagedZonesListResponse": list_managed_zones_response
|
"/dns:v1/ManagedZonesListResponse": list_managed_zones_response
|
||||||
"/dns:v1/ResourceRecordSetsListResponse": list_resource_record_sets_response
|
"/dns:v1/ResourceRecordSetsListResponse": list_resource_record_sets_response
|
||||||
|
@ -686,6 +708,9 @@
|
||||||
"/genomics:v1/genomics.references.bases.list/start": start_position
|
"/genomics:v1/genomics.references.bases.list/start": start_position
|
||||||
"/genomics:v1/genomics.referencesets.get": get_reference_set
|
"/genomics:v1/genomics.referencesets.get": get_reference_set
|
||||||
"/genomics:v1/genomics.streamingReadstore.streamreads": stream_reads
|
"/genomics:v1/genomics.streamingReadstore.streamreads": stream_reads
|
||||||
|
"/genomics:v1/genomics.variantsets.export": export_variant_set
|
||||||
|
"/genomics:v1/genomics.variantsets.search": search_variant_sets
|
||||||
|
"/genomics:v1/genomics.referencesets.search": search_reference_sets
|
||||||
"/gmail:v1/gmail.users.getProfile": get_user_profile
|
"/gmail:v1/gmail.users.getProfile": get_user_profile
|
||||||
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request
|
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request
|
||||||
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request
|
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest": delete_account_request
|
||||||
|
@ -710,6 +735,7 @@
|
||||||
"/identitytoolkit:v3/identitytoolkit.relyingparty.uploadAccount": upload_account
|
"/identitytoolkit:v3/identitytoolkit.relyingparty.uploadAccount": upload_account
|
||||||
"/identitytoolkit:v3/identitytoolkit.relyingparty.verifyAssertion": verify_assertion
|
"/identitytoolkit:v3/identitytoolkit.relyingparty.verifyAssertion": verify_assertion
|
||||||
"/identitytoolkit:v3/identitytoolkit.relyingparty.verifyPassword": verify_password
|
"/identitytoolkit:v3/identitytoolkit.relyingparty.verifyPassword": verify_password
|
||||||
|
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetProjectConfigResponse": get_project_config_response
|
||||||
"/licensing:v1/licensing.licenseAssignments.listForProduct": list_license_assignment_for_product
|
"/licensing:v1/licensing.licenseAssignments.listForProduct": list_license_assignment_for_product
|
||||||
"/licensing:v1/licensing.licenseAssignments.listForProductAndSku": list_license_assignment_for_product_and_sku
|
"/licensing:v1/licensing.licenseAssignments.listForProductAndSku": list_license_assignment_for_product_and_sku
|
||||||
"/logging:v1beta3/logging.projects.logServices.indexes.list": list_log_service_indexes
|
"/logging:v1beta3/logging.projects.logServices.indexes.list": list_log_service_indexes
|
||||||
|
@ -726,6 +752,7 @@
|
||||||
"/logging:v1beta3/logging.projects.logs.sinks.get": get_log_sink
|
"/logging:v1beta3/logging.projects.logs.sinks.get": get_log_sink
|
||||||
"/logging:v1beta3/logging.projects.logs.sinks.list": list_log_sinks
|
"/logging:v1beta3/logging.projects.logs.sinks.list": list_log_sinks
|
||||||
"/logging:v1beta3/logging.projects.logs.sinks.update": update_log_sink
|
"/logging:v1beta3/logging.projects.logs.sinks.update": update_log_sink
|
||||||
|
"/logging:v1beta3/logging.projects.logs.entries.write": write_log_entries
|
||||||
"/manager:v1beta2/DeploymentsListResponse": list_deployments_response
|
"/manager:v1beta2/DeploymentsListResponse": list_deployments_response
|
||||||
"/manager:v1beta2/TemplatesListResponse": list_templates_response
|
"/manager:v1beta2/TemplatesListResponse": list_templates_response
|
||||||
"/mapsengine:v1/AssetsListResponse": list_assets_response
|
"/mapsengine:v1/AssetsListResponse": list_assets_response
|
||||||
|
@ -753,6 +780,24 @@
|
||||||
"/mapsengine:v1/RasterCollectionsRastersListResponse": list_raster_collections_rasters_response
|
"/mapsengine:v1/RasterCollectionsRastersListResponse": list_raster_collections_rasters_response
|
||||||
"/mapsengine:v1/RastersListResponse": list_rasters_response
|
"/mapsengine:v1/RastersListResponse": list_rasters_response
|
||||||
"/mapsengine:v1/TablesListResponse": list_tables_response
|
"/mapsengine:v1/TablesListResponse": list_tables_response
|
||||||
|
"/mapsengine:v1/mapsengine.layers.getPublished": get_published_layer
|
||||||
|
"/mapsengine:v1/mapsengine.layers.listPublished": list_published_layers
|
||||||
|
"/mapsengine:v1/mapsengine.layers.permissions.batchDelete": batch_delete_layer_permission
|
||||||
|
"/mapsengine:v1/mapsengine.layers.permissions.batchUpdate": batch_update_layer_permission
|
||||||
|
"/mapsengine:v1/mapsengine.maps.getPublished": get_published_map
|
||||||
|
"/mapsengine:v1/mapsengine.maps.permissions.batchDelete": batch_delete_map_permission
|
||||||
|
"/mapsengine:v1/mapsengine.maps.permissions.batchUpdate": batch_update_map_permission
|
||||||
|
"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchDelete": batch_delete_raster_collection_permission
|
||||||
|
"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchUpdate": batch_update_raster_collection_permission
|
||||||
|
"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchDelete": batch_delete_raster_collection_raster
|
||||||
|
"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchInsert": batch_insert_raster_collection_raster
|
||||||
|
"/mapsengine:v1/mapsengine.rasters.permissions.batchDelete": batch_delete_raster_permission
|
||||||
|
"/mapsengine:v1/mapsengine.rasters.permissions.batchUpdate": batch_update_raster_permission
|
||||||
|
"/mapsengine:v1/mapsengine.tables.features.batchDelete": batch_delete_table_feature
|
||||||
|
"/mapsengine:v1/mapsengine.tables.features.batchInsert": batch_insert_table_feature
|
||||||
|
"/mapsengine:v1/mapsengine.tables.features.batchPatch": batch_patch_table_feature
|
||||||
|
"/mapsengine:v1/mapsengine.tables.permissions.batchDelete": batch_delete_table_permission
|
||||||
|
"/mapsengine:v1/mapsengine.tables.permissions.batchUpdate": batch_update_table_permission
|
||||||
"/mirror:v1/AttachmentsListResponse": list_attachments_response
|
"/mirror:v1/AttachmentsListResponse": list_attachments_response
|
||||||
"/mirror:v1/ContactsListResponse": list_contacts_response
|
"/mirror:v1/ContactsListResponse": list_contacts_response
|
||||||
"/mirror:v1/LocationsListResponse": list_locations_response
|
"/mirror:v1/LocationsListResponse": list_locations_response
|
||||||
|
@ -775,20 +820,16 @@
|
||||||
"/prediction:v1.6/prediction.trainedmodels.list": list_trained_models
|
"/prediction:v1.6/prediction.trainedmodels.list": list_trained_models
|
||||||
"/prediction:v1.6/prediction.trainedmodels.predict": predict_trained_model
|
"/prediction:v1.6/prediction.trainedmodels.predict": predict_trained_model
|
||||||
"/prediction:v1.6/prediction.trainedmodels.update": update_trained_model
|
"/prediction:v1.6/prediction.trainedmodels.update": update_trained_model
|
||||||
"/pubsub:v1beta2/PubsubMessage": message
|
"/pubsub:v1/PubsubMessage": message
|
||||||
"/pubsub:v1beta2/pubsub.projects.subscriptions.create": create_subscription
|
"/pubsub:v1/pubsub.projects.subscriptions.create": create_subscription
|
||||||
"/pubsub:v1beta2/pubsub.projects.subscriptions.delete": delete_subscription
|
"/pubsub:v1/pubsub.projects.subscriptions.delete": delete_subscription
|
||||||
"/pubsub:v1beta2/pubsub.projects.subscriptions.get": get_subscription
|
"/pubsub:v1/pubsub.projects.subscriptions.get": get_subscription
|
||||||
"/pubsub:v1beta2/pubsub.projects.subscriptions.list": list_subscriptions
|
"/pubsub:v1/pubsub.projects.subscriptions.list": list_subscriptions
|
||||||
"/pubsub:v1beta2/pubsub.projects.subscriptions.setIamPolicy": set_subscription_policy
|
"/pubsub:v1/pubsub.projects.topics.create": create_topic
|
||||||
"/pubsub:v1beta2/pubsub.projects.subscriptions.testIamPermissions": test_subscription_permissions
|
"/pubsub:v1/pubsub.projects.topics.delete": delete_topic
|
||||||
"/pubsub:v1beta2/pubsub.projects.topics.create": create_topic
|
"/pubsub:v1/pubsub.projects.topics.get": get_topic
|
||||||
"/pubsub:v1beta2/pubsub.projects.topics.delete": delete_topic
|
"/pubsub:v1/pubsub.projects.topics.list": list_topics
|
||||||
"/pubsub:v1beta2/pubsub.projects.topics.get": get_topic
|
"/pubsub:v1/pubsub.projects.topics.subscriptions.list": list_topic_subscriptions
|
||||||
"/pubsub:v1beta2/pubsub.projects.topics.list": list_topics
|
|
||||||
"/pubsub:v1beta2/pubsub.projects.topics.setIamPolicy": set_topic_policy
|
|
||||||
"/pubsub:v1beta2/pubsub.projects.topics.testIamPermissions": test_topic_permissions
|
|
||||||
"/pubsub:v1beta2/pubsub.projects.topics.subscriptions.list": list_topic_subscriptions
|
|
||||||
"/qpxExpress:v1/TripsSearchRequest": search_trips_request
|
"/qpxExpress:v1/TripsSearchRequest": search_trips_request
|
||||||
"/qpxExpress:v1/TripsSearchResponse": search_trips_response
|
"/qpxExpress:v1/TripsSearchResponse": search_trips_response
|
||||||
"/replicapool:v1beta2/InstanceGroupManagersAbandonInstancesRequest": abandon_instances_request
|
"/replicapool:v1beta2/InstanceGroupManagersAbandonInstancesRequest": abandon_instances_request
|
||||||
|
@ -831,6 +872,8 @@
|
||||||
"/sqladmin:v1beta4/UsersListResponse": list_users_response
|
"/sqladmin:v1beta4/UsersListResponse": list_users_response
|
||||||
"/storage:v1/Bucket/cors": cors_configurations
|
"/storage:v1/Bucket/cors": cors_configurations
|
||||||
"/storage:v1/Bucket/cors/cors_configuration/method": http_method
|
"/storage:v1/Bucket/cors/cors_configuration/method": http_method
|
||||||
|
"/storagetransfer:v1/storagetransfer.getGoogleServiceAccount": get_google_service_account_v1
|
||||||
|
"/storage:v1/storage.objects.watchAll": watch_all_objects
|
||||||
"/tagmanager:v1/tagmanager.accounts.containers.create": create_container
|
"/tagmanager:v1/tagmanager.accounts.containers.create": create_container
|
||||||
"/tagmanager:v1/tagmanager.accounts.containers.delete": delete_container
|
"/tagmanager:v1/tagmanager.accounts.containers.delete": delete_container
|
||||||
"/tagmanager:v1/tagmanager.accounts.containers.get": get_container
|
"/tagmanager:v1/tagmanager.accounts.containers.get": get_container
|
||||||
|
|
3607
api_names_out.yaml
3607
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
|
# @see https://developers.google.com/ad-exchange/buyer-rest
|
||||||
module AdexchangebuyerV1_3
|
module AdexchangebuyerV1_3
|
||||||
VERSION = 'V1_3'
|
VERSION = 'V1_3'
|
||||||
REVISION = '20150720'
|
REVISION = '20151102'
|
||||||
|
|
||||||
# Manage your Ad Exchange buyer account configuration
|
# Manage your Ad Exchange buyer account configuration
|
||||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||||
|
|
|
@ -231,8 +231,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :billing_id
|
attr_accessor :billing_id
|
||||||
|
|
||||||
# The budget amount to apply for the billingId provided. This is required for
|
# The daily budget amount in unit amount of the account currency to apply for
|
||||||
# update requests.
|
# the billingId provided. This is required for update requests.
|
||||||
# Corresponds to the JSON property `budgetAmount`
|
# Corresponds to the JSON property `budgetAmount`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :budget_amount
|
attr_accessor :budget_amount
|
||||||
|
@ -298,6 +298,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :agency_id
|
attr_accessor :agency_id
|
||||||
|
|
||||||
|
# The last upload timestamp of this creative if it was uploaded via API. Read-
|
||||||
|
# only. The value of this field is generated, and will be ignored for uploads. (
|
||||||
|
# formatted RFC 3339 timestamp).
|
||||||
|
# Corresponds to the JSON property `apiUploadTimestamp`
|
||||||
|
# @return [DateTime]
|
||||||
|
attr_accessor :api_upload_timestamp
|
||||||
|
|
||||||
# All attributes for the ads that may be shown from this snippet.
|
# All attributes for the ads that may be shown from this snippet.
|
||||||
# Corresponds to the JSON property `attribute`
|
# Corresponds to the JSON property `attribute`
|
||||||
# @return [Array<Fixnum>]
|
# @return [Array<Fixnum>]
|
||||||
|
@ -339,11 +346,21 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :height
|
attr_accessor :height
|
||||||
|
|
||||||
|
# The set of urls to be called to record an impression.
|
||||||
|
# Corresponds to the JSON property `impressionTrackingUrl`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :impression_tracking_url
|
||||||
|
|
||||||
# Resource type.
|
# Resource type.
|
||||||
# Corresponds to the JSON property `kind`
|
# Corresponds to the JSON property `kind`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# If nativeAd is set, HTMLSnippet and videoURL should not be set.
|
||||||
|
# Corresponds to the JSON property `nativeAd`
|
||||||
|
# @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd]
|
||||||
|
attr_accessor :native_ad
|
||||||
|
|
||||||
# Detected product categories, if any. Read-only. This field should not be set
|
# Detected product categories, if any. Read-only. This field should not be set
|
||||||
# in requests.
|
# in requests.
|
||||||
# Corresponds to the JSON property `productCategories`
|
# Corresponds to the JSON property `productCategories`
|
||||||
|
@ -371,6 +388,12 @@ module Google
|
||||||
# @return [Array<Fixnum>]
|
# @return [Array<Fixnum>]
|
||||||
attr_accessor :vendor_type
|
attr_accessor :vendor_type
|
||||||
|
|
||||||
|
# The version for this creative. Read-only. This field should not be set in
|
||||||
|
# requests.
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
# The url to fetch a video ad. If set, HTMLSnippet should not be set.
|
# The url to fetch a video ad. If set, HTMLSnippet should not be set.
|
||||||
# Corresponds to the JSON property `videoURL`
|
# Corresponds to the JSON property `videoURL`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -392,6 +415,7 @@ module Google
|
||||||
@advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
|
@advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
|
||||||
@advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil?
|
@advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil?
|
||||||
@agency_id = args[:agency_id] unless args[:agency_id].nil?
|
@agency_id = args[:agency_id] unless args[:agency_id].nil?
|
||||||
|
@api_upload_timestamp = args[:api_upload_timestamp] unless args[:api_upload_timestamp].nil?
|
||||||
@attribute = args[:attribute] unless args[:attribute].nil?
|
@attribute = args[:attribute] unless args[:attribute].nil?
|
||||||
@buyer_creative_id = args[:buyer_creative_id] unless args[:buyer_creative_id].nil?
|
@buyer_creative_id = args[:buyer_creative_id] unless args[:buyer_creative_id].nil?
|
||||||
@click_through_url = args[:click_through_url] unless args[:click_through_url].nil?
|
@click_through_url = args[:click_through_url] unless args[:click_through_url].nil?
|
||||||
|
@ -399,12 +423,15 @@ module Google
|
||||||
@disapproval_reasons = args[:disapproval_reasons] unless args[:disapproval_reasons].nil?
|
@disapproval_reasons = args[:disapproval_reasons] unless args[:disapproval_reasons].nil?
|
||||||
@filtering_reasons = args[:filtering_reasons] unless args[:filtering_reasons].nil?
|
@filtering_reasons = args[:filtering_reasons] unless args[:filtering_reasons].nil?
|
||||||
@height = args[:height] unless args[:height].nil?
|
@height = args[:height] unless args[:height].nil?
|
||||||
|
@impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil?
|
||||||
@kind = args[:kind] unless args[:kind].nil?
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@native_ad = args[:native_ad] unless args[:native_ad].nil?
|
||||||
@product_categories = args[:product_categories] unless args[:product_categories].nil?
|
@product_categories = args[:product_categories] unless args[:product_categories].nil?
|
||||||
@restricted_categories = args[:restricted_categories] unless args[:restricted_categories].nil?
|
@restricted_categories = args[:restricted_categories] unless args[:restricted_categories].nil?
|
||||||
@sensitive_categories = args[:sensitive_categories] unless args[:sensitive_categories].nil?
|
@sensitive_categories = args[:sensitive_categories] unless args[:sensitive_categories].nil?
|
||||||
@status = args[:status] unless args[:status].nil?
|
@status = args[:status] unless args[:status].nil?
|
||||||
@vendor_type = args[:vendor_type] unless args[:vendor_type].nil?
|
@vendor_type = args[:vendor_type] unless args[:vendor_type].nil?
|
||||||
|
@version = args[:version] unless args[:version].nil?
|
||||||
@video_url = args[:video_url] unless args[:video_url].nil?
|
@video_url = args[:video_url] unless args[:video_url].nil?
|
||||||
@width = args[:width] unless args[:width].nil?
|
@width = args[:width] unless args[:width].nil?
|
||||||
end
|
end
|
||||||
|
@ -512,6 +539,184 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# If nativeAd is set, HTMLSnippet and videoURL should not be set.
|
||||||
|
class NativeAd
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `advertiser`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :advertiser
|
||||||
|
|
||||||
|
# The app icon, for app download ads.
|
||||||
|
# Corresponds to the JSON property `appIcon`
|
||||||
|
# @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon]
|
||||||
|
attr_accessor :app_icon
|
||||||
|
|
||||||
|
# A long description of the ad.
|
||||||
|
# Corresponds to the JSON property `body`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :body
|
||||||
|
|
||||||
|
# A label for the button that the user is supposed to click.
|
||||||
|
# Corresponds to the JSON property `callToAction`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :call_to_action
|
||||||
|
|
||||||
|
# The URL to use for click tracking.
|
||||||
|
# Corresponds to the JSON property `clickTrackingUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :click_tracking_url
|
||||||
|
|
||||||
|
# A short title for the ad.
|
||||||
|
# Corresponds to the JSON property `headline`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :headline
|
||||||
|
|
||||||
|
# A large image.
|
||||||
|
# Corresponds to the JSON property `image`
|
||||||
|
# @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image]
|
||||||
|
attr_accessor :image
|
||||||
|
|
||||||
|
# The URLs are called when the impression is rendered.
|
||||||
|
# Corresponds to the JSON property `impressionTrackingUrl`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :impression_tracking_url
|
||||||
|
|
||||||
|
# A smaller image, for the advertiser logo.
|
||||||
|
# Corresponds to the JSON property `logo`
|
||||||
|
# @return [Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo]
|
||||||
|
attr_accessor :logo
|
||||||
|
|
||||||
|
# The price of the promoted app including the currency info.
|
||||||
|
# Corresponds to the JSON property `price`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :price
|
||||||
|
|
||||||
|
# The app rating in the app store. Must be in the range [0-5].
|
||||||
|
# Corresponds to the JSON property `starRating`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :star_rating
|
||||||
|
|
||||||
|
# The URL to the app store to purchase/download the promoted app.
|
||||||
|
# Corresponds to the JSON property `store`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :store
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@advertiser = args[:advertiser] unless args[:advertiser].nil?
|
||||||
|
@app_icon = args[:app_icon] unless args[:app_icon].nil?
|
||||||
|
@body = args[:body] unless args[:body].nil?
|
||||||
|
@call_to_action = args[:call_to_action] unless args[:call_to_action].nil?
|
||||||
|
@click_tracking_url = args[:click_tracking_url] unless args[:click_tracking_url].nil?
|
||||||
|
@headline = args[:headline] unless args[:headline].nil?
|
||||||
|
@image = args[:image] unless args[:image].nil?
|
||||||
|
@impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil?
|
||||||
|
@logo = args[:logo] unless args[:logo].nil?
|
||||||
|
@price = args[:price] unless args[:price].nil?
|
||||||
|
@star_rating = args[:star_rating] unless args[:star_rating].nil?
|
||||||
|
@store = args[:store] unless args[:store].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
# The app icon, for app download ads.
|
||||||
|
class AppIcon
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `height`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :height
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `url`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :url
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `width`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :width
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@height = args[:height] unless args[:height].nil?
|
||||||
|
@url = args[:url] unless args[:url].nil?
|
||||||
|
@width = args[:width] unless args[:width].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A large image.
|
||||||
|
class Image
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `height`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :height
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `url`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :url
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `width`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :width
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@height = args[:height] unless args[:height].nil?
|
||||||
|
@url = args[:url] unless args[:url].nil?
|
||||||
|
@width = args[:width] unless args[:width].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A smaller image, for the advertiser logo.
|
||||||
|
class Logo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `height`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :height
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `url`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :url
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `width`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :width
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@height = args[:height] unless args[:height].nil?
|
||||||
|
@url = args[:url] unless args[:url].nil?
|
||||||
|
@width = args[:width] unless args[:width].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# The creatives feed lists the active creatives for the Ad Exchange buyer
|
# The creatives feed lists the active creatives for the Ad Exchange buyer
|
||||||
|
@ -568,6 +773,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :currency_code
|
attr_accessor :currency_code
|
||||||
|
|
||||||
|
# The deal type such as programmatic reservation or fixed price and so on.
|
||||||
|
# Corresponds to the JSON property `dealTier`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :deal_tier
|
||||||
|
|
||||||
# End time for when this deal stops being active. If not set then this deal is
|
# End time for when this deal stops being active. If not set then this deal is
|
||||||
# valid until manually disabled by the publisher. In seconds since the epoch.
|
# valid until manually disabled by the publisher. In seconds since the epoch.
|
||||||
# Corresponds to the JSON property `endTime`
|
# Corresponds to the JSON property `endTime`
|
||||||
|
@ -630,6 +840,7 @@ module Google
|
||||||
@account_id = args[:account_id] unless args[:account_id].nil?
|
@account_id = args[:account_id] unless args[:account_id].nil?
|
||||||
@advertiser = args[:advertiser] unless args[:advertiser].nil?
|
@advertiser = args[:advertiser] unless args[:advertiser].nil?
|
||||||
@currency_code = args[:currency_code] unless args[:currency_code].nil?
|
@currency_code = args[:currency_code] unless args[:currency_code].nil?
|
||||||
|
@deal_tier = args[:deal_tier] unless args[:deal_tier].nil?
|
||||||
@end_time = args[:end_time] unless args[:end_time].nil?
|
@end_time = args[:end_time] unless args[:end_time].nil?
|
||||||
@fixed_cpm = args[:fixed_cpm] unless args[:fixed_cpm].nil?
|
@fixed_cpm = args[:fixed_cpm] unless args[:fixed_cpm].nil?
|
||||||
@id = args[:id] unless args[:id].nil?
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
|
|
@ -64,6 +64,22 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NativeAd
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class AppIcon
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Image
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Logo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CreativesList
|
class CreativesList
|
||||||
|
@ -178,6 +194,8 @@ module Google
|
||||||
collection :advertiser_id, as: 'advertiserId'
|
collection :advertiser_id, as: 'advertiserId'
|
||||||
property :advertiser_name, as: 'advertiserName'
|
property :advertiser_name, as: 'advertiserName'
|
||||||
property :agency_id, as: 'agencyId'
|
property :agency_id, as: 'agencyId'
|
||||||
|
property :api_upload_timestamp, as: 'apiUploadTimestamp', type: DateTime
|
||||||
|
|
||||||
collection :attribute, as: 'attribute'
|
collection :attribute, as: 'attribute'
|
||||||
property :buyer_creative_id, as: 'buyerCreativeId'
|
property :buyer_creative_id, as: 'buyerCreativeId'
|
||||||
collection :click_through_url, as: 'clickThroughUrl'
|
collection :click_through_url, as: 'clickThroughUrl'
|
||||||
|
@ -188,12 +206,16 @@ module Google
|
||||||
property :filtering_reasons, as: 'filteringReasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Representation
|
property :filtering_reasons, as: 'filteringReasons', class: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::FilteringReasons::Representation
|
||||||
|
|
||||||
property :height, as: 'height'
|
property :height, as: 'height'
|
||||||
|
collection :impression_tracking_url, as: 'impressionTrackingUrl'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :native_ad, as: 'nativeAd', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Representation
|
||||||
|
|
||||||
collection :product_categories, as: 'productCategories'
|
collection :product_categories, as: 'productCategories'
|
||||||
collection :restricted_categories, as: 'restrictedCategories'
|
collection :restricted_categories, as: 'restrictedCategories'
|
||||||
collection :sensitive_categories, as: 'sensitiveCategories'
|
collection :sensitive_categories, as: 'sensitiveCategories'
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
collection :vendor_type, as: 'vendorType'
|
collection :vendor_type, as: 'vendorType'
|
||||||
|
property :version, as: 'version'
|
||||||
property :video_url, as: 'videoURL'
|
property :video_url, as: 'videoURL'
|
||||||
property :width, as: 'width'
|
property :width, as: 'width'
|
||||||
end
|
end
|
||||||
|
@ -230,6 +252,54 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NativeAd
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :advertiser, as: 'advertiser'
|
||||||
|
property :app_icon, as: 'appIcon', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon::Representation
|
||||||
|
|
||||||
|
property :body, as: 'body'
|
||||||
|
property :call_to_action, as: 'callToAction'
|
||||||
|
property :click_tracking_url, as: 'clickTrackingUrl'
|
||||||
|
property :headline, as: 'headline'
|
||||||
|
property :image, as: 'image', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image::Representation
|
||||||
|
|
||||||
|
collection :impression_tracking_url, as: 'impressionTrackingUrl'
|
||||||
|
property :logo, as: 'logo', class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo, decorator: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Logo::Representation
|
||||||
|
|
||||||
|
property :price, as: 'price'
|
||||||
|
property :star_rating, as: 'starRating'
|
||||||
|
property :store, as: 'store'
|
||||||
|
end
|
||||||
|
|
||||||
|
class AppIcon
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :height, as: 'height'
|
||||||
|
property :url, as: 'url'
|
||||||
|
property :width, as: 'width'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Image
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :height, as: 'height'
|
||||||
|
property :url, as: 'url'
|
||||||
|
property :width, as: 'width'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Logo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :height, as: 'height'
|
||||||
|
property :url, as: 'url'
|
||||||
|
property :width, as: 'width'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CreativesList
|
class CreativesList
|
||||||
|
@ -248,6 +318,7 @@ module Google
|
||||||
property :account_id, as: 'accountId'
|
property :account_id, as: 'accountId'
|
||||||
property :advertiser, as: 'advertiser'
|
property :advertiser, as: 'advertiser'
|
||||||
property :currency_code, as: 'currencyCode'
|
property :currency_code, as: 'currencyCode'
|
||||||
|
property :deal_tier, as: 'dealTier'
|
||||||
property :end_time, as: 'endTime'
|
property :end_time, as: 'endTime'
|
||||||
property :fixed_cpm, as: 'fixedCpm'
|
property :fixed_cpm, as: 'fixedCpm'
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
|
|
|
@ -78,8 +78,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{id}'
|
command = make_simple_command(:get, 'accounts/{id}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::Account
|
||||||
command.params['id'] = id unless id.nil?
|
command.params['id'] = id unless id.nil?
|
||||||
|
@ -112,8 +111,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts'
|
command = make_simple_command(:get, 'accounts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::AccountsList::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::AccountsList::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::AccountsList
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::AccountsList
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -148,8 +146,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{id}'
|
command = make_simple_command(:patch, 'accounts/{id}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
||||||
command.request_object = account_object
|
command.request_object = account_object
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
||||||
|
@ -187,8 +184,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{id}'
|
command = make_simple_command(:put, 'accounts/{id}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
||||||
command.request_object = account_object
|
command.request_object = account_object
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Account::Representation
|
||||||
|
@ -225,8 +221,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_billing_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'billinginfo/{accountId}'
|
command = make_simple_command(:get, 'billinginfo/{accountId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfo::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfo
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfo
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -260,8 +255,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_billing_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'billinginfo'
|
command = make_simple_command(:get, 'billinginfo', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfoList::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::BillingInfoList::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfoList
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::BillingInfoList
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -298,8 +292,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'billinginfo/{accountId}/{billingId}'
|
command = make_simple_command(:get, 'billinginfo/{accountId}/{billingId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::Budget
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -340,8 +333,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'billinginfo/{accountId}/{billingId}'
|
command = make_simple_command(:patch, 'billinginfo/{accountId}/{billingId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
||||||
command.request_object = budget_object
|
command.request_object = budget_object
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
||||||
|
@ -383,8 +375,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'billinginfo/{accountId}/{billingId}'
|
command = make_simple_command(:put, 'billinginfo/{accountId}/{billingId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
||||||
command.request_object = budget_object
|
command.request_object = budget_object
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Budget::Representation
|
||||||
|
@ -425,8 +416,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'creatives/{accountId}/{buyerCreativeId}'
|
command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::Creative
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -461,8 +451,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'creatives'
|
command = make_simple_command(:post, 'creatives', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
||||||
command.request_object = creative_object
|
command.request_object = creative_object
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::Creative::Representation
|
||||||
|
@ -510,8 +499,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_creatives(account_id: nil, buyer_creative_id: nil, max_results: nil, page_token: nil, status_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'creatives'
|
command = make_simple_command(:get, 'creatives', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::CreativesList::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::CreativesList::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::CreativesList
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::CreativesList
|
||||||
command.query['accountId'] = account_id unless account_id.nil?
|
command.query['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -550,8 +538,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_direct_deal(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'directdeals/{id}'
|
command = make_simple_command(:get, 'directdeals/{id}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDeal::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDeal
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDeal
|
||||||
command.params['id'] = id unless id.nil?
|
command.params['id'] = id unless id.nil?
|
||||||
|
@ -584,8 +571,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_direct_deals(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'directdeals'
|
command = make_simple_command(:get, 'directdeals', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDealsList::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::DirectDealsList::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDealsList
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::DirectDealsList
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -630,8 +616,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_performance_reports(account_id, end_date_time, start_date_time, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'performancereport'
|
command = make_simple_command(:get, 'performancereport', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList
|
||||||
command.query['accountId'] = account_id unless account_id.nil?
|
command.query['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -672,8 +657,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'pretargetingconfigs/{accountId}/{configId}'
|
command = make_simple_command(:delete, 'pretargetingconfigs/{accountId}/{configId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['configId'] = config_id unless config_id.nil?
|
command.params['configId'] = config_id unless config_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -709,8 +693,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'pretargetingconfigs/{accountId}/{configId}'
|
command = make_simple_command(:get, 'pretargetingconfigs/{accountId}/{configId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -747,8 +730,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'pretargetingconfigs/{accountId}'
|
command = make_simple_command(:post, 'pretargetingconfigs/{accountId}', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
||||||
command.request_object = pretargeting_config_object
|
command.request_object = pretargeting_config_object
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
||||||
|
@ -785,8 +767,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'pretargetingconfigs/{accountId}'
|
command = make_simple_command(:get, 'pretargetingconfigs/{accountId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList::Representation
|
||||||
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList
|
command.response_class = Google::Apis::AdexchangebuyerV1_3::PretargetingConfigList
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -824,8 +805,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'pretargetingconfigs/{accountId}/{configId}'
|
command = make_simple_command(:patch, 'pretargetingconfigs/{accountId}/{configId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
||||||
command.request_object = pretargeting_config_object
|
command.request_object = pretargeting_config_object
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
||||||
|
@ -866,8 +846,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'pretargetingconfigs/{accountId}/{configId}'
|
command = make_simple_command(:put, 'pretargetingconfigs/{accountId}/{configId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
command.request_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
||||||
command.request_object = pretargeting_config_object
|
command.request_object = pretargeting_config_object
|
||||||
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
command.response_representation = Google::Apis::AdexchangebuyerV1_3::PretargetingConfig::Representation
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/ad-exchange/seller-rest/
|
# @see https://developers.google.com/ad-exchange/seller-rest/
|
||||||
module AdexchangesellerV2_0
|
module AdexchangesellerV2_0
|
||||||
VERSION = 'V2_0'
|
VERSION = 'V2_0'
|
||||||
REVISION = '20150726'
|
REVISION = '20151127'
|
||||||
|
|
||||||
# View and manage your Ad Exchange data
|
# View and manage your Ad Exchange data
|
||||||
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'
|
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'
|
||||||
|
|
|
@ -78,8 +78,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}'
|
command = make_simple_command(:get, 'accounts/{accountId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::Account::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Account::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::Account
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Account
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -117,8 +116,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts'
|
command = make_simple_command(:get, 'accounts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::Accounts::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Accounts::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::Accounts
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Accounts
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -160,8 +158,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::AdClients
|
command.response_class = Google::Apis::AdexchangesellerV2_0::AdClients
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -202,8 +199,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/alerts'
|
command = make_simple_command(:get, 'accounts/{accountId}/alerts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::Alerts::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Alerts::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::Alerts
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Alerts
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -243,8 +239,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannel
|
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannel
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -291,8 +286,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/customchannels'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannels
|
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannels
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -330,8 +324,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_metadata_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_metadata_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/metadata/dimensions'
|
command = make_simple_command(:get, 'accounts/{accountId}/metadata/dimensions', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -366,8 +359,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_metadata_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_metadata_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/metadata/metrics'
|
command = make_simple_command(:get, 'accounts/{accountId}/metadata/metrics', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -404,8 +396,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_preferred_deal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_preferred_deal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/preferreddeals/{dealId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals/{dealId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeal
|
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeal
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -441,8 +432,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_preferred_deals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_preferred_deals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/preferreddeals'
|
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeals
|
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeals
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -502,11 +492,10 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
def generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/reports'
|
|
||||||
if download_dest.nil?
|
if download_dest.nil?
|
||||||
command = make_simple_command(:get, path, options)
|
command = make_simple_command(:get, 'accounts/{accountId}/reports', options)
|
||||||
else
|
else
|
||||||
command = make_download_command(:get, path, options)
|
command = make_download_command(:get, 'accounts/{accountId}/reports', options)
|
||||||
command.download_dest = download_dest
|
command.download_dest = download_dest
|
||||||
end
|
end
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
|
||||||
|
@ -562,8 +551,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/reports/{savedReportId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::Report
|
command.response_class = Google::Apis::AdexchangesellerV2_0::Report
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -609,8 +597,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/reports/saved'
|
command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::SavedReports
|
command.response_class = Google::Apis::AdexchangesellerV2_0::SavedReports
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -655,8 +642,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/urlchannels'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation
|
command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation
|
||||||
command.response_class = Google::Apis::AdexchangesellerV2_0::UrlChannels
|
command.response_class = Google::Apis::AdexchangesellerV2_0::UrlChannels
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
# 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/admin_datatransfer_v1/service.rb'
|
||||||
|
require 'google/apis/admin_datatransfer_v1/classes.rb'
|
||||||
|
require 'google/apis/admin_datatransfer_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Admin Data Transfer API
|
||||||
|
#
|
||||||
|
# Admin Data Transfer API lets you transfer user data from one user to another.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/admin-sdk/data-transfer/
|
||||||
|
module AdminDatatransferV1
|
||||||
|
VERSION = 'DatatransferV1'
|
||||||
|
REVISION = '20150917'
|
||||||
|
|
||||||
|
# View and manage data transfers between users in your organization
|
||||||
|
AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer'
|
||||||
|
|
||||||
|
# View data transfers between users in your organization
|
||||||
|
AUTH_ADMIN_DATATRANSFER_READONLY = 'https://www.googleapis.com/auth/admin.datatransfer.readonly'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,267 @@
|
||||||
|
# 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 AdminDatatransferV1
|
||||||
|
|
||||||
|
# The JSON template for an Application resource.
|
||||||
|
class Application
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Etag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# The application's ID.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# Identifies the resource as a DataTransfer Application Resource.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The application's name.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The list of all possible transfer parameters for this application. These
|
||||||
|
# parameters can be used to select the data of the user in this application to
|
||||||
|
# be transfered.
|
||||||
|
# Corresponds to the JSON property `transferParams`
|
||||||
|
# @return [Array<Google::Apis::AdminDatatransferV1::ApplicationTransferParam>]
|
||||||
|
attr_accessor :transfer_params
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@transfer_params = args[:transfer_params] unless args[:transfer_params].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Template to map fields of ApplicationDataTransfer resource.
|
||||||
|
class ApplicationDataTransfer
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The application's ID.
|
||||||
|
# Corresponds to the JSON property `applicationId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :application_id
|
||||||
|
|
||||||
|
# The transfer parameters for the application. These parameters are used to
|
||||||
|
# select the data which will get transfered in context of this application.
|
||||||
|
# Corresponds to the JSON property `applicationTransferParams`
|
||||||
|
# @return [Array<Google::Apis::AdminDatatransferV1::ApplicationTransferParam>]
|
||||||
|
attr_accessor :application_transfer_params
|
||||||
|
|
||||||
|
# Current status of transfer for this application. (Read-only)
|
||||||
|
# Corresponds to the JSON property `applicationTransferStatus`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :application_transfer_status
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@application_id = args[:application_id] unless args[:application_id].nil?
|
||||||
|
@application_transfer_params = args[:application_transfer_params] unless args[:application_transfer_params].nil?
|
||||||
|
@application_transfer_status = args[:application_transfer_status] unless args[:application_transfer_status].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Template for application transfer parameters.
|
||||||
|
class ApplicationTransferParam
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The type of the transfer parameter. eg: 'PRIVACY_LEVEL'
|
||||||
|
# Corresponds to the JSON property `key`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'
|
||||||
|
# Corresponds to the JSON property `value`
|
||||||
|
# @return [Array<String>]
|
||||||
|
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
|
||||||
|
|
||||||
|
# Template for a collection of Applications.
|
||||||
|
class ApplicationsListResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of applications that support data transfer and are also installed for the
|
||||||
|
# customer.
|
||||||
|
# Corresponds to the JSON property `applications`
|
||||||
|
# @return [Array<Google::Apis::AdminDatatransferV1::Application>]
|
||||||
|
attr_accessor :applications
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Identifies the resource as a collection of Applications.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# Continuation token which will be used to specify next page in list API.
|
||||||
|
# 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)
|
||||||
|
@applications = args[:applications] unless args[:applications].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The JSON template for a DataTransfer resource.
|
||||||
|
class DataTransfer
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of per application data transfer resources. It contains data transfer
|
||||||
|
# details of the applications associated with this transfer resource. Note that
|
||||||
|
# this list is also used to specify the applications for which data transfer has
|
||||||
|
# to be done at the time of the transfer resource creation.
|
||||||
|
# Corresponds to the JSON property `applicationDataTransfers`
|
||||||
|
# @return [Array<Google::Apis::AdminDatatransferV1::ApplicationDataTransfer>]
|
||||||
|
attr_accessor :application_data_transfers
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# The transfer's ID (Read-only).
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# Identifies the resource as a DataTransfer request.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# ID of the user to whom the data is being transfered.
|
||||||
|
# Corresponds to the JSON property `newOwnerUserId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :new_owner_user_id
|
||||||
|
|
||||||
|
# ID of the user whose data is being transfered.
|
||||||
|
# Corresponds to the JSON property `oldOwnerUserId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :old_owner_user_id
|
||||||
|
|
||||||
|
# Overall transfer status (Read-only).
|
||||||
|
# Corresponds to the JSON property `overallTransferStatusCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :overall_transfer_status_code
|
||||||
|
|
||||||
|
# The time at which the data transfer was requested (Read-only).
|
||||||
|
# Corresponds to the JSON property `requestTime`
|
||||||
|
# @return [DateTime]
|
||||||
|
attr_accessor :request_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@application_data_transfers = args[:application_data_transfers] unless args[:application_data_transfers].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@new_owner_user_id = args[:new_owner_user_id] unless args[:new_owner_user_id].nil?
|
||||||
|
@old_owner_user_id = args[:old_owner_user_id] unless args[:old_owner_user_id].nil?
|
||||||
|
@overall_transfer_status_code = args[:overall_transfer_status_code] unless args[:overall_transfer_status_code].nil?
|
||||||
|
@request_time = args[:request_time] unless args[:request_time].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Template for a collection of DataTransfer resources.
|
||||||
|
class DataTransfersListResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of data transfer requests.
|
||||||
|
# Corresponds to the JSON property `dataTransfers`
|
||||||
|
# @return [Array<Google::Apis::AdminDatatransferV1::DataTransfer>]
|
||||||
|
attr_accessor :data_transfers
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Identifies the resource as a collection of data transfer requests.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# Continuation token which will be used to specify next page in list API.
|
||||||
|
# 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)
|
||||||
|
@data_transfers = args[:data_transfers] unless args[:data_transfers].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,118 @@
|
||||||
|
# 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 AdminDatatransferV1
|
||||||
|
|
||||||
|
class Application
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationDataTransfer
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationTransferParam
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationsListResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataTransfer
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataTransfersListResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Application
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :transfer_params, as: 'transferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationDataTransfer
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :application_id, as: 'applicationId'
|
||||||
|
collection :application_transfer_params, as: 'applicationTransferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation
|
||||||
|
|
||||||
|
property :application_transfer_status, as: 'applicationTransferStatus'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationTransferParam
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
collection :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationsListResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :applications, as: 'applications', class: Google::Apis::AdminDatatransferV1::Application, decorator: Google::Apis::AdminDatatransferV1::Application::Representation
|
||||||
|
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataTransfer
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :application_data_transfers, as: 'applicationDataTransfers', class: Google::Apis::AdminDatatransferV1::ApplicationDataTransfer, decorator: Google::Apis::AdminDatatransferV1::ApplicationDataTransfer::Representation
|
||||||
|
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :new_owner_user_id, as: 'newOwnerUserId'
|
||||||
|
property :old_owner_user_id, as: 'oldOwnerUserId'
|
||||||
|
property :overall_transfer_status_code, as: 'overallTransferStatusCode'
|
||||||
|
property :request_time, as: 'requestTime', type: DateTime
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataTransfersListResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :data_transfers, as: 'dataTransfers', class: Google::Apis::AdminDatatransferV1::DataTransfer, decorator: Google::Apis::AdminDatatransferV1::DataTransfer::Representation
|
||||||
|
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,262 @@
|
||||||
|
# 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 AdminDatatransferV1
|
||||||
|
# Admin Data Transfer API
|
||||||
|
#
|
||||||
|
# Admin Data Transfer API lets you transfer user data from one user to another.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/admin_datatransfer_v1'
|
||||||
|
#
|
||||||
|
# Admin = Google::Apis::AdminDatatransferV1 # Alias the module
|
||||||
|
# service = Admin::DataTransferService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/admin-sdk/data-transfer/
|
||||||
|
class DataTransferService < 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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
# @return [String]
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
attr_accessor :user_ip
|
||||||
|
|
||||||
|
def initialize
|
||||||
|
super('https://www.googleapis.com/', 'admin/datatransfer/v1/')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves information about an application for the given application ID.
|
||||||
|
# @param [String] application_id
|
||||||
|
# ID of the application resource to be retrieved.
|
||||||
|
# @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::AdminDatatransferV1::Application] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AdminDatatransferV1::Application]
|
||||||
|
#
|
||||||
|
# @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_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'applications/{applicationId}', options)
|
||||||
|
command.response_representation = Google::Apis::AdminDatatransferV1::Application::Representation
|
||||||
|
command.response_class = Google::Apis::AdminDatatransferV1::Application
|
||||||
|
command.params['applicationId'] = application_id unless application_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
|
||||||
|
|
||||||
|
# Lists the applications available for data transfer for a customer.
|
||||||
|
# @param [String] customer_id
|
||||||
|
# Immutable ID of the Google Apps account.
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# Maximum number of results to return. Default is 100.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Token to specify next page in the list.
|
||||||
|
# @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::AdminDatatransferV1::ApplicationsListResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AdminDatatransferV1::ApplicationsListResponse]
|
||||||
|
#
|
||||||
|
# @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_applications(customer_id: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'applications', options)
|
||||||
|
command.response_representation = Google::Apis::AdminDatatransferV1::ApplicationsListResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AdminDatatransferV1::ApplicationsListResponse
|
||||||
|
command.query['customerId'] = customer_id unless customer_id.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?
|
||||||
|
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
|
||||||
|
|
||||||
|
# Retrieves a data transfer request by its resource ID.
|
||||||
|
# @param [String] data_transfer_id
|
||||||
|
# ID of the resource to be retrieved. This is returned in the response from the
|
||||||
|
# insert method.
|
||||||
|
# @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::AdminDatatransferV1::DataTransfer] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AdminDatatransferV1::DataTransfer]
|
||||||
|
#
|
||||||
|
# @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_transfer(data_transfer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'transfers/{dataTransferId}', options)
|
||||||
|
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
|
||||||
|
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer
|
||||||
|
command.params['dataTransferId'] = data_transfer_id unless data_transfer_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
|
||||||
|
|
||||||
|
# Inserts a data transfer request.
|
||||||
|
# @param [Google::Apis::AdminDatatransferV1::DataTransfer] data_transfer_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::AdminDatatransferV1::DataTransfer] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AdminDatatransferV1::DataTransfer]
|
||||||
|
#
|
||||||
|
# @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_transfer(data_transfer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'transfers', options)
|
||||||
|
command.request_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
|
||||||
|
command.request_object = data_transfer_object
|
||||||
|
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
|
||||||
|
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer
|
||||||
|
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
|
||||||
|
|
||||||
|
# Lists the transfers for a customer by source user, destination user, or status.
|
||||||
|
# @param [String] customer_id
|
||||||
|
# Immutable ID of the Google Apps account.
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# Maximum number of results to return. Default is 100.
|
||||||
|
# @param [String] new_owner_user_id
|
||||||
|
# Destination user's profile ID.
|
||||||
|
# @param [String] old_owner_user_id
|
||||||
|
# Source user's profile ID.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Token to specify the next page in the list.
|
||||||
|
# @param [String] status
|
||||||
|
# Status of the transfer.
|
||||||
|
# @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::AdminDatatransferV1::DataTransfersListResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AdminDatatransferV1::DataTransfersListResponse]
|
||||||
|
#
|
||||||
|
# @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_transfers(customer_id: nil, max_results: nil, new_owner_user_id: nil, old_owner_user_id: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'transfers', options)
|
||||||
|
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfersListResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfersListResponse
|
||||||
|
command.query['customerId'] = customer_id unless customer_id.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['newOwnerUserId'] = new_owner_user_id unless new_owner_user_id.nil?
|
||||||
|
command.query['oldOwnerUserId'] = old_owner_user_id unless old_owner_user_id.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['status'] = status unless status.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
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -26,7 +26,13 @@ module Google
|
||||||
# @see https://developers.google.com/admin-sdk/directory/
|
# @see https://developers.google.com/admin-sdk/directory/
|
||||||
module AdminDirectoryV1
|
module AdminDirectoryV1
|
||||||
VERSION = 'DirectoryV1'
|
VERSION = 'DirectoryV1'
|
||||||
REVISION = '20150720'
|
REVISION = '20151005'
|
||||||
|
|
||||||
|
# View and manage customer related information
|
||||||
|
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
||||||
|
|
||||||
|
# View customer related information
|
||||||
|
AUTH_ADMIN_DIRECTORY_CUSTOMER_READONLY = 'https://www.googleapis.com/auth/admin.directory.customer.readonly'
|
||||||
|
|
||||||
# View and manage your Chrome OS devices' metadata
|
# View and manage your Chrome OS devices' metadata
|
||||||
AUTH_ADMIN_DIRECTORY_DEVICE_CHROMEOS = 'https://www.googleapis.com/auth/admin.directory.device.chromeos'
|
AUTH_ADMIN_DIRECTORY_DEVICE_CHROMEOS = 'https://www.googleapis.com/auth/admin.directory.device.chromeos'
|
||||||
|
@ -43,6 +49,12 @@ module Google
|
||||||
# View your mobile devices' metadata
|
# View your mobile devices' metadata
|
||||||
AUTH_ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = 'https://www.googleapis.com/auth/admin.directory.device.mobile.readonly'
|
AUTH_ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = 'https://www.googleapis.com/auth/admin.directory.device.mobile.readonly'
|
||||||
|
|
||||||
|
# View and manage the provisioning of domains for your customers
|
||||||
|
AUTH_ADMIN_DIRECTORY_DOMAIN = 'https://www.googleapis.com/auth/admin.directory.domain'
|
||||||
|
|
||||||
|
# View domains related to your customers
|
||||||
|
AUTH_ADMIN_DIRECTORY_DOMAIN_READONLY = 'https://www.googleapis.com/auth/admin.directory.domain.readonly'
|
||||||
|
|
||||||
# View and manage the provisioning of groups on your domain
|
# View and manage the provisioning of groups on your domain
|
||||||
AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
|
AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
|
||||||
|
|
||||||
|
@ -64,6 +76,12 @@ module Google
|
||||||
# View organization units on your domain
|
# View organization units on your domain
|
||||||
AUTH_ADMIN_DIRECTORY_ORGUNIT_READONLY = 'https://www.googleapis.com/auth/admin.directory.orgunit.readonly'
|
AUTH_ADMIN_DIRECTORY_ORGUNIT_READONLY = 'https://www.googleapis.com/auth/admin.directory.orgunit.readonly'
|
||||||
|
|
||||||
|
# Manage delegated admin roles for your domain
|
||||||
|
AUTH_ADMIN_DIRECTORY_ROLEMANAGEMENT = 'https://www.googleapis.com/auth/admin.directory.rolemanagement'
|
||||||
|
|
||||||
|
# View delegated admin roles for your domain
|
||||||
|
AUTH_ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY = 'https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly'
|
||||||
|
|
||||||
# View and manage the provisioning of users on your domain
|
# View and manage the provisioning of users on your domain
|
||||||
AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
|
AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
|
||||||
|
|
||||||
|
|
|
@ -514,6 +514,318 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# JSON template for Customer Resource object in Directory API.
|
||||||
|
class Customer
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The customer's secondary contact email address. This email address cannot be
|
||||||
|
# on the same domain as the customerDomain
|
||||||
|
# Corresponds to the JSON property `alternateEmail`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :alternate_email
|
||||||
|
|
||||||
|
# The customer's creation time (Readonly)
|
||||||
|
# Corresponds to the JSON property `customerCreationTime`
|
||||||
|
# @return [DateTime]
|
||||||
|
attr_accessor :customer_creation_time
|
||||||
|
|
||||||
|
# The customer's primary domain name string. Do not include the www prefix when
|
||||||
|
# creating a new customer.
|
||||||
|
# Corresponds to the JSON property `customerDomain`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :customer_domain
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# The unique ID for the customer's Google account. (Readonly)
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# Identifies the resource as a customer. Value: admin#directory#customer
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The customer's ISO 639-2 language code. The default value is en-US
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
# The customer's contact phone number in E.164 format.
|
||||||
|
# Corresponds to the JSON property `phoneNumber`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :phone_number
|
||||||
|
|
||||||
|
# JSON template for postal address of a customer.
|
||||||
|
# Corresponds to the JSON property `postalAddress`
|
||||||
|
# @return [Google::Apis::AdminDirectoryV1::CustomerPostalAddress]
|
||||||
|
attr_accessor :postal_address
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@alternate_email = args[:alternate_email] unless args[:alternate_email].nil?
|
||||||
|
@customer_creation_time = args[:customer_creation_time] unless args[:customer_creation_time].nil?
|
||||||
|
@customer_domain = args[:customer_domain] unless args[:customer_domain].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@language = args[:language] unless args[:language].nil?
|
||||||
|
@phone_number = args[:phone_number] unless args[:phone_number].nil?
|
||||||
|
@postal_address = args[:postal_address] unless args[:postal_address].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON template for postal address of a customer.
|
||||||
|
class CustomerPostalAddress
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A customer's physical address. The address can be composed of one to three
|
||||||
|
# lines.
|
||||||
|
# Corresponds to the JSON property `addressLine1`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :address_line1
|
||||||
|
|
||||||
|
# Address line 2 of the address.
|
||||||
|
# Corresponds to the JSON property `addressLine2`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :address_line2
|
||||||
|
|
||||||
|
# Address line 3 of the address.
|
||||||
|
# Corresponds to the JSON property `addressLine3`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :address_line3
|
||||||
|
|
||||||
|
# The customer contact's name.
|
||||||
|
# Corresponds to the JSON property `contactName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :contact_name
|
||||||
|
|
||||||
|
# This is a required property. For countryCode information see the ISO 3166
|
||||||
|
# country code elements.
|
||||||
|
# Corresponds to the JSON property `countryCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :country_code
|
||||||
|
|
||||||
|
# Name of the locality. An example of a locality value is the city of San
|
||||||
|
# Francisco.
|
||||||
|
# Corresponds to the JSON property `locality`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :locality
|
||||||
|
|
||||||
|
# The company or company division name.
|
||||||
|
# Corresponds to the JSON property `organizationName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :organization_name
|
||||||
|
|
||||||
|
# The postal code. A postalCode example is a postal zip code such as 10009. This
|
||||||
|
# is in accordance with - http://portablecontacts.net/draft-spec.html#
|
||||||
|
# address_element.
|
||||||
|
# Corresponds to the JSON property `postalCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :postal_code
|
||||||
|
|
||||||
|
# Name of the region. An example of a region value is NY for the state of New
|
||||||
|
# York.
|
||||||
|
# Corresponds to the JSON property `region`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :region
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@address_line1 = args[:address_line1] unless args[:address_line1].nil?
|
||||||
|
@address_line2 = args[:address_line2] unless args[:address_line2].nil?
|
||||||
|
@address_line3 = args[:address_line3] unless args[:address_line3].nil?
|
||||||
|
@contact_name = args[:contact_name] unless args[:contact_name].nil?
|
||||||
|
@country_code = args[:country_code] unless args[:country_code].nil?
|
||||||
|
@locality = args[:locality] unless args[:locality].nil?
|
||||||
|
@organization_name = args[:organization_name] unless args[:organization_name].nil?
|
||||||
|
@postal_code = args[:postal_code] unless args[:postal_code].nil?
|
||||||
|
@region = args[:region] unless args[:region].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON template for Domain Alias object in Directory API.
|
||||||
|
class DomainAlias
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The creation time of the domain alias. (Read-only).
|
||||||
|
# Corresponds to the JSON property `creationTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :creation_time
|
||||||
|
|
||||||
|
# The domain alias name.
|
||||||
|
# Corresponds to the JSON property `domainAliasName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :domain_alias_name
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Kind of resource this is.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The parent domain name that the domain alias is associated with. This can
|
||||||
|
# either be a primary or secondary domain name within a customer.
|
||||||
|
# Corresponds to the JSON property `parentDomainName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :parent_domain_name
|
||||||
|
|
||||||
|
# Indicates the verification state of a domain alias. (Read-only)
|
||||||
|
# Corresponds to the JSON property `verified`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :verified
|
||||||
|
alias_method :verified?, :verified
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
||||||
|
@domain_alias_name = args[:domain_alias_name] unless args[:domain_alias_name].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@parent_domain_name = args[:parent_domain_name] unless args[:parent_domain_name].nil?
|
||||||
|
@verified = args[:verified] unless args[:verified].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON response template to list domain aliases in Directory API.
|
||||||
|
class DomainAliases
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of domain alias objects.
|
||||||
|
# Corresponds to the JSON property `domainAliases`
|
||||||
|
# @return [Array<Google::Apis::AdminDirectoryV1::DomainAlias>]
|
||||||
|
attr_accessor :domain_aliases
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Kind of resource this is.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@domain_aliases = args[:domain_aliases] unless args[:domain_aliases].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON template for Domain object in Directory API.
|
||||||
|
class Domains
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Creation time of the domain. (Read-only).
|
||||||
|
# Corresponds to the JSON property `creationTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :creation_time
|
||||||
|
|
||||||
|
# List of domain alias objects. (Read-only)
|
||||||
|
# Corresponds to the JSON property `domainAliases`
|
||||||
|
# @return [Array<Google::Apis::AdminDirectoryV1::DomainAlias>]
|
||||||
|
attr_accessor :domain_aliases
|
||||||
|
|
||||||
|
# The domain name of the customer.
|
||||||
|
# Corresponds to the JSON property `domainName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :domain_name
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Indicates if the domain is a primary domain (Read-only).
|
||||||
|
# Corresponds to the JSON property `isPrimary`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :is_primary
|
||||||
|
alias_method :is_primary?, :is_primary
|
||||||
|
|
||||||
|
# Kind of resource this is.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# Indicates the verification state of a domain. (Read-only).
|
||||||
|
# Corresponds to the JSON property `verified`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :verified
|
||||||
|
alias_method :verified?, :verified
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
||||||
|
@domain_aliases = args[:domain_aliases] unless args[:domain_aliases].nil?
|
||||||
|
@domain_name = args[:domain_name] unless args[:domain_name].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@is_primary = args[:is_primary] unless args[:is_primary].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@verified = args[:verified] unless args[:verified].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON response template to list Domains in Directory API.
|
||||||
|
class Domains2
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of domain objects.
|
||||||
|
# Corresponds to the JSON property `domains`
|
||||||
|
# @return [Array<Google::Apis::AdminDirectoryV1::Domains>]
|
||||||
|
attr_accessor :domains
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Kind of resource this is.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@domains = args[:domains] unless args[:domains].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# JSON template for Group resource in Directory API.
|
# JSON template for Group resource in Directory API.
|
||||||
class Group
|
class Group
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1223,6 +1535,315 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# JSON template for privilege resource in Directory API.
|
||||||
|
class Privilege
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of child privileges. Privileges for a service form a tree. Each
|
||||||
|
# privilege can have a list of child privileges; this list is empty for a leaf
|
||||||
|
# privilege.
|
||||||
|
# Corresponds to the JSON property `childPrivileges`
|
||||||
|
# @return [Array<Google::Apis::AdminDirectoryV1::Privilege>]
|
||||||
|
attr_accessor :child_privileges
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# If the privilege can be restricted to an organization unit.
|
||||||
|
# Corresponds to the JSON property `isOuScopable`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :is_ou_scopable
|
||||||
|
alias_method :is_ou_scopable?, :is_ou_scopable
|
||||||
|
|
||||||
|
# The type of the API resource. This is always admin#directory#privilege.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The name of the privilege.
|
||||||
|
# Corresponds to the JSON property `privilegeName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :privilege_name
|
||||||
|
|
||||||
|
# The obfuscated ID of the service this privilege is for.
|
||||||
|
# Corresponds to the JSON property `serviceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service_id
|
||||||
|
|
||||||
|
# The name of the service this privilege is for.
|
||||||
|
# Corresponds to the JSON property `serviceName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@child_privileges = args[:child_privileges] unless args[:child_privileges].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@is_ou_scopable = args[:is_ou_scopable] unless args[:is_ou_scopable].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@privilege_name = args[:privilege_name] unless args[:privilege_name].nil?
|
||||||
|
@service_id = args[:service_id] unless args[:service_id].nil?
|
||||||
|
@service_name = args[:service_name] unless args[:service_name].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON response template for List privileges operation in Directory API.
|
||||||
|
class Privileges
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# A list of Privilege resources.
|
||||||
|
# Corresponds to the JSON property `items`
|
||||||
|
# @return [Array<Google::Apis::AdminDirectoryV1::Privilege>]
|
||||||
|
attr_accessor :items
|
||||||
|
|
||||||
|
# The type of the API resource. This is always admin#directory#privileges.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@items = args[:items] unless args[:items].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON template for role resource in Directory API.
|
||||||
|
class Role
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Returns true if the role is a super admin role.
|
||||||
|
# Corresponds to the JSON property `isSuperAdminRole`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :is_super_admin_role
|
||||||
|
alias_method :is_super_admin_role?, :is_super_admin_role
|
||||||
|
|
||||||
|
# Returns true if this is a pre-defined system role.
|
||||||
|
# Corresponds to the JSON property `isSystemRole`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :is_system_role
|
||||||
|
alias_method :is_system_role?, :is_system_role
|
||||||
|
|
||||||
|
# The type of the API resource. This is always admin#directory#role.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# A short description of the role.
|
||||||
|
# Corresponds to the JSON property `roleDescription`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role_description
|
||||||
|
|
||||||
|
# ID of the role.
|
||||||
|
# Corresponds to the JSON property `roleId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role_id
|
||||||
|
|
||||||
|
# Name of the role.
|
||||||
|
# Corresponds to the JSON property `roleName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role_name
|
||||||
|
|
||||||
|
# The set of privileges that are granted to this role.
|
||||||
|
# Corresponds to the JSON property `rolePrivileges`
|
||||||
|
# @return [Array<Google::Apis::AdminDirectoryV1::Role::RolePrivilege>]
|
||||||
|
attr_accessor :role_privileges
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@is_super_admin_role = args[:is_super_admin_role] unless args[:is_super_admin_role].nil?
|
||||||
|
@is_system_role = args[:is_system_role] unless args[:is_system_role].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@role_description = args[:role_description] unless args[:role_description].nil?
|
||||||
|
@role_id = args[:role_id] unless args[:role_id].nil?
|
||||||
|
@role_name = args[:role_name] unless args[:role_name].nil?
|
||||||
|
@role_privileges = args[:role_privileges] unless args[:role_privileges].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class RolePrivilege
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The name of the privilege.
|
||||||
|
# Corresponds to the JSON property `privilegeName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :privilege_name
|
||||||
|
|
||||||
|
# The obfuscated ID of the service this privilege is for.
|
||||||
|
# Corresponds to the JSON property `serviceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@privilege_name = args[:privilege_name] unless args[:privilege_name].nil?
|
||||||
|
@service_id = args[:service_id] unless args[:service_id].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON template for roleAssignment resource in Directory API.
|
||||||
|
class RoleAssignment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The unique ID of the user this role is assigned to.
|
||||||
|
# Corresponds to the JSON property `assignedTo`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :assigned_to
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# The type of the API resource. This is always admin#directory#roleAssignment.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# If the role is restricted to an organization unit, this contains the ID for
|
||||||
|
# the organization unit the exercise of this role is restricted to.
|
||||||
|
# Corresponds to the JSON property `orgUnitId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :org_unit_id
|
||||||
|
|
||||||
|
# ID of this roleAssignment.
|
||||||
|
# Corresponds to the JSON property `roleAssignmentId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role_assignment_id
|
||||||
|
|
||||||
|
# The ID of the role that is assigned.
|
||||||
|
# Corresponds to the JSON property `roleId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role_id
|
||||||
|
|
||||||
|
# The scope in which this role is assigned. Possible values are:
|
||||||
|
# - CUSTOMER
|
||||||
|
# - ORG_UNIT
|
||||||
|
# Corresponds to the JSON property `scopeType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :scope_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@assigned_to = args[:assigned_to] unless args[:assigned_to].nil?
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@org_unit_id = args[:org_unit_id] unless args[:org_unit_id].nil?
|
||||||
|
@role_assignment_id = args[:role_assignment_id] unless args[:role_assignment_id].nil?
|
||||||
|
@role_id = args[:role_id] unless args[:role_id].nil?
|
||||||
|
@scope_type = args[:scope_type] unless args[:scope_type].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON response template for List roleAssignments operation in Directory API.
|
||||||
|
class RoleAssignments
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# A list of RoleAssignment resources.
|
||||||
|
# Corresponds to the JSON property `items`
|
||||||
|
# @return [Array<Google::Apis::AdminDirectoryV1::RoleAssignment>]
|
||||||
|
attr_accessor :items
|
||||||
|
|
||||||
|
# The type of the API resource. This is always admin#directory#roleAssignments.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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)
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@items = args[:items] unless args[:items].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# JSON response template for List roles operation in Directory API.
|
||||||
|
class Roles
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# ETag of the resource.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# A list of Role resources.
|
||||||
|
# Corresponds to the JSON property `items`
|
||||||
|
# @return [Array<Google::Apis::AdminDirectoryV1::Role>]
|
||||||
|
attr_accessor :items
|
||||||
|
|
||||||
|
# The type of the API resource. This is always admin#directory#roles.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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)
|
||||||
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
|
@items = args[:items] unless args[:items].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# JSON template for Schema resource in Directory API.
|
# JSON template for Schema resource in Directory API.
|
||||||
class Schema
|
class Schema
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -58,6 +58,30 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Customer
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CustomerPostalAddress
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DomainAlias
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DomainAliases
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Domains
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Domains2
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Group
|
class Group
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -106,6 +130,34 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Privilege
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Privileges
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Role
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class RolePrivilege
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RoleAssignment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RoleAssignments
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Roles
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Schema
|
class Schema
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -322,6 +374,84 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Customer
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :alternate_email, as: 'alternateEmail'
|
||||||
|
property :customer_creation_time, as: 'customerCreationTime', type: DateTime
|
||||||
|
|
||||||
|
property :customer_domain, as: 'customerDomain'
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :language, as: 'language'
|
||||||
|
property :phone_number, as: 'phoneNumber'
|
||||||
|
property :postal_address, as: 'postalAddress', class: Google::Apis::AdminDirectoryV1::CustomerPostalAddress, decorator: Google::Apis::AdminDirectoryV1::CustomerPostalAddress::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CustomerPostalAddress
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :address_line1, as: 'addressLine1'
|
||||||
|
property :address_line2, as: 'addressLine2'
|
||||||
|
property :address_line3, as: 'addressLine3'
|
||||||
|
property :contact_name, as: 'contactName'
|
||||||
|
property :country_code, as: 'countryCode'
|
||||||
|
property :locality, as: 'locality'
|
||||||
|
property :organization_name, as: 'organizationName'
|
||||||
|
property :postal_code, as: 'postalCode'
|
||||||
|
property :region, as: 'region'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DomainAlias
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_time, as: 'creationTime'
|
||||||
|
property :domain_alias_name, as: 'domainAliasName'
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :parent_domain_name, as: 'parentDomainName'
|
||||||
|
property :verified, as: 'verified'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DomainAliases
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :domain_aliases, as: 'domainAliases', class: Google::Apis::AdminDirectoryV1::DomainAlias, decorator: Google::Apis::AdminDirectoryV1::DomainAlias::Representation
|
||||||
|
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Domains
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_time, as: 'creationTime'
|
||||||
|
collection :domain_aliases, as: 'domainAliases', class: Google::Apis::AdminDirectoryV1::DomainAlias, decorator: Google::Apis::AdminDirectoryV1::DomainAlias::Representation
|
||||||
|
|
||||||
|
property :domain_name, as: 'domainName'
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :is_primary, as: 'isPrimary'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :verified, as: 'verified'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Domains2
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :domains, as: 'domains', class: Google::Apis::AdminDirectoryV1::Domains, decorator: Google::Apis::AdminDirectoryV1::Domains::Representation
|
||||||
|
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Group
|
class Group
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -493,6 +623,88 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Privilege
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :child_privileges, as: 'childPrivileges', class: Google::Apis::AdminDirectoryV1::Privilege, decorator: Google::Apis::AdminDirectoryV1::Privilege::Representation
|
||||||
|
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :is_ou_scopable, as: 'isOuScopable'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :privilege_name, as: 'privilegeName'
|
||||||
|
property :service_id, as: 'serviceId'
|
||||||
|
property :service_name, as: 'serviceName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Privileges
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::Privilege, decorator: Google::Apis::AdminDirectoryV1::Privilege::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Role
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :is_super_admin_role, as: 'isSuperAdminRole'
|
||||||
|
property :is_system_role, as: 'isSystemRole'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :role_description, as: 'roleDescription'
|
||||||
|
property :role_id, as: 'roleId'
|
||||||
|
property :role_name, as: 'roleName'
|
||||||
|
collection :role_privileges, as: 'rolePrivileges', class: Google::Apis::AdminDirectoryV1::Role::RolePrivilege, decorator: Google::Apis::AdminDirectoryV1::Role::RolePrivilege::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class RolePrivilege
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :privilege_name, as: 'privilegeName'
|
||||||
|
property :service_id, as: 'serviceId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RoleAssignment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :assigned_to, as: 'assignedTo'
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :org_unit_id, as: 'orgUnitId'
|
||||||
|
property :role_assignment_id, as: 'roleAssignmentId'
|
||||||
|
property :role_id, as: 'roleId'
|
||||||
|
property :scope_type, as: 'scopeType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RoleAssignments
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::RoleAssignment, decorator: Google::Apis::AdminDirectoryV1::RoleAssignment::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Roles
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :etag, as: 'etag'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::Role, decorator: Google::Apis::AdminDirectoryV1::Role::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Schema
|
class Schema
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/admin-sdk/reports/
|
# @see https://developers.google.com/admin-sdk/reports/
|
||||||
module AdminReportsV1
|
module AdminReportsV1
|
||||||
VERSION = 'ReportsV1'
|
VERSION = 'ReportsV1'
|
||||||
REVISION = '20150429'
|
REVISION = '20151113'
|
||||||
|
|
||||||
# View audit reports of Google Apps for your domain
|
# View audit reports of Google Apps for your domain
|
||||||
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
|
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
|
||||||
|
|
|
@ -100,8 +100,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_activities(user_key, application_name, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_activities(user_key, application_name, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'activity/users/{userKey}/applications/{applicationName}'
|
command = make_simple_command(:get, 'activity/users/{userKey}/applications/{applicationName}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdminReportsV1::Activities::Representation
|
command.response_representation = Google::Apis::AdminReportsV1::Activities::Representation
|
||||||
command.response_class = Google::Apis::AdminReportsV1::Activities
|
command.response_class = Google::Apis::AdminReportsV1::Activities
|
||||||
command.params['userKey'] = user_key unless user_key.nil?
|
command.params['userKey'] = user_key unless user_key.nil?
|
||||||
|
@ -168,8 +167,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def watch_activity(user_key, application_name, channel_object = nil, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def watch_activity(user_key, application_name, channel_object = nil, actor_ip_address: nil, customer_id: nil, end_time: nil, event_name: nil, filters: nil, max_results: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'activity/users/{userKey}/applications/{applicationName}/watch'
|
command = make_simple_command(:post, 'activity/users/{userKey}/applications/{applicationName}/watch', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation
|
command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation
|
||||||
command.request_object = channel_object
|
command.request_object = channel_object
|
||||||
command.response_representation = Google::Apis::AdminReportsV1::Channel::Representation
|
command.response_representation = Google::Apis::AdminReportsV1::Channel::Representation
|
||||||
|
@ -214,8 +212,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '/admin/reports_v1/channels/stop'
|
command = make_simple_command(:post, '/admin/reports_v1/channels/stop', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation
|
command.request_representation = Google::Apis::AdminReportsV1::Channel::Representation
|
||||||
command.request_object = channel_object
|
command.request_object = channel_object
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -257,8 +254,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_customer_usage_report(date, customer_id: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_customer_usage_report(date, customer_id: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'usage/dates/{date}'
|
command = make_simple_command(:get, 'usage/dates/{date}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
|
command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
|
||||||
command.response_class = Google::Apis::AdminReportsV1::UsageReports
|
command.response_class = Google::Apis::AdminReportsV1::UsageReports
|
||||||
command.params['date'] = date unless date.nil?
|
command.params['date'] = date unless date.nil?
|
||||||
|
@ -311,8 +307,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_user_usage_report(user_key, date, customer_id: nil, filters: nil, max_results: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_user_usage_report(user_key, date, customer_id: nil, filters: nil, max_results: nil, page_token: nil, parameters: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'usage/users/{userKey}/dates/{date}'
|
command = make_simple_command(:get, 'usage/users/{userKey}/dates/{date}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
|
command.response_representation = Google::Apis::AdminReportsV1::UsageReports::Representation
|
||||||
command.response_class = Google::Apis::AdminReportsV1::UsageReports
|
command.response_class = Google::Apis::AdminReportsV1::UsageReports
|
||||||
command.params['userKey'] = user_key unless user_key.nil?
|
command.params['userKey'] = user_key unless user_key.nil?
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/adsense/management/
|
# @see https://developers.google.com/adsense/management/
|
||||||
module AdsenseV1_4
|
module AdsenseV1_4
|
||||||
VERSION = 'V1_4'
|
VERSION = 'V1_4'
|
||||||
REVISION = '20150726'
|
REVISION = '20151127'
|
||||||
|
|
||||||
# View and manage your AdSense data
|
# View and manage your AdSense data
|
||||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||||
|
|
|
@ -26,6 +26,11 @@ module Google
|
||||||
class Account
|
class Account
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `creation_time`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :creation_time
|
||||||
|
|
||||||
# Unique identifier of this account.
|
# Unique identifier of this account.
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -63,6 +68,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
||||||
@id = args[:id] unless args[:id].nil?
|
@id = args[:id] unless args[:id].nil?
|
||||||
@kind = args[:kind] unless args[:kind].nil?
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
@name = args[:name] unless args[:name].nil?
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
|
|
@ -149,6 +149,7 @@ module Google
|
||||||
class Account
|
class Account
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_time, as: 'creation_time'
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
|
|
@ -80,8 +80,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account(account_id, tree: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account(account_id, tree: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}'
|
command = make_simple_command(:get, 'accounts/{accountId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::Account::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::Account::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::Account
|
command.response_class = Google::Apis::AdsenseV1_4::Account
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -120,8 +119,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts'
|
command = make_simple_command(:get, 'accounts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::Accounts::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::Accounts::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::Accounts
|
command.response_class = Google::Apis::AdsenseV1_4::Accounts
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -163,8 +161,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdClients
|
command.response_class = Google::Apis::AdsenseV1_4::AdClients
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -206,8 +203,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdUnit
|
command.response_class = Google::Apis::AdsenseV1_4::AdUnit
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -248,8 +244,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdCode
|
command.response_class = Google::Apis::AdsenseV1_4::AdCode
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -295,8 +290,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
|
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -346,8 +340,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_ad_unit_custom_channels(account_id, ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_ad_unit_custom_channels(account_id, ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
|
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -389,8 +382,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_account_alert(account_id, alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_account_alert(account_id, alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/alerts/{alertId}'
|
command = make_simple_command(:delete, 'accounts/{accountId}/alerts/{alertId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['alertId'] = alert_id unless alert_id.nil?
|
command.params['alertId'] = alert_id unless alert_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -428,8 +420,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/alerts'
|
command = make_simple_command(:get, 'accounts/{accountId}/alerts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::Alerts
|
command.response_class = Google::Apis::AdsenseV1_4::Alerts
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -470,8 +461,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
|
command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -517,8 +507,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/customchannels'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
|
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -567,8 +556,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_custom_channel_ad_units(account_id, ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_custom_channel_ad_units(account_id, ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
|
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -608,8 +596,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_payments(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_payments(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/payments'
|
command = make_simple_command(:get, 'accounts/{accountId}/payments', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::Payments
|
command.response_class = Google::Apis::AdsenseV1_4::Payments
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -675,11 +662,10 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_account_report(account_id, start_date, end_date, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
def generate_account_report(account_id, start_date, end_date, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/reports'
|
|
||||||
if download_dest.nil?
|
if download_dest.nil?
|
||||||
command = make_simple_command(:get, path, options)
|
command = make_simple_command(:get, 'accounts/{accountId}/reports', options)
|
||||||
else
|
else
|
||||||
command = make_download_command(:get, path, options)
|
command = make_download_command(:get, 'accounts/{accountId}/reports', options)
|
||||||
command.download_dest = download_dest
|
command.download_dest = download_dest
|
||||||
end
|
end
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
|
||||||
|
@ -737,8 +723,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/reports/{savedReportId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
|
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -784,8 +769,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/reports/saved'
|
command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::SavedReports
|
command.response_class = Google::Apis::AdsenseV1_4::SavedReports
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -824,8 +808,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_saved_ad_style(account_id, saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_saved_ad_style(account_id, saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/savedadstyles/{savedAdStyleId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
|
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -868,8 +851,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_saved_ad_styles(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_saved_ad_styles(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/savedadstyles'
|
command = make_simple_command(:get, 'accounts/{accountId}/savedadstyles', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
|
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -914,8 +896,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/urlchannels'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
|
command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -957,8 +938,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients'
|
command = make_simple_command(:get, 'adclients', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdClients::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdClients
|
command.response_class = Google::Apis::AdsenseV1_4::AdClients
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -996,8 +976,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/adunits/{adUnitId}'
|
command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdUnit::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdUnit
|
command.response_class = Google::Apis::AdsenseV1_4::AdUnit
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -1035,8 +1014,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_ad_code_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_ad_code_ad_unit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/adunits/{adUnitId}/adcode'
|
command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdCode
|
command.response_class = Google::Apis::AdsenseV1_4::AdCode
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -1079,8 +1057,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_ad_units(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_ad_units(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/adunits'
|
command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
|
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -1127,8 +1104,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_ad_unit_custom_channels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_ad_unit_custom_channels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/adunits/{adUnitId}/customchannels'
|
command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
|
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -1166,8 +1142,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_alert(alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_alert(alert_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'alerts/{alertId}'
|
command = make_simple_command(:delete, 'alerts/{alertId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['alertId'] = alert_id unless alert_id.nil?
|
command.params['alertId'] = alert_id unless alert_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -1202,8 +1177,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_alerts(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_alerts(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'alerts'
|
command = make_simple_command(:get, 'alerts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::Alerts::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::Alerts
|
command.response_class = Google::Apis::AdsenseV1_4::Alerts
|
||||||
command.query['locale'] = locale unless locale.nil?
|
command.query['locale'] = locale unless locale.nil?
|
||||||
|
@ -1240,8 +1214,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels/{customChannelId}'
|
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannel::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
|
command.response_class = Google::Apis::AdsenseV1_4::CustomChannel
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -1284,8 +1257,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels'
|
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::CustomChannels::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
|
command.response_class = Google::Apis::AdsenseV1_4::CustomChannels
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -1331,8 +1303,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_custom_channel_ad_units(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_custom_channel_ad_units(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels/{customChannelId}/adunits'
|
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::AdUnits::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
|
command.response_class = Google::Apis::AdsenseV1_4::AdUnits
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -1369,8 +1340,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_metadata_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_metadata_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'metadata/dimensions'
|
command = make_simple_command(:get, 'metadata/dimensions', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::Metadata
|
command.response_class = Google::Apis::AdsenseV1_4::Metadata
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1402,8 +1372,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_metadata_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_metadata_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'metadata/metrics'
|
command = make_simple_command(:get, 'metadata/metrics', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::Metadata::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::Metadata
|
command.response_class = Google::Apis::AdsenseV1_4::Metadata
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1435,8 +1404,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_payments(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_payments(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'payments'
|
command = make_simple_command(:get, 'payments', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::Payments::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::Payments
|
command.response_class = Google::Apis::AdsenseV1_4::Payments
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1501,11 +1469,10 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_report(start_date, end_date, account_id: nil, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
def generate_report(start_date, end_date, account_id: nil, currency: nil, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, use_timezone_reporting: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
||||||
path = 'reports'
|
|
||||||
if download_dest.nil?
|
if download_dest.nil?
|
||||||
command = make_simple_command(:get, path, options)
|
command = make_simple_command(:get, 'reports', options)
|
||||||
else
|
else
|
||||||
command = make_download_command(:get, path, options)
|
command = make_download_command(:get, 'reports', options)
|
||||||
command.download_dest = download_dest
|
command.download_dest = download_dest
|
||||||
end
|
end
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
|
||||||
|
@ -1561,8 +1528,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_saved_report(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def generate_saved_report(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'reports/{savedReportId}'
|
command = make_simple_command(:get, 'reports/{savedReportId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::GenerateReportResponse::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
|
command.response_class = Google::Apis::AdsenseV1_4::GenerateReportResponse
|
||||||
command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
|
command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
|
||||||
|
@ -1605,8 +1571,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_saved_reports(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_saved_reports(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'reports/saved'
|
command = make_simple_command(:get, 'reports/saved', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::SavedReports::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::SavedReports
|
command.response_class = Google::Apis::AdsenseV1_4::SavedReports
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -1642,8 +1607,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_saved_ad_style(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_saved_ad_style(saved_ad_style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'savedadstyles/{savedAdStyleId}'
|
command = make_simple_command(:get, 'savedadstyles/{savedAdStyleId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyle::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
|
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyle
|
||||||
command.params['savedAdStyleId'] = saved_ad_style_id unless saved_ad_style_id.nil?
|
command.params['savedAdStyleId'] = saved_ad_style_id unless saved_ad_style_id.nil?
|
||||||
|
@ -1683,8 +1647,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_saved_ad_styles(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_saved_ad_styles(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'savedadstyles'
|
command = make_simple_command(:get, 'savedadstyles', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::SavedAdStyles::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
|
command.response_class = Google::Apis::AdsenseV1_4::SavedAdStyles
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -1726,8 +1689,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/urlchannels'
|
command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
|
command.response_representation = Google::Apis::AdsenseV1_4::UrlChannels::Representation
|
||||||
command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
|
command.response_class = Google::Apis::AdsenseV1_4::UrlChannels
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/adsense/host/
|
# @see https://developers.google.com/adsense/host/
|
||||||
module AdsensehostV4_1
|
module AdsensehostV4_1
|
||||||
VERSION = 'V4_1'
|
VERSION = 'V4_1'
|
||||||
REVISION = '20150726'
|
REVISION = '20151127'
|
||||||
|
|
||||||
# View and manage your AdSense host data and associated accounts
|
# View and manage your AdSense host data and associated accounts
|
||||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||||
|
|
|
@ -78,8 +78,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}'
|
command = make_simple_command(:get, 'accounts/{accountId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::Account::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::Account::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::Account
|
command.response_class = Google::Apis::AdsensehostV4_1::Account
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -114,8 +113,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_accounts(filter_ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_accounts(filter_ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts'
|
command = make_simple_command(:get, 'accounts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::Accounts::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::Accounts::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::Accounts
|
command.response_class = Google::Apis::AdsensehostV4_1::Accounts
|
||||||
command.query['filterAdClientId'] = filter_ad_client_id unless filter_ad_client_id.nil?
|
command.query['filterAdClientId'] = filter_ad_client_id unless filter_ad_client_id.nil?
|
||||||
|
@ -153,8 +151,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_ad_client(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_ad_client(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AdClient
|
command.response_class = Google::Apis::AdsensehostV4_1::AdClient
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -196,8 +193,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AdClients
|
command.response_class = Google::Apis::AdsensehostV4_1::AdClients
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -238,8 +234,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}'
|
command = make_simple_command(:delete, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AdUnit
|
command.response_class = Google::Apis::AdsensehostV4_1::AdUnit
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -280,8 +275,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_ad_unit(account_id, ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AdUnit
|
command.response_class = Google::Apis::AdsensehostV4_1::AdUnit
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -325,8 +319,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, host_custom_channel_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_account_ad_unit_ad_code(account_id, ad_client_id, ad_unit_id, host_custom_channel_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdCode::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdCode::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AdCode
|
command.response_class = Google::Apis::AdsensehostV4_1::AdCode
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -367,8 +360,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits'
|
command = make_simple_command(:post, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
||||||
command.request_object = ad_unit_object
|
command.request_object = ad_unit_object
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
||||||
|
@ -415,8 +407,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_ad_units(account_id, ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits'
|
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnits::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnits::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AdUnits
|
command.response_class = Google::Apis::AdsensehostV4_1::AdUnits
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -461,8 +452,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_account_ad_unit(account_id, ad_client_id, ad_unit_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_account_ad_unit(account_id, ad_client_id, ad_unit_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits'
|
command = make_simple_command(:patch, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
||||||
command.request_object = ad_unit_object
|
command.request_object = ad_unit_object
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
||||||
|
@ -504,8 +494,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/adclients/{adClientId}/adunits'
|
command = make_simple_command(:put, 'accounts/{accountId}/adclients/{adClientId}/adunits', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
||||||
command.request_object = ad_unit_object
|
command.request_object = ad_unit_object
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation
|
||||||
|
@ -566,8 +555,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'accounts/{accountId}/reports'
|
command = make_simple_command(:get, 'accounts/{accountId}/reports', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::Report::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::Report::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::Report
|
command.response_class = Google::Apis::AdsensehostV4_1::Report
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -611,8 +599,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_ad_client(ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_ad_client(ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}'
|
command = make_simple_command(:get, 'adclients/{adClientId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdClient::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AdClient
|
command.response_class = Google::Apis::AdsensehostV4_1::AdClient
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -651,8 +638,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_ad_clients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients'
|
command = make_simple_command(:get, 'adclients', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AdClients::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AdClients
|
command.response_class = Google::Apis::AdsensehostV4_1::AdClients
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -695,8 +681,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def start_association_session(product_code, website_url, user_locale: nil, website_locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def start_association_session(product_code, website_url, user_locale: nil, website_locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'associationsessions/start'
|
command = make_simple_command(:get, 'associationsessions/start', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession
|
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession
|
||||||
command.query['productCode'] = product_code unless product_code.nil?
|
command.query['productCode'] = product_code unless product_code.nil?
|
||||||
|
@ -735,8 +720,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def verify_association_session(token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def verify_association_session(token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'associationsessions/verify'
|
command = make_simple_command(:get, 'associationsessions/verify', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession
|
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession
|
||||||
command.query['token'] = token unless token.nil?
|
command.query['token'] = token unless token.nil?
|
||||||
|
@ -773,8 +757,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels/{customChannelId}'
|
command = make_simple_command(:delete, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel
|
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -812,8 +795,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_custom_channel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels/{customChannelId}'
|
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel
|
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannel
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -850,8 +832,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels'
|
command = make_simple_command(:post, 'adclients/{adClientId}/customchannels', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
||||||
command.request_object = custom_channel_object
|
command.request_object = custom_channel_object
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
||||||
|
@ -895,8 +876,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_custom_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels'
|
command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannels::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannels::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannels
|
command.response_class = Google::Apis::AdsensehostV4_1::CustomChannels
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -937,8 +917,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_custom_channel(ad_client_id, custom_channel_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_custom_channel(ad_client_id, custom_channel_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels'
|
command = make_simple_command(:patch, 'adclients/{adClientId}/customchannels', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
||||||
command.request_object = custom_channel_object
|
command.request_object = custom_channel_object
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
||||||
|
@ -977,8 +956,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_custom_channel(ad_client_id, custom_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/customchannels'
|
command = make_simple_command(:put, 'adclients/{adClientId}/customchannels', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
||||||
command.request_object = custom_channel_object
|
command.request_object = custom_channel_object
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation
|
||||||
|
@ -1036,8 +1014,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_report(start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def generate_report(start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'reports'
|
command = make_simple_command(:get, 'reports', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::Report::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::Report::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::Report
|
command.response_class = Google::Apis::AdsensehostV4_1::Report
|
||||||
command.query['dimension'] = dimension unless dimension.nil?
|
command.query['dimension'] = dimension unless dimension.nil?
|
||||||
|
@ -1082,8 +1059,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_url_channel(ad_client_id, url_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_url_channel(ad_client_id, url_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/urlchannels/{urlChannelId}'
|
command = make_simple_command(:delete, 'adclients/{adClientId}/urlchannels/{urlChannelId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::UrlChannel
|
command.response_class = Google::Apis::AdsensehostV4_1::UrlChannel
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
@ -1120,8 +1096,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_url_channel(ad_client_id, url_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_url_channel(ad_client_id, url_channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/urlchannels'
|
command = make_simple_command(:post, 'adclients/{adClientId}/urlchannels', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
|
command.request_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
|
||||||
command.request_object = url_channel_object
|
command.request_object = url_channel_object
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannel::Representation
|
||||||
|
@ -1164,8 +1139,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_url_channels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'adclients/{adClientId}/urlchannels'
|
command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannels::Representation
|
command.response_representation = Google::Apis::AdsensehostV4_1::UrlChannels::Representation
|
||||||
command.response_class = Google::Apis::AdsensehostV4_1::UrlChannels
|
command.response_class = Google::Apis::AdsensehostV4_1::UrlChannels
|
||||||
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/analytics/
|
# @see https://developers.google.com/analytics/
|
||||||
module AnalyticsV3
|
module AnalyticsV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20150417'
|
REVISION = '20151030'
|
||||||
|
|
||||||
# View and manage your Google Analytics data
|
# View and manage your Google Analytics data
|
||||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||||
|
|
|
@ -1591,9 +1591,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
# A floating-point number between 0 and 1. Specifies the fraction of the traffic
|
# A floating-point number in (0, 1]. Specifies the fraction of the traffic that
|
||||||
# that participates in the experiment. Can be changed for a running experiment.
|
# participates in the experiment. Can be changed for a running experiment. This
|
||||||
# This field may not be changed for an experiments whose status is ENDED.
|
# field may not be changed for an experiments whose status is ENDED.
|
||||||
# Corresponds to the JSON property `trafficCoverage`
|
# Corresponds to the JSON property `trafficCoverage`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :traffic_coverage
|
attr_accessor :traffic_coverage
|
||||||
|
@ -1616,9 +1616,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :web_property_id
|
attr_accessor :web_property_id
|
||||||
|
|
||||||
# A floating-point number between 0 and 1. Specifies the necessary confidence
|
# A floating-point number in (0, 1). Specifies the necessary confidence level to
|
||||||
# level to choose a winner. This field may not be changed for an experiments
|
# choose a winner. This field may not be changed for an experiments whose status
|
||||||
# whose status is ENDED.
|
# is ENDED.
|
||||||
# Corresponds to the JSON property `winnerConfidenceLevel`
|
# Corresponds to the JSON property `winnerConfidenceLevel`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :winner_confidence_level
|
attr_accessor :winner_confidence_level
|
||||||
|
@ -2251,11 +2251,9 @@ module Google
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
# Match type for this filter. Possible values are BEGINS_WITH, EQUAL, ENDS_WITH,
|
# Match type for this filter. Possible values are BEGINS_WITH, EQUAL, ENDS_WITH,
|
||||||
# CONTAINS, MATCHES. Include and Exclude filters can use any match type. Match
|
# CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS, PAGE_REQUEST_URI, or
|
||||||
# type is not applicable to Upper case and Lower case filters. Search and
|
# PAGE_HOSTNAME filters can use any match type; all other filters must use
|
||||||
# Replace expressions in the Search and Replace filter and all filter
|
# MATCHES.
|
||||||
# expressions in the Advanced filter default to MATCHES. User should not set
|
|
||||||
# match type for those filters.
|
|
||||||
# Corresponds to the JSON property `matchType`
|
# Corresponds to the JSON property `matchType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :match_type
|
attr_accessor :match_type
|
||||||
|
@ -3519,8 +3517,8 @@ module Google
|
||||||
# @return [DateTime]
|
# @return [DateTime]
|
||||||
attr_accessor :created
|
attr_accessor :created
|
||||||
|
|
||||||
# The currency type associated with this view (profile). The supported values
|
# The currency type associated with this view (profile), defaults to USD. The
|
||||||
# are:
|
# supported values are:
|
||||||
# ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY,
|
# ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY,
|
||||||
# KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, ZAR
|
# KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, ZAR
|
||||||
# Corresponds to the JSON property `currency`
|
# Corresponds to the JSON property `currency`
|
||||||
|
|
|
@ -72,6 +72,9 @@ module Google
|
||||||
# @param [String] filters
|
# @param [String] filters
|
||||||
# A comma-separated list of dimension or metric filters to be applied to
|
# A comma-separated list of dimension or metric filters to be applied to
|
||||||
# Analytics data.
|
# Analytics data.
|
||||||
|
# @param [Boolean] include_empty_rows
|
||||||
|
# The response will include empty rows if this parameter is set to true, the
|
||||||
|
# default is true
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# The maximum number of entries to include in this feed.
|
# The maximum number of entries to include in this feed.
|
||||||
# @param [String] output
|
# @param [String] output
|
||||||
|
@ -107,15 +110,15 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_ga_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_ga_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, include_empty_rows: nil, max_results: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'data/ga'
|
command = make_simple_command(:get, 'data/ga', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::GaData::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::GaData::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::GaData
|
command.response_class = Google::Apis::AnalyticsV3::GaData
|
||||||
command.query['dimensions'] = dimensions unless dimensions.nil?
|
command.query['dimensions'] = dimensions unless dimensions.nil?
|
||||||
command.query['end-date'] = end_date unless end_date.nil?
|
command.query['end-date'] = end_date unless end_date.nil?
|
||||||
command.query['filters'] = filters unless filters.nil?
|
command.query['filters'] = filters unless filters.nil?
|
||||||
command.query['ids'] = ids unless ids.nil?
|
command.query['ids'] = ids unless ids.nil?
|
||||||
|
command.query['include-empty-rows'] = include_empty_rows unless include_empty_rows.nil?
|
||||||
command.query['max-results'] = max_results unless max_results.nil?
|
command.query['max-results'] = max_results unless max_results.nil?
|
||||||
command.query['metrics'] = metrics unless metrics.nil?
|
command.query['metrics'] = metrics unless metrics.nil?
|
||||||
command.query['output'] = output unless output.nil?
|
command.query['output'] = output unless output.nil?
|
||||||
|
@ -184,8 +187,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_mcf_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, sampling_level: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_mcf_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, sampling_level: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'data/mcf'
|
command = make_simple_command(:get, 'data/mcf', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::McfData::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::McfData::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::McfData
|
command.response_class = Google::Apis::AnalyticsV3::McfData
|
||||||
command.query['dimensions'] = dimensions unless dimensions.nil?
|
command.query['dimensions'] = dimensions unless dimensions.nil?
|
||||||
|
@ -243,8 +245,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_realtime_data(ids, metrics, dimensions: nil, filters: nil, max_results: nil, sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_realtime_data(ids, metrics, dimensions: nil, filters: nil, max_results: nil, sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'data/realtime'
|
command = make_simple_command(:get, 'data/realtime', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::RealtimeData::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::RealtimeData::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::RealtimeData
|
command.response_class = Google::Apis::AnalyticsV3::RealtimeData
|
||||||
command.query['dimensions'] = dimensions unless dimensions.nil?
|
command.query['dimensions'] = dimensions unless dimensions.nil?
|
||||||
|
@ -289,8 +290,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_summaries(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_summaries(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accountSummaries'
|
command = make_simple_command(:get, 'management/accountSummaries', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::AccountSummaries::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::AccountSummaries::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::AccountSummaries
|
command.response_class = Google::Apis::AnalyticsV3::AccountSummaries
|
||||||
command.query['max-results'] = max_results unless max_results.nil?
|
command.query['max-results'] = max_results unless max_results.nil?
|
||||||
|
@ -328,8 +328,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_account_user_link(account_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_account_user_link(account_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/entityUserLinks/{linkId}'
|
command = make_simple_command(:delete, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['linkId'] = link_id unless link_id.nil?
|
command.params['linkId'] = link_id unless link_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -364,8 +363,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_account_user_link(account_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_account_user_link(account_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/entityUserLinks'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/entityUserLinks', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
command.request_object = entity_user_link_object
|
command.request_object = entity_user_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
|
@ -407,8 +405,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_account_user_links(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_account_user_links(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/entityUserLinks'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/entityUserLinks', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
|
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -448,8 +445,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_account_user_link(account_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_account_user_link(account_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/entityUserLinks/{linkId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
command.request_object = entity_user_link_object
|
command.request_object = entity_user_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
|
@ -490,8 +486,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_accounts(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_accounts(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts'
|
command = make_simple_command(:get, 'management/accounts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Accounts::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Accounts::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Accounts
|
command.response_class = Google::Apis::AnalyticsV3::Accounts
|
||||||
command.query['max-results'] = max_results unless max_results.nil?
|
command.query['max-results'] = max_results unless max_results.nil?
|
||||||
|
@ -534,8 +529,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_custom_data_sources(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_custom_data_sources(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomDataSources::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomDataSources::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::CustomDataSources
|
command.response_class = Google::Apis::AnalyticsV3::CustomDataSources
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -577,8 +571,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_custom_dimension(account_id, web_property_id, custom_dimension_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_custom_dimension(account_id, web_property_id, custom_dimension_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::CustomDimension
|
command.response_class = Google::Apis::AnalyticsV3::CustomDimension
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -618,8 +611,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_custom_dimension(account_id, web_property_id, custom_dimension_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_custom_dimension(account_id, web_property_id, custom_dimension_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
||||||
command.request_object = custom_dimension_object
|
command.request_object = custom_dimension_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
||||||
|
@ -664,8 +656,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_custom_dimensions(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_custom_dimensions(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomDimensions::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomDimensions::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::CustomDimensions
|
command.response_class = Google::Apis::AnalyticsV3::CustomDimensions
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -711,8 +702,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
||||||
command.request_object = custom_dimension_object
|
command.request_object = custom_dimension_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
||||||
|
@ -760,8 +750,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
||||||
command.request_object = custom_dimension_object
|
command.request_object = custom_dimension_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
|
||||||
|
@ -805,8 +794,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_custom_metric(account_id, web_property_id, custom_metric_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_custom_metric(account_id, web_property_id, custom_metric_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::CustomMetric
|
command.response_class = Google::Apis::AnalyticsV3::CustomMetric
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -846,8 +834,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_custom_metric(account_id, web_property_id, custom_metric_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_custom_metric(account_id, web_property_id, custom_metric_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
||||||
command.request_object = custom_metric_object
|
command.request_object = custom_metric_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
||||||
|
@ -892,8 +879,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_custom_metrics(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_custom_metrics(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomMetrics::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomMetrics::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::CustomMetrics
|
command.response_class = Google::Apis::AnalyticsV3::CustomMetrics
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -939,8 +925,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
||||||
command.request_object = custom_metric_object
|
command.request_object = custom_metric_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
||||||
|
@ -988,8 +973,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
||||||
command.request_object = custom_metric_object
|
command.request_object = custom_metric_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
|
||||||
|
@ -1035,8 +1019,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}'
|
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||||
command.params['profileId'] = profile_id unless profile_id.nil?
|
command.params['profileId'] = profile_id unless profile_id.nil?
|
||||||
|
@ -1078,8 +1061,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Experiment
|
command.response_class = Google::Apis::AnalyticsV3::Experiment
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1122,8 +1104,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_experiment(account_id, web_property_id, profile_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_experiment(account_id, web_property_id, profile_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
||||||
command.request_object = experiment_object
|
command.request_object = experiment_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
||||||
|
@ -1171,8 +1152,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_experiments(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_experiments(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Experiments::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Experiments::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Experiments
|
command.response_class = Google::Apis::AnalyticsV3::Experiments
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1218,8 +1198,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
||||||
command.request_object = experiment_object
|
command.request_object = experiment_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
||||||
|
@ -1266,8 +1245,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
||||||
command.request_object = experiment_object
|
command.request_object = experiment_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
|
||||||
|
@ -1309,8 +1287,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/filters/{filterId}'
|
command = make_simple_command(:delete, 'management/accounts/{accountId}/filters/{filterId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Filter
|
command.response_class = Google::Apis::AnalyticsV3::Filter
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1348,8 +1325,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/filters/{filterId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/filters/{filterId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Filter
|
command.response_class = Google::Apis::AnalyticsV3::Filter
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1386,8 +1362,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_filter(account_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_filter(account_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/filters'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/filters', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
||||||
command.request_object = filter_object
|
command.request_object = filter_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
||||||
|
@ -1429,8 +1404,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_filters(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_filters(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/filters'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/filters', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Filters::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Filters::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Filters
|
command.response_class = Google::Apis::AnalyticsV3::Filters
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1470,8 +1444,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/filters/{filterId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/filters/{filterId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
||||||
command.request_object = filter_object
|
command.request_object = filter_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
||||||
|
@ -1512,8 +1485,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/filters/{filterId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/filters/{filterId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
||||||
command.request_object = filter_object
|
command.request_object = filter_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
|
||||||
|
@ -1557,8 +1529,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_goal(account_id, web_property_id, profile_id, goal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_goal(account_id, web_property_id, profile_id, goal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Goal
|
command.response_class = Google::Apis::AnalyticsV3::Goal
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1601,8 +1572,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_goal(account_id, web_property_id, profile_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_goal(account_id, web_property_id, profile_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
||||||
command.request_object = goal_object
|
command.request_object = goal_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
||||||
|
@ -1654,8 +1624,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_goals(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_goals(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Goals::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Goals::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Goals
|
command.response_class = Google::Apis::AnalyticsV3::Goals
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1701,8 +1670,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
||||||
command.request_object = goal_object
|
command.request_object = goal_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
||||||
|
@ -1749,8 +1717,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
||||||
command.request_object = goal_object
|
command.request_object = goal_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
|
||||||
|
@ -1796,8 +1763,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}'
|
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||||
command.params['profileId'] = profile_id unless profile_id.nil?
|
command.params['profileId'] = profile_id unless profile_id.nil?
|
||||||
|
@ -1839,8 +1805,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_profile_filter_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink
|
command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1883,8 +1848,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_profile_filter_link(account_id, web_property_id, profile_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_profile_filter_link(account_id, web_property_id, profile_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
||||||
command.request_object = profile_filter_link_object
|
command.request_object = profile_filter_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
||||||
|
@ -1935,8 +1899,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_profile_filter_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_profile_filter_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLinks::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLinks::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLinks
|
command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLinks
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -1982,8 +1945,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
||||||
command.request_object = profile_filter_link_object
|
command.request_object = profile_filter_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
||||||
|
@ -2030,8 +1992,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_profile_filter_link(account_id, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
||||||
command.request_object = profile_filter_link_object
|
command.request_object = profile_filter_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
|
||||||
|
@ -2077,8 +2038,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_profile_user_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_profile_user_link(account_id, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}'
|
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||||
command.params['profileId'] = profile_id unless profile_id.nil?
|
command.params['profileId'] = profile_id unless profile_id.nil?
|
||||||
|
@ -2119,8 +2079,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_profile_user_link(account_id, web_property_id, profile_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_profile_user_link(account_id, web_property_id, profile_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
command.request_object = entity_user_link_object
|
command.request_object = entity_user_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
|
@ -2172,8 +2131,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_profile_user_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_profile_user_links(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
|
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2219,8 +2177,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_profile_user_link(account_id, web_property_id, profile_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_profile_user_link(account_id, web_property_id, profile_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
command.request_object = entity_user_link_object
|
command.request_object = entity_user_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
|
@ -2264,8 +2221,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}'
|
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||||
command.params['profileId'] = profile_id unless profile_id.nil?
|
command.params['profileId'] = profile_id unless profile_id.nil?
|
||||||
|
@ -2304,8 +2260,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Profile
|
command.response_class = Google::Apis::AnalyticsV3::Profile
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2345,8 +2300,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_profile(account_id, web_property_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_profile(account_id, web_property_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
||||||
command.request_object = profile_object
|
command.request_object = profile_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
||||||
|
@ -2395,8 +2349,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_profiles(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_profiles(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Profiles::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Profiles::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Profiles
|
command.response_class = Google::Apis::AnalyticsV3::Profiles
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2439,8 +2392,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
||||||
command.request_object = profile_object
|
command.request_object = profile_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
||||||
|
@ -2484,8 +2436,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
||||||
command.request_object = profile_object
|
command.request_object = profile_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
|
||||||
|
@ -2527,8 +2478,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_segments(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_segments(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/segments'
|
command = make_simple_command(:get, 'management/segments', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Segments::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Segments::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Segments
|
command.response_class = Google::Apis::AnalyticsV3::Segments
|
||||||
command.query['max-results'] = max_results unless max_results.nil?
|
command.query['max-results'] = max_results unless max_results.nil?
|
||||||
|
@ -2570,8 +2520,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::UnsampledReport
|
command.response_class = Google::Apis::AnalyticsV3::UnsampledReport
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2614,8 +2563,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
|
||||||
command.request_object = unsampled_report_object
|
command.request_object = unsampled_report_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
|
||||||
|
@ -2666,8 +2614,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_unsampled_reports(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_unsampled_reports(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReports::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::UnsampledReports::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::UnsampledReports
|
command.response_class = Google::Apis::AnalyticsV3::UnsampledReports
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2711,8 +2658,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_upload_data(account_id, web_property_id, custom_data_source_id, delete_upload_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_upload_data(account_id, web_property_id, custom_data_source_id, delete_upload_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::DeleteUploadDataRequest::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::DeleteUploadDataRequest::Representation
|
||||||
command.request_object = delete_upload_data_request_object
|
command.request_object = delete_upload_data_request_object
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2755,8 +2701,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_upload(account_id, web_property_id, custom_data_source_id, upload_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_upload(account_id, web_property_id, custom_data_source_id, upload_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Upload::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Upload::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Upload
|
command.response_class = Google::Apis::AnalyticsV3::Upload
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2803,8 +2748,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_uploads(account_id, web_property_id, custom_data_source_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_uploads(account_id, web_property_id, custom_data_source_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Uploads::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Uploads::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Uploads
|
command.response_class = Google::Apis::AnalyticsV3::Uploads
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2851,11 +2795,10 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def upload_data(account_id, web_property_id, custom_data_source_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
def upload_data(account_id, web_property_id, custom_data_source_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads'
|
|
||||||
if upload_source.nil?
|
if upload_source.nil?
|
||||||
command = make_simple_command(:post, path, options)
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
|
||||||
else
|
else
|
||||||
command = make_upload_command(:post, path, options)
|
command = make_upload_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
|
||||||
command.upload_source = upload_source
|
command.upload_source = upload_source
|
||||||
command.upload_content_type = content_type
|
command.upload_content_type = content_type
|
||||||
end
|
end
|
||||||
|
@ -2899,8 +2842,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}'
|
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||||
command.params['webPropertyAdWordsLinkId'] = web_property_ad_words_link_id unless web_property_ad_words_link_id.nil?
|
command.params['webPropertyAdWordsLinkId'] = web_property_ad_words_link_id unless web_property_ad_words_link_id.nil?
|
||||||
|
@ -2939,8 +2881,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink
|
command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -2980,8 +2921,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_web_property_ad_words_link(account_id, web_property_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_web_property_ad_words_link(account_id, web_property_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
||||||
command.request_object = entity_ad_words_link_object
|
command.request_object = entity_ad_words_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
||||||
|
@ -3026,8 +2966,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_web_property_ad_words_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_web_property_ad_words_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLinks::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLinks::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLinks
|
command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLinks
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -3071,8 +3010,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
||||||
command.request_object = entity_ad_words_link_object
|
command.request_object = entity_ad_words_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
||||||
|
@ -3116,8 +3054,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_web_property_ad_words_link(account_id, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
||||||
command.request_object = entity_ad_words_link_object
|
command.request_object = entity_ad_words_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
|
||||||
|
@ -3158,8 +3095,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_web_property(account_id, web_property_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_web_property(account_id, web_property_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Webproperty
|
command.response_class = Google::Apis::AnalyticsV3::Webproperty
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -3198,8 +3134,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_web_property(account_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_web_property(account_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
||||||
command.request_object = webproperty_object
|
command.request_object = webproperty_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
||||||
|
@ -3242,8 +3177,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_web_properties(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_web_properties(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Webproperties::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Webproperties::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Webproperties
|
command.response_class = Google::Apis::AnalyticsV3::Webproperties
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -3283,8 +3217,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}'
|
command = make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
||||||
command.request_object = webproperty_object
|
command.request_object = webproperty_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
||||||
|
@ -3325,8 +3258,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
||||||
command.request_object = webproperty_object
|
command.request_object = webproperty_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
|
||||||
|
@ -3368,8 +3300,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_web_property_user_link(account_id, web_property_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_web_property_user_link(account_id, web_property_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}'
|
command = make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
|
||||||
command.params['linkId'] = link_id unless link_id.nil?
|
command.params['linkId'] = link_id unless link_id.nil?
|
||||||
|
@ -3407,8 +3338,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_web_property_user_link(account_id, web_property_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_web_property_user_link(account_id, web_property_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks'
|
command = make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
command.request_object = entity_user_link_object
|
command.request_object = entity_user_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
|
@ -3455,8 +3385,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_web_property_user_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_web_property_user_links(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks'
|
command = make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
|
command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
@ -3499,8 +3428,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_web_property_user_link(account_id, web_property_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_web_property_user_link(account_id, web_property_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}'
|
command = make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
command.request_object = entity_user_link_object
|
command.request_object = entity_user_link_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
|
||||||
|
@ -3540,8 +3468,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_metadata_columns(report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_metadata_columns(report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'metadata/{reportType}/columns'
|
command = make_simple_command(:get, 'metadata/{reportType}/columns', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::Columns::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::Columns::Representation
|
||||||
command.response_class = Google::Apis::AnalyticsV3::Columns
|
command.response_class = Google::Apis::AnalyticsV3::Columns
|
||||||
command.params['reportType'] = report_type unless report_type.nil?
|
command.params['reportType'] = report_type unless report_type.nil?
|
||||||
|
@ -3575,8 +3502,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_account_ticket(account_ticket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def create_account_ticket(account_ticket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'provisioning/createAccountTicket'
|
command = make_simple_command(:post, 'provisioning/createAccountTicket', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation
|
command.request_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation
|
||||||
command.request_object = account_ticket_object
|
command.request_object = account_ticket_object
|
||||||
command.response_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation
|
command.response_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation
|
||||||
|
|
|
@ -23,10 +23,10 @@ module Google
|
||||||
# Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
|
# Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
|
||||||
# for Work users.
|
# for Work users.
|
||||||
#
|
#
|
||||||
# @see https://developers.google.com/play/enterprise
|
# @see https://developers.google.com/android/work/play/emm-api
|
||||||
module AndroidenterpriseV1
|
module AndroidenterpriseV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20150715'
|
REVISION = '20151127'
|
||||||
|
|
||||||
# Manage corporate Android devices
|
# Manage corporate Android devices
|
||||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||||
|
|
|
@ -27,6 +27,12 @@ module Google
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifies what kind of resource this is. Value: the fixed string "
|
||||||
|
# androidenterprise#appRestrictionsSchema".
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
# The set of restrictions that make up this schema.
|
# The set of restrictions that make up this schema.
|
||||||
# Corresponds to the JSON property `restrictions`
|
# Corresponds to the JSON property `restrictions`
|
||||||
# @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
|
# @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
|
||||||
|
@ -38,6 +44,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
@restrictions = args[:restrictions] unless args[:restrictions].nil?
|
@restrictions = args[:restrictions] unless args[:restrictions].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -237,10 +244,11 @@ module Google
|
||||||
attr_accessor :product_id
|
attr_accessor :product_id
|
||||||
|
|
||||||
# Whether this collection is visible to all users, or only to the users that
|
# Whether this collection is visible to all users, or only to the users that
|
||||||
# have been granted access through the collection_viewers api. Even if a
|
# have been granted access through the "Collectionviewers" API. With the launch
|
||||||
# collection is visible to allUsers, it is possible to add and remove viewers,
|
# of the "setAvailableProductSet" API, this property should always be set to "
|
||||||
# but this will have no effect until the collection's visibility changes to
|
# viewersOnly", as the "allUsers" option will bypass the "availableProductSet"
|
||||||
# viewersOnly.
|
# for all users within a domain.
|
||||||
|
# The "allUsers" setting is deprecated, and will be removed.
|
||||||
# Corresponds to the JSON property `visibility`
|
# Corresponds to the JSON property `visibility`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :visibility
|
attr_accessor :visibility
|
||||||
|
@ -290,7 +298,7 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# An ordered collection of products which can be made visible on the Google Play
|
# An ordered collection of products which can be made visible on the Google Play
|
||||||
# Store app to a selected group of users.
|
# Store to a selected group of users.
|
||||||
# Corresponds to the JSON property `collection`
|
# Corresponds to the JSON property `collection`
|
||||||
# @return [Array<Google::Apis::AndroidenterpriseV1::Collection>]
|
# @return [Array<Google::Apis::AndroidenterpriseV1::Collection>]
|
||||||
attr_accessor :collection
|
attr_accessor :collection
|
||||||
|
@ -522,6 +530,32 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class SendTestPushNotificationResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The message ID of the test push notification that was sent.
|
||||||
|
# Corresponds to the JSON property `messageId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message_id
|
||||||
|
|
||||||
|
# The name of the Cloud Pub/Sub topic to which notifications for this enterprise'
|
||||||
|
# s enrolled account will be sent.
|
||||||
|
# Corresponds to the JSON property `topicName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :topic_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@message_id = args[:message_id] unless args[:message_id].nil?
|
||||||
|
@topic_name = args[:topic_name] unless args[:topic_name].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# The existence of an entitlement resource means that a user has the right to
|
# The existence of an entitlement resource means that a user has the right to
|
||||||
# use a particular app on any of their devices. This might be because the app is
|
# use a particular app on any of their devices. This might be because the app is
|
||||||
# free or because they have been allocated a license to the app from a group
|
# free or because they have been allocated a license to the app from a group
|
||||||
|
@ -914,8 +948,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
# A string of the form app:
|
# A string of the form app:<package name>. For example, app:com.google.android.
|
||||||
# . For example, app:com.google.android.gm represents the Gmail app.
|
# gm represents the Gmail app.
|
||||||
# Corresponds to the JSON property `productId`
|
# Corresponds to the JSON property `productId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :product_id
|
attr_accessor :product_id
|
||||||
|
@ -1019,6 +1053,32 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A set of products.
|
||||||
|
class ProductSet
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifies what kind of resource this is. Value: the fixed string "
|
||||||
|
# androidenterprise#productSet".
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The list of product IDs making up the set of products.
|
||||||
|
# Corresponds to the JSON property `productId`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :product_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@product_id = args[:product_id] unless args[:product_id].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class ApproveProductRequest
|
class ApproveProductRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -78,6 +78,10 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SendTestPushNotificationResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Entitlement
|
class Entitlement
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -122,6 +126,10 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ProductSet
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class ApproveProductRequest
|
class ApproveProductRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -145,6 +153,7 @@ module Google
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
collection :restrictions, as: 'restrictions', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction::Representation
|
collection :restrictions, as: 'restrictions', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -273,6 +282,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SendTestPushNotificationResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :message_id, as: 'messageId'
|
||||||
|
property :topic_name, as: 'topicName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Entitlement
|
class Entitlement
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -385,6 +402,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ProductSet
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :product_id, as: 'productId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ApproveProductRequest
|
class ApproveProductRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -31,7 +31,7 @@ module Google
|
||||||
# Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module
|
# Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module
|
||||||
# service = Androidenterprise::AndroidEnterpriseService.new
|
# service = Androidenterprise::AndroidEnterpriseService.new
|
||||||
#
|
#
|
||||||
# @see https://developers.google.com/play/enterprise
|
# @see https://developers.google.com/android/work/play/emm-api
|
||||||
class AndroidEnterpriseService < Google::Apis::Core::BaseService
|
class AndroidEnterpriseService < Google::Apis::Core::BaseService
|
||||||
# @return [String]
|
# @return [String]
|
||||||
# API key. Your API key identifies your project and provides you with API access,
|
# API key. Your API key identifies your project and provides you with API access,
|
||||||
|
@ -80,8 +80,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}'
|
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
command.params['collectionId'] = collection_id unless collection_id.nil?
|
command.params['collectionId'] = collection_id unless collection_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -117,8 +116,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::Collection
|
command.response_class = Google::Apis::AndroidenterpriseV1::Collection
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -155,8 +153,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_collection(enterprise_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_collection(enterprise_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections'
|
command = make_simple_command(:post, 'enterprises/{enterpriseId}/collections', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
||||||
command.request_object = collection_object
|
command.request_object = collection_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
||||||
|
@ -193,8 +190,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_collections(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_collections(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -232,8 +228,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}'
|
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
||||||
command.request_object = collection_object
|
command.request_object = collection_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
||||||
|
@ -274,8 +269,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}'
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
||||||
command.request_object = collection_object
|
command.request_object = collection_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
|
||||||
|
@ -319,8 +313,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}'
|
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
command.params['collectionId'] = collection_id unless collection_id.nil?
|
command.params['collectionId'] = collection_id unless collection_id.nil?
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
@ -361,8 +354,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -403,8 +395,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_collection_viewers(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_collection_viewers(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}/users'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -447,8 +438,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}'
|
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
||||||
command.request_object = user_object
|
command.request_object = user_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
||||||
|
@ -494,8 +484,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}'
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
||||||
command.request_object = user_object
|
command.request_object = user_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
||||||
|
@ -538,8 +527,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::Device
|
command.response_class = Google::Apis::AndroidenterpriseV1::Device
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -582,9 +570,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_state_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_device_state(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
|
command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -623,8 +610,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -667,9 +653,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def set_state_device(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def set_device_state(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state'
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
||||||
command.request_object = device_state_object
|
command.request_object = device_state_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
|
||||||
|
@ -710,8 +695,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}'
|
command = make_simple_command(:delete, 'enterprises/{enterpriseId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -745,8 +729,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/enroll'
|
command = make_simple_command(:post, 'enterprises/enroll', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
||||||
command.request_object = enterprise_object
|
command.request_object = enterprise_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
||||||
|
@ -783,8 +766,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -821,8 +803,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises'
|
command = make_simple_command(:post, 'enterprises', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
||||||
command.request_object = enterprise_object
|
command.request_object = enterprise_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
||||||
|
@ -859,8 +840,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises'
|
command = make_simple_command(:get, 'enterprises', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
|
||||||
command.query['domain'] = domain unless domain.nil?
|
command.query['domain'] = domain unless domain.nil?
|
||||||
|
@ -870,6 +850,42 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Sends a test push notification to validate the MDM integration with the Google
|
||||||
|
# Cloud Pub/Sub service for this enterprise.
|
||||||
|
# @param [String] enterprise_id
|
||||||
|
# The ID of the enterprise.
|
||||||
|
# @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::AndroidenterpriseV1::SendTestPushNotificationResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse]
|
||||||
|
#
|
||||||
|
# @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 send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse
|
||||||
|
command.params['enterpriseId'] = enterprise_id unless enterprise_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
|
||||||
|
|
||||||
# Set the account that will be used to authenticate to the API as the enterprise.
|
# Set the account that will be used to authenticate to the API as the enterprise.
|
||||||
# @param [String] enterprise_id
|
# @param [String] enterprise_id
|
||||||
# The ID of the enterprise.
|
# The ID of the enterprise.
|
||||||
|
@ -895,9 +911,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def set_account_enterprise(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def set_enterprise_account(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/account'
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/account', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
|
||||||
command.request_object = enterprise_account_object
|
command.request_object = enterprise_account_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
|
||||||
|
@ -934,8 +949,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def unenroll_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def unenroll_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/unenroll'
|
command = make_simple_command(:post, 'enterprises/{enterpriseId}/unenroll', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -972,8 +986,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}'
|
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
|
command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
|
||||||
|
@ -1012,8 +1025,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
|
command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1052,8 +1064,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/entitlements'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1100,8 +1111,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}'
|
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
||||||
command.request_object = entitlement_object
|
command.request_object = entitlement_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
||||||
|
@ -1151,8 +1161,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}'
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
||||||
command.request_object = entitlement_object
|
command.request_object = entitlement_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
||||||
|
@ -1195,8 +1204,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense
|
command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1232,8 +1240,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/groupLicenses'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1272,8 +1279,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1317,8 +1323,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}'
|
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
command.params['deviceId'] = device_id unless device_id.nil?
|
command.params['deviceId'] = device_id unless device_id.nil?
|
||||||
|
@ -1361,8 +1366,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::Install
|
command.response_class = Google::Apis::AndroidenterpriseV1::Install
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1404,8 +1408,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1452,8 +1455,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}'
|
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
||||||
command.request_object = install_object
|
command.request_object = install_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
||||||
|
@ -1502,8 +1504,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}'
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
||||||
command.request_object = install_object
|
command.request_object = install_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
|
||||||
|
@ -1546,8 +1547,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'permissions/{permissionId}'
|
command = make_simple_command(:get, 'permissions/{permissionId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::Permission
|
command.response_class = Google::Apis::AndroidenterpriseV1::Permission
|
||||||
command.params['permissionId'] = permission_id unless permission_id.nil?
|
command.params['permissionId'] = permission_id unless permission_id.nil?
|
||||||
|
@ -1586,8 +1586,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/products/{productId}/approve'
|
command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
|
||||||
command.request_object = approve_product_request_object
|
command.request_object = approve_product_request_object
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1635,8 +1634,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl'
|
command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1677,8 +1675,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/products/{productId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::Product
|
command.response_class = Google::Apis::AndroidenterpriseV1::Product
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1721,8 +1718,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
|
command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1761,8 +1757,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/products/{productId}/permissions'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
|
command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1802,8 +1797,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_product_permissions(enterprise_id, product_id, product_permissions_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_product_permissions(enterprise_id, product_id, product_permissions_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/products/{productId}/permissions'
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
command.request_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
||||||
command.request_object = product_permissions_object
|
command.request_object = product_permissions_object
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
||||||
|
@ -1844,8 +1838,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def generate_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def generate_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/token'
|
command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/token', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::UserToken::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::UserToken::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::UserToken
|
command.response_class = Google::Apis::AndroidenterpriseV1::UserToken
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1883,8 +1876,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
command.response_class = Google::Apis::AndroidenterpriseV1::User
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1895,6 +1887,44 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Retrieves the set of products a user is entitled to access.
|
||||||
|
# @param [String] enterprise_id
|
||||||
|
# The ID of the enterprise.
|
||||||
|
# @param [String] user_id
|
||||||
|
# The ID of the 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.
|
||||||
|
# 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::AndroidenterpriseV1::ProductSet] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::ProductSet]
|
||||||
|
#
|
||||||
|
# @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_available_product_set(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet
|
||||||
|
command.params['enterpriseId'] = enterprise_id unless enterprise_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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Looks up a user by email address.
|
# Looks up a user by email address.
|
||||||
# @param [String] enterprise_id
|
# @param [String] enterprise_id
|
||||||
# The ID of the enterprise.
|
# The ID of the enterprise.
|
||||||
|
@ -1922,8 +1952,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users'
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/users', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse
|
command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
@ -1961,8 +1990,48 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def revoke_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def revoke_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'enterprises/{enterpriseId}/users/{userId}/token'
|
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/token', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
command.params['enterpriseId'] = enterprise_id unless enterprise_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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Modifies the set of products a user is entitled to access.
|
||||||
|
# @param [String] enterprise_id
|
||||||
|
# The ID of the enterprise.
|
||||||
|
# @param [String] user_id
|
||||||
|
# The ID of the user.
|
||||||
|
# @param [Google::Apis::AndroidenterpriseV1::ProductSet] product_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::AndroidenterpriseV1::ProductSet] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::ProductSet]
|
||||||
|
#
|
||||||
|
# @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_user_available_product_set(enterprise_id, user_id, product_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
|
||||||
|
command.request_object = product_set_object
|
||||||
|
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV2
|
module AndroidpublisherV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20150316'
|
REVISION = '20150910'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -643,8 +643,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
# The period of the subscription (if any), i.e. period at which payments must
|
# Subscription period, specified in ISO 8601 format. Acceptable values are "P1W"
|
||||||
# happen. Defined as ISO 8601 duration, i.e. "P1M" for 1 month period.
|
# (one week), "P1M" (one month) and "P1Y" (one year).
|
||||||
# Corresponds to the JSON property `subscriptionPeriod`
|
# Corresponds to the JSON property `subscriptionPeriod`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :subscription_period
|
attr_accessor :subscription_period
|
||||||
|
|
|
@ -80,8 +80,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}:commit'
|
command = make_simple_command(:post, '{packageName}/edits/{editId}:commit', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
|
command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -122,8 +121,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}'
|
command = make_simple_command(:delete, '{packageName}/edits/{editId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['editId'] = edit_id unless edit_id.nil?
|
command.params['editId'] = edit_id unless edit_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -161,8 +159,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
|
command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -200,8 +197,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits'
|
command = make_simple_command(:post, '{packageName}/edits', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
||||||
command.request_object = app_edit_object
|
command.request_object = app_edit_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
||||||
|
@ -242,8 +238,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def validate_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def validate_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}:validate'
|
command = make_simple_command(:post, '{packageName}/edits/{editId}:validate', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::AppEdit::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
|
command.response_class = Google::Apis::AndroidpublisherV2::AppEdit
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -289,8 +284,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}'
|
command = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['editId'] = edit_id unless edit_id.nil?
|
command.params['editId'] = edit_id unless edit_id.nil?
|
||||||
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
|
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
|
||||||
|
@ -331,8 +325,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_all_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_all_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings'
|
command = make_simple_command(:delete, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['editId'] = edit_id unless edit_id.nil?
|
command.params['editId'] = edit_id unless edit_id.nil?
|
||||||
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
|
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
|
||||||
|
@ -377,8 +370,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_apk_listing(package_name, edit_id, apk_version_code, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ApkListing
|
command.response_class = Google::Apis::AndroidpublisherV2::ApkListing
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -421,8 +413,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_apk_listings(package_name, edit_id, apk_version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ListApkListingsResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ListApkListingsResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ListApkListingsResponse
|
command.response_class = Google::Apis::AndroidpublisherV2::ListApkListingsResponse
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -470,8 +461,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}'
|
command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
||||||
command.request_object = apk_listing_object
|
command.request_object = apk_listing_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
||||||
|
@ -522,8 +512,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_apk_listing(package_name, edit_id, apk_version_code, language, apk_listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}'
|
command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
||||||
command.request_object = apk_listing_object
|
command.request_object = apk_listing_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
||||||
|
@ -570,8 +559,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def add_externally_hosted_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def add_externally_hosted_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/externallyHosted'
|
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedRequest::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedRequest::Representation
|
||||||
command.request_object = apks_add_externally_hosted_request_object
|
command.request_object = apks_add_externally_hosted_request_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ApksAddExternallyHostedResponse::Representation
|
||||||
|
@ -612,8 +600,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ListApksResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ListApksResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ListApksResponse
|
command.response_class = Google::Apis::AndroidpublisherV2::ListApksResponse
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -656,11 +643,10 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def upload_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
def upload_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks'
|
|
||||||
if upload_source.nil?
|
if upload_source.nil?
|
||||||
command = make_simple_command(:post, path, options)
|
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options)
|
||||||
else
|
else
|
||||||
command = make_upload_command(:post, path, options)
|
command = make_upload_command(:post, '{packageName}/edits/{editId}/apks', options)
|
||||||
command.upload_source = upload_source
|
command.upload_source = upload_source
|
||||||
command.upload_content_type = content_type
|
command.upload_content_type = content_type
|
||||||
end
|
end
|
||||||
|
@ -703,8 +689,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/details'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/details', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
|
command.response_class = Google::Apis::AndroidpublisherV2::AppDetails
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -744,8 +729,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/details'
|
command = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
||||||
command.request_object = app_details_object
|
command.request_object = app_details_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
||||||
|
@ -787,8 +771,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/details'
|
command = make_simple_command(:put, '{packageName}/edits/{editId}/details', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
||||||
command.request_object = app_details_object
|
command.request_object = app_details_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::AppDetails::Representation
|
||||||
|
@ -833,8 +816,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
|
command.response_class = Google::Apis::AndroidpublisherV2::ExpansionFile
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -882,8 +864,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}'
|
command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
||||||
command.request_object = expansion_file_object
|
command.request_object = expansion_file_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
||||||
|
@ -932,8 +913,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}'
|
command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
||||||
command.request_object = expansion_file_object
|
command.request_object = expansion_file_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
||||||
|
@ -984,11 +964,10 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def upload_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
def upload_expansion_file(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}'
|
|
||||||
if upload_source.nil?
|
if upload_source.nil?
|
||||||
command = make_simple_command(:post, path, options)
|
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
|
||||||
else
|
else
|
||||||
command = make_upload_command(:post, path, options)
|
command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
|
||||||
command.upload_source = upload_source
|
command.upload_source = upload_source
|
||||||
command.upload_content_type = content_type
|
command.upload_content_type = content_type
|
||||||
end
|
end
|
||||||
|
@ -1039,8 +1018,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}'
|
command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['editId'] = edit_id unless edit_id.nil?
|
command.params['editId'] = edit_id unless edit_id.nil?
|
||||||
command.params['language'] = language unless language.nil?
|
command.params['language'] = language unless language.nil?
|
||||||
|
@ -1085,8 +1063,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_all_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_all_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings/{language}/{imageType}'
|
command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse
|
command.response_class = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1132,8 +1109,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings/{language}/{imageType}'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ListImagesResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ListImagesResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ListImagesResponse
|
command.response_class = Google::Apis::AndroidpublisherV2::ListImagesResponse
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1184,11 +1160,10 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def upload_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
def upload_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings/{language}/{imageType}'
|
|
||||||
if upload_source.nil?
|
if upload_source.nil?
|
||||||
command = make_simple_command(:post, path, options)
|
command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
|
||||||
else
|
else
|
||||||
command = make_upload_command(:post, path, options)
|
command = make_upload_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
|
||||||
command.upload_source = upload_source
|
command.upload_source = upload_source
|
||||||
command.upload_content_type = content_type
|
command.upload_content_type = content_type
|
||||||
end
|
end
|
||||||
|
@ -1235,8 +1210,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings/{language}'
|
command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['editId'] = edit_id unless edit_id.nil?
|
command.params['editId'] = edit_id unless edit_id.nil?
|
||||||
command.params['language'] = language unless language.nil?
|
command.params['language'] = language unless language.nil?
|
||||||
|
@ -1274,8 +1248,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_all_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_all_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings'
|
command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['editId'] = edit_id unless edit_id.nil?
|
command.params['editId'] = edit_id unless edit_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1315,8 +1288,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings/{language}'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::Listing
|
command.response_class = Google::Apis::AndroidpublisherV2::Listing
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1356,8 +1328,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ListListingsResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ListListingsResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ListListingsResponse
|
command.response_class = Google::Apis::AndroidpublisherV2::ListListingsResponse
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1401,8 +1372,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings/{language}'
|
command = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
||||||
command.request_object = listing_object
|
command.request_object = listing_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
||||||
|
@ -1448,8 +1418,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/listings/{language}'
|
command = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
||||||
command.request_object = listing_object
|
command.request_object = listing_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Listing::Representation
|
||||||
|
@ -1492,8 +1461,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/testers/{track}'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::Testers
|
command.response_class = Google::Apis::AndroidpublisherV2::Testers
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1535,8 +1503,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/testers/{track}'
|
command = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
||||||
command.request_object = testers_object
|
command.request_object = testers_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
||||||
|
@ -1580,8 +1547,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/testers/{track}'
|
command = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
||||||
command.request_object = testers_object
|
command.request_object = testers_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Testers::Representation
|
||||||
|
@ -1626,8 +1592,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/tracks/{track}'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::Track
|
command.response_class = Google::Apis::AndroidpublisherV2::Track
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1667,8 +1632,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/tracks'
|
command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ListTracksResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ListTracksResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ListTracksResponse
|
command.response_class = Google::Apis::AndroidpublisherV2::ListTracksResponse
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1712,8 +1676,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/tracks/{track}'
|
command = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
||||||
command.request_object = track_object
|
command.request_object = track_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
||||||
|
@ -1760,8 +1723,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/edits/{editId}/tracks/{track}'
|
command = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
||||||
command.request_object = track_object
|
command.request_object = track_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::Track::Representation
|
||||||
|
@ -1807,8 +1769,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_entitlements(package_name, max_results: nil, product_id: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_entitlements(package_name, max_results: nil, product_id: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/entitlements'
|
command = make_simple_command(:get, '{packageName}/entitlements', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse
|
command.response_class = Google::Apis::AndroidpublisherV2::ListEntitlementsResponse
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1846,8 +1807,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def batch_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def batch_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'inappproducts/batch'
|
command = make_simple_command(:post, 'inappproducts/batch', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation
|
||||||
command.request_object = in_app_products_batch_request_object
|
command.request_object = in_app_products_batch_request_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation
|
||||||
|
@ -1886,8 +1846,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/inappproducts/{sku}'
|
command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['sku'] = sku unless sku.nil?
|
command.params['sku'] = sku unless sku.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1922,8 +1881,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_in_app_product(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/inappproducts/{sku}'
|
command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
|
command.response_class = Google::Apis::AndroidpublisherV2::InAppProduct
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -1964,8 +1922,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_in_app_product(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_in_app_product(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/inappproducts'
|
command = make_simple_command(:post, '{packageName}/inappproducts', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
||||||
command.request_object = in_app_product_object
|
command.request_object = in_app_product_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
||||||
|
@ -2008,8 +1965,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_in_app_products(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_in_app_products(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/inappproducts'
|
command = make_simple_command(:get, '{packageName}/inappproducts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse
|
command.response_class = Google::Apis::AndroidpublisherV2::ListInAppProductsResponse
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -2055,8 +2011,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/inappproducts/{sku}'
|
command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
||||||
command.request_object = in_app_product_object
|
command.request_object = in_app_product_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
||||||
|
@ -2103,8 +2058,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_in_app_product(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/inappproducts/{sku}'
|
command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
||||||
command.request_object = in_app_product_object
|
command.request_object = in_app_product_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
||||||
|
@ -2148,8 +2102,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/purchases/products/{productId}/tokens/{token}'
|
command = make_simple_command(:get, '{packageName}/purchases/products/{productId}/tokens/{token}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::ProductPurchase::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::ProductPurchase::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::ProductPurchase
|
command.response_class = Google::Apis::AndroidpublisherV2::ProductPurchase
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -2192,8 +2145,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel'
|
command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
||||||
command.params['token'] = token unless token.nil?
|
command.params['token'] = token unless token.nil?
|
||||||
|
@ -2234,8 +2186,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def defer_purchase_subscription(package_name, subscription_id, token, defer_subscription_purchases_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def defer_purchase_subscription(package_name, subscription_id, token, defer_subscription_purchases_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer'
|
command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest::Representation
|
command.request_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesRequest::Representation
|
||||||
command.request_object = defer_subscription_purchases_request_object
|
command.request_object = defer_subscription_purchases_request_object
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::DeferSubscriptionPurchasesResponse::Representation
|
||||||
|
@ -2280,8 +2231,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}'
|
command = make_simple_command(:get, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchase::Representation
|
command.response_representation = Google::Apis::AndroidpublisherV2::SubscriptionPurchase::Representation
|
||||||
command.response_class = Google::Apis::AndroidpublisherV2::SubscriptionPurchase
|
command.response_class = Google::Apis::AndroidpublisherV2::SubscriptionPurchase
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
|
@ -2324,8 +2274,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund'
|
command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
||||||
command.params['token'] = token unless token.nil?
|
command.params['token'] = token unless token.nil?
|
||||||
|
@ -2366,8 +2315,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke'
|
command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['packageName'] = package_name unless package_name.nil?
|
command.params['packageName'] = package_name unless package_name.nil?
|
||||||
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
||||||
command.params['token'] = token unless token.nil?
|
command.params['token'] = token unless token.nil?
|
||||||
|
|
|
@ -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/appengine_v1beta4/service.rb'
|
||||||
|
require 'google/apis/appengine_v1beta4/classes.rb'
|
||||||
|
require 'google/apis/appengine_v1beta4/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google App Engine Admin API
|
||||||
|
#
|
||||||
|
# The Google App Engine Admin API enables developers to provision and manage
|
||||||
|
# their App Engine applications.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
|
module AppengineV1beta4
|
||||||
|
VERSION = 'V1beta4'
|
||||||
|
REVISION = '20151123'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,526 @@
|
||||||
|
# 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 AppengineV1beta4
|
||||||
|
|
||||||
|
class Application
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UrlDispatchRule
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Version
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AutomaticScaling
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CpuUtilization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RequestUtilization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DiskUtilization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkUtilization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BasicScaling
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ManualScaling
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Network
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Resources
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UrlMap
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StaticFilesHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StaticDirectoryHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ScriptHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiEndpointHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Library
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiConfigHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HealthCheck
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Deployment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FileInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ContainerInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceReference
|
||||||
|
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 ListVersionsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Module
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TrafficSplit
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListModulesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Application
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1beta4::UrlDispatchRule, decorator: Google::Apis::AppengineV1beta4::UrlDispatchRule::Representation
|
||||||
|
|
||||||
|
property :location, as: 'location'
|
||||||
|
property :code_bucket, as: 'codeBucket'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UrlDispatchRule
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :domain, as: 'domain'
|
||||||
|
property :path, as: 'path'
|
||||||
|
property :module, as: 'module'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Version
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::AppengineV1beta4::AutomaticScaling, decorator: Google::Apis::AppengineV1beta4::AutomaticScaling::Representation
|
||||||
|
|
||||||
|
property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1beta4::BasicScaling, decorator: Google::Apis::AppengineV1beta4::BasicScaling::Representation
|
||||||
|
|
||||||
|
property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1beta4::ManualScaling, decorator: Google::Apis::AppengineV1beta4::ManualScaling::Representation
|
||||||
|
|
||||||
|
collection :inbound_services, as: 'inboundServices'
|
||||||
|
property :instance_class, as: 'instanceClass'
|
||||||
|
property :network, as: 'network', class: Google::Apis::AppengineV1beta4::Network, decorator: Google::Apis::AppengineV1beta4::Network::Representation
|
||||||
|
|
||||||
|
property :resources, as: 'resources', class: Google::Apis::AppengineV1beta4::Resources, decorator: Google::Apis::AppengineV1beta4::Resources::Representation
|
||||||
|
|
||||||
|
property :runtime, as: 'runtime'
|
||||||
|
property :threadsafe, as: 'threadsafe'
|
||||||
|
property :vm, as: 'vm'
|
||||||
|
hash :beta_settings, as: 'betaSettings'
|
||||||
|
property :env, as: 'env'
|
||||||
|
property :serving_status, as: 'servingStatus'
|
||||||
|
property :deployer, as: 'deployer'
|
||||||
|
property :creation_time, as: 'creationTime'
|
||||||
|
collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1beta4::UrlMap, decorator: Google::Apis::AppengineV1beta4::UrlMap::Representation
|
||||||
|
|
||||||
|
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1beta4::ErrorHandler, decorator: Google::Apis::AppengineV1beta4::ErrorHandler::Representation
|
||||||
|
|
||||||
|
collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1beta4::Library, decorator: Google::Apis::AppengineV1beta4::Library::Representation
|
||||||
|
|
||||||
|
property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1beta4::ApiConfigHandler, decorator: Google::Apis::AppengineV1beta4::ApiConfigHandler::Representation
|
||||||
|
|
||||||
|
hash :env_variables, as: 'envVariables'
|
||||||
|
property :default_expiration, as: 'defaultExpiration'
|
||||||
|
property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1beta4::HealthCheck, decorator: Google::Apis::AppengineV1beta4::HealthCheck::Representation
|
||||||
|
|
||||||
|
property :nobuild_files_regex, as: 'nobuildFilesRegex'
|
||||||
|
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1beta4::Deployment, decorator: Google::Apis::AppengineV1beta4::Deployment::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AutomaticScaling
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cool_down_period, as: 'coolDownPeriod'
|
||||||
|
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1beta4::CpuUtilization, decorator: Google::Apis::AppengineV1beta4::CpuUtilization::Representation
|
||||||
|
|
||||||
|
property :max_concurrent_requests, as: 'maxConcurrentRequests'
|
||||||
|
property :max_idle_instances, as: 'maxIdleInstances'
|
||||||
|
property :max_total_instances, as: 'maxTotalInstances'
|
||||||
|
property :max_pending_latency, as: 'maxPendingLatency'
|
||||||
|
property :min_idle_instances, as: 'minIdleInstances'
|
||||||
|
property :min_total_instances, as: 'minTotalInstances'
|
||||||
|
property :min_pending_latency, as: 'minPendingLatency'
|
||||||
|
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1beta4::RequestUtilization, decorator: Google::Apis::AppengineV1beta4::RequestUtilization::Representation
|
||||||
|
|
||||||
|
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1beta4::DiskUtilization, decorator: Google::Apis::AppengineV1beta4::DiskUtilization::Representation
|
||||||
|
|
||||||
|
property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1beta4::NetworkUtilization, decorator: Google::Apis::AppengineV1beta4::NetworkUtilization::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CpuUtilization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :aggregation_window_length, as: 'aggregationWindowLength'
|
||||||
|
property :target_utilization, as: 'targetUtilization'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RequestUtilization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :target_request_count_per_sec, as: 'targetRequestCountPerSec'
|
||||||
|
property :target_concurrent_requests, as: 'targetConcurrentRequests'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DiskUtilization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :target_write_bytes_per_sec, as: 'targetWriteBytesPerSec'
|
||||||
|
property :target_write_ops_per_sec, as: 'targetWriteOpsPerSec'
|
||||||
|
property :target_read_bytes_per_sec, as: 'targetReadBytesPerSec'
|
||||||
|
property :target_read_ops_per_sec, as: 'targetReadOpsPerSec'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkUtilization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :target_sent_bytes_per_sec, as: 'targetSentBytesPerSec'
|
||||||
|
property :target_sent_packets_per_sec, as: 'targetSentPacketsPerSec'
|
||||||
|
property :target_received_bytes_per_sec, as: 'targetReceivedBytesPerSec'
|
||||||
|
property :target_received_packets_per_sec, as: 'targetReceivedPacketsPerSec'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BasicScaling
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :idle_timeout, as: 'idleTimeout'
|
||||||
|
property :max_instances, as: 'maxInstances'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ManualScaling
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :instances, as: 'instances'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Network
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :forwarded_ports, as: 'forwardedPorts'
|
||||||
|
property :instance_tag, as: 'instanceTag'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Resources
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cpu, as: 'cpu'
|
||||||
|
property :disk_gb, as: 'diskGb'
|
||||||
|
property :memory_gb, as: 'memoryGb'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UrlMap
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :url_regex, as: 'urlRegex'
|
||||||
|
property :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1beta4::StaticFilesHandler, decorator: Google::Apis::AppengineV1beta4::StaticFilesHandler::Representation
|
||||||
|
|
||||||
|
property :static_directory, as: 'staticDirectory', class: Google::Apis::AppengineV1beta4::StaticDirectoryHandler, decorator: Google::Apis::AppengineV1beta4::StaticDirectoryHandler::Representation
|
||||||
|
|
||||||
|
property :script, as: 'script', class: Google::Apis::AppengineV1beta4::ScriptHandler, decorator: Google::Apis::AppengineV1beta4::ScriptHandler::Representation
|
||||||
|
|
||||||
|
property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1beta4::ApiEndpointHandler, decorator: Google::Apis::AppengineV1beta4::ApiEndpointHandler::Representation
|
||||||
|
|
||||||
|
property :security_level, as: 'securityLevel'
|
||||||
|
property :login, as: 'login'
|
||||||
|
property :auth_fail_action, as: 'authFailAction'
|
||||||
|
property :redirect_http_response_code, as: 'redirectHttpResponseCode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StaticFilesHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :path, as: 'path'
|
||||||
|
property :upload_path_regex, as: 'uploadPathRegex'
|
||||||
|
hash :http_headers, as: 'httpHeaders'
|
||||||
|
property :mime_type, as: 'mimeType'
|
||||||
|
property :expiration, as: 'expiration'
|
||||||
|
property :require_matching_file, as: 'requireMatchingFile'
|
||||||
|
property :application_readable, as: 'applicationReadable'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StaticDirectoryHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :directory, as: 'directory'
|
||||||
|
hash :http_headers, as: 'httpHeaders'
|
||||||
|
property :mime_type, as: 'mimeType'
|
||||||
|
property :expiration, as: 'expiration'
|
||||||
|
property :require_matching_file, as: 'requireMatchingFile'
|
||||||
|
property :application_readable, as: 'applicationReadable'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ScriptHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :script_path, as: 'scriptPath'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiEndpointHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :script_path, as: 'scriptPath'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :error_code, as: 'errorCode'
|
||||||
|
property :static_file, as: 'staticFile'
|
||||||
|
property :mime_type, as: 'mimeType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Library
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiConfigHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :auth_fail_action, as: 'authFailAction'
|
||||||
|
property :login, as: 'login'
|
||||||
|
property :script, as: 'script'
|
||||||
|
property :security_level, as: 'securityLevel'
|
||||||
|
property :url, as: 'url'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HealthCheck
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :disable_health_check, as: 'disableHealthCheck'
|
||||||
|
property :host, as: 'host'
|
||||||
|
property :healthy_threshold, as: 'healthyThreshold'
|
||||||
|
property :unhealthy_threshold, as: 'unhealthyThreshold'
|
||||||
|
property :restart_threshold, as: 'restartThreshold'
|
||||||
|
property :check_interval, as: 'checkInterval'
|
||||||
|
property :timeout, as: 'timeout'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Deployment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :files, as: 'files', class: Google::Apis::AppengineV1beta4::FileInfo, decorator: Google::Apis::AppengineV1beta4::FileInfo::Representation
|
||||||
|
|
||||||
|
property :container, as: 'container', class: Google::Apis::AppengineV1beta4::ContainerInfo, decorator: Google::Apis::AppengineV1beta4::ContainerInfo::Representation
|
||||||
|
|
||||||
|
collection :source_references, as: 'sourceReferences', class: Google::Apis::AppengineV1beta4::SourceReference, decorator: Google::Apis::AppengineV1beta4::SourceReference::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FileInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :source_url, as: 'sourceUrl'
|
||||||
|
property :sha1_sum, as: 'sha1Sum'
|
||||||
|
property :mime_type, as: 'mimeType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ContainerInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :image, as: 'image'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceReference
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repository, as: 'repository'
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
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::AppengineV1beta4::Status, decorator: Google::Apis::AppengineV1beta4::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 ListVersionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :versions, as: 'versions', class: Google::Apis::AppengineV1beta4::Version, decorator: Google::Apis::AppengineV1beta4::Version::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Module
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :split, as: 'split', class: Google::Apis::AppengineV1beta4::TrafficSplit, decorator: Google::Apis::AppengineV1beta4::TrafficSplit::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TrafficSplit
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :shard_by, as: 'shardBy'
|
||||||
|
hash :allocations, as: 'allocations'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListModulesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :modules, as: 'modules', class: Google::Apis::AppengineV1beta4::Module, decorator: Google::Apis::AppengineV1beta4::Module::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::AppengineV1beta4::Operation, decorator: Google::Apis::AppengineV1beta4::Operation::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :operation_type, as: 'operationType'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :user, as: 'user'
|
||||||
|
property :target, as: 'target'
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,476 @@
|
||||||
|
# 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 AppengineV1beta4
|
||||||
|
# Google App Engine Admin API
|
||||||
|
#
|
||||||
|
# The Google App Engine Admin API enables developers to provision and manage
|
||||||
|
# their App Engine applications.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/appengine_v1beta4'
|
||||||
|
#
|
||||||
|
# Appengine = Google::Apis::AppengineV1beta4 # Alias the module
|
||||||
|
# service = Appengine::AppengineService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
|
class AppengineService < 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://appengine.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets information about an application.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the application to get. For example: "apps/myapp".
|
||||||
|
# @param [Boolean] ensure_resources_exist
|
||||||
|
# Certain resources associated with an application are created on-demand.
|
||||||
|
# Controls whether these resources should be created when performing the `GET`
|
||||||
|
# operation. If specified and any resources cloud not be created, the request
|
||||||
|
# will fail with an error code.
|
||||||
|
# @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::AppengineV1beta4::Application] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::Application]
|
||||||
|
#
|
||||||
|
# @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_app(apps_id, ensure_resources_exist: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta4/apps/{appsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::Application::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::Application
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.query['ensureResourcesExist'] = ensure_resources_exist unless ensure_resources_exist.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 module and all enclosed versions.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
|
||||||
|
# modules/default".
|
||||||
|
# @param [String] modules_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1beta4::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::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_app_module(apps_id, modules_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['modulesId'] = modules_id unless modules_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
|
||||||
|
|
||||||
|
# Gets the current configuration of the module.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
|
||||||
|
# modules/default".
|
||||||
|
# @param [String] modules_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1beta4::Module] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::Module]
|
||||||
|
#
|
||||||
|
# @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_app_module(apps_id, modules_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::Module::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::Module
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['modulesId'] = modules_id unless modules_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 the modules in the application.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. For example: "apps/myapp".
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Maximum results to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Continuation token for fetching the next page of results.
|
||||||
|
# @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::AppengineV1beta4::ListModulesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::ListModulesResponse]
|
||||||
|
#
|
||||||
|
# @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_app_modules(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::ListModulesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::ListModulesResponse
|
||||||
|
command.params['appsId'] = apps_id unless apps_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
|
||||||
|
|
||||||
|
# Updates the configuration of the specified module.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource to update. For example: "apps/myapp/
|
||||||
|
# modules/default".
|
||||||
|
# @param [String] modules_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [Google::Apis::AppengineV1beta4::Module] module_object
|
||||||
|
# @param [String] mask
|
||||||
|
# Standard field mask for the set of fields to be updated.
|
||||||
|
# @param [Boolean] migrate_traffic
|
||||||
|
# Whether to use Traffic Migration to shift traffic gradually. Traffic can only
|
||||||
|
# be migrated from a single version to another single version.
|
||||||
|
# @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::AppengineV1beta4::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::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 patch_app_module(apps_id, modules_id, module_object = nil, mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1beta4/apps/{appsId}/modules/{modulesId}', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1beta4::Module::Representation
|
||||||
|
command.request_object = module_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['modulesId'] = modules_id unless modules_id.nil?
|
||||||
|
command.query['mask'] = mask unless mask.nil?
|
||||||
|
command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deploys new code and resource files to a version.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource to update. For example: "apps/myapp/
|
||||||
|
# modules/default".
|
||||||
|
# @param [String] modules_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [Google::Apis::AppengineV1beta4::Version] version_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::AppengineV1beta4::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::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_app_module_version(apps_id, modules_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1beta4::Version::Representation
|
||||||
|
command.request_object = version_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['modulesId'] = modules_id unless modules_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 existing version.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
|
||||||
|
# modules/default/versions/v1".
|
||||||
|
# @param [String] modules_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1beta4::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::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_app_module_version(apps_id, modules_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['modulesId'] = modules_id unless modules_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_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
|
||||||
|
|
||||||
|
# Gets application deployment information.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
|
||||||
|
# modules/default/versions/v1".
|
||||||
|
# @param [String] modules_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] view
|
||||||
|
# Controls the set of fields returned in the `Get` response.
|
||||||
|
# @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::AppengineV1beta4::Version] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::Version]
|
||||||
|
#
|
||||||
|
# @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_app_module_version(apps_id, modules_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions/{versionsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::Version::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::Version
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['modulesId'] = modules_id unless modules_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||||
|
command.query['view'] = view unless view.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 versions of a module.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
|
||||||
|
# modules/default".
|
||||||
|
# @param [String] modules_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] view
|
||||||
|
# Controls the set of fields returned in the `List` response.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Maximum results to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Continuation token for fetching the next page of results.
|
||||||
|
# @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::AppengineV1beta4::ListVersionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::ListVersionsResponse]
|
||||||
|
#
|
||||||
|
# @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_app_module_versions(apps_id, modules_id, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/modules/{modulesId}/versions', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::ListVersionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::ListVersionsResponse
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['modulesId'] = modules_id unless modules_id.nil?
|
||||||
|
command.query['view'] = view unless view.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
|
||||||
|
|
||||||
|
# Gets the latest state of a long-running operation. Clients can use this method
|
||||||
|
# to poll the operation result at intervals as recommended by the API service.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. The name of the operation resource.
|
||||||
|
# @param [String] operations_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1beta4::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::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_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/operations/{operationsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['operationsId'] = operations_id unless operations_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 operations that match the specified filter in the request. If the server
|
||||||
|
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
||||||
|
# binding below allows API services to override the binding to use different
|
||||||
|
# resource name schemes, such as `users/*/operations`.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. The name of the operation collection.
|
||||||
|
# @param [String] filter
|
||||||
|
# The standard list filter.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The standard list page size.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The standard list page 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::AppengineV1beta4::ListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta4::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_app_operations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta4/apps/{appsId}/operations', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta4::ListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta4::ListOperationsResponse
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.query['filter'] = filter unless filter.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
|
||||||
|
|
||||||
|
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
|
|
@ -99,8 +99,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_activities(drive_ancestor_id: nil, drive_file_id: nil, grouping_strategy: nil, page_size: nil, page_token: nil, source: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_activities(drive_ancestor_id: nil, drive_file_id: nil, grouping_strategy: nil, page_size: nil, page_token: nil, source: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'activities'
|
command = make_simple_command(:get, 'activities', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AppsactivityV1::ListActivitiesResponse::Representation
|
command.response_representation = Google::Apis::AppsactivityV1::ListActivitiesResponse::Representation
|
||||||
command.response_class = Google::Apis::AppsactivityV1::ListActivitiesResponse
|
command.response_class = Google::Apis::AppsactivityV1::ListActivitiesResponse
|
||||||
command.query['drive.ancestorId'] = drive_ancestor_id unless drive_ancestor_id.nil?
|
command.query['drive.ancestorId'] = drive_ancestor_id unless drive_ancestor_id.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/games/services/web/api/states
|
# @see https://developers.google.com/games/services/web/api/states
|
||||||
module AppstateV1
|
module AppstateV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20150728'
|
REVISION = '20151125'
|
||||||
|
|
||||||
# View and manage your data for this application
|
# View and manage your data for this application
|
||||||
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
||||||
|
|
|
@ -82,8 +82,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def clear_state(state_key, current_data_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def clear_state(state_key, current_data_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'states/{stateKey}/clear'
|
command = make_simple_command(:post, 'states/{stateKey}/clear', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation
|
command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation
|
||||||
command.response_class = Google::Apis::AppstateV1::WriteResult
|
command.response_class = Google::Apis::AppstateV1::WriteResult
|
||||||
command.params['stateKey'] = state_key unless state_key.nil?
|
command.params['stateKey'] = state_key unless state_key.nil?
|
||||||
|
@ -123,8 +122,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'states/{stateKey}'
|
command = make_simple_command(:delete, 'states/{stateKey}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['stateKey'] = state_key unless state_key.nil?
|
command.params['stateKey'] = state_key unless state_key.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -158,8 +156,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'states/{stateKey}'
|
command = make_simple_command(:get, 'states/{stateKey}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AppstateV1::GetResponse::Representation
|
command.response_representation = Google::Apis::AppstateV1::GetResponse::Representation
|
||||||
command.response_class = Google::Apis::AppstateV1::GetResponse
|
command.response_class = Google::Apis::AppstateV1::GetResponse
|
||||||
command.params['stateKey'] = state_key unless state_key.nil?
|
command.params['stateKey'] = state_key unless state_key.nil?
|
||||||
|
@ -194,8 +191,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_states(include_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_states(include_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'states'
|
command = make_simple_command(:get, 'states', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AppstateV1::ListResponse::Representation
|
command.response_representation = Google::Apis::AppstateV1::ListResponse::Representation
|
||||||
command.response_class = Google::Apis::AppstateV1::ListResponse
|
command.response_class = Google::Apis::AppstateV1::ListResponse
|
||||||
command.query['includeData'] = include_data unless include_data.nil?
|
command.query['includeData'] = include_data unless include_data.nil?
|
||||||
|
@ -237,9 +233,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update(state_key, update_request_object = nil, current_state_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_state(state_key, update_request_object = nil, current_state_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'states/{stateKey}'
|
command = make_simple_command(:put, 'states/{stateKey}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AppstateV1::UpdateRequest::Representation
|
command.request_representation = Google::Apis::AppstateV1::UpdateRequest::Representation
|
||||||
command.request_object = update_request_object
|
command.request_object = update_request_object
|
||||||
command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation
|
command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation
|
||||||
|
|
|
@ -82,8 +82,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}'
|
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
||||||
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
|
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -124,8 +123,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}'
|
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
||||||
command.response_class = Google::Apis::AutoscalerV1beta2::Autoscaler
|
command.response_class = Google::Apis::AutoscalerV1beta2::Autoscaler
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -165,8 +163,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_autoscaler(project, zone, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_autoscaler(project, zone, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{project}/zones/{zone}/autoscalers'
|
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
||||||
command.request_object = autoscaler_object
|
command.request_object = autoscaler_object
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
||||||
|
@ -209,8 +206,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_autoscalers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_autoscalers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{project}/zones/{zone}/autoscalers'
|
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse::Representation
|
||||||
command.response_class = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse
|
command.response_class = Google::Apis::AutoscalerV1beta2::ListAutoscalerResponse
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -255,8 +251,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}'
|
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
||||||
command.request_object = autoscaler_object
|
command.request_object = autoscaler_object
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
||||||
|
@ -300,8 +295,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}'
|
command = make_simple_command(:put, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
command.request_representation = Google::Apis::AutoscalerV1beta2::Autoscaler::Representation
|
||||||
command.request_object = autoscaler_object
|
command.request_object = autoscaler_object
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
||||||
|
@ -341,8 +335,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/zones/{zone}/operations/{operation}'
|
command = make_simple_command(:delete, '{project}/zones/{zone}/operations/{operation}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
command.params['zone'] = zone unless zone.nil?
|
command.params['zone'] = zone unless zone.nil?
|
||||||
command.params['operation'] = operation unless operation.nil?
|
command.params['operation'] = operation unless operation.nil?
|
||||||
|
@ -378,8 +371,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/zones/{zone}/operations/{operation}'
|
command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::Operation::Representation
|
||||||
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
|
command.response_class = Google::Apis::AutoscalerV1beta2::Operation
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -419,8 +411,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/zones/{zone}/operations'
|
command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::OperationList::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::OperationList::Representation
|
||||||
command.response_class = Google::Apis::AutoscalerV1beta2::OperationList
|
command.response_class = Google::Apis::AutoscalerV1beta2::OperationList
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -461,8 +452,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_zones(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_zones(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/zones'
|
command = make_simple_command(:get, '{project}/zones', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::AutoscalerV1beta2::ZoneList::Representation
|
command.response_representation = Google::Apis::AutoscalerV1beta2::ZoneList::Representation
|
||||||
command.response_class = Google::Apis::AutoscalerV1beta2::ZoneList
|
command.response_class = Google::Apis::AutoscalerV1beta2::ZoneList
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigquery/
|
# @see https://cloud.google.com/bigquery/
|
||||||
module BigqueryV2
|
module BigqueryV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20150723'
|
REVISION = '20151116'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
@ -36,6 +36,9 @@ module Google
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# View your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||||
|
|
||||||
# Manage your data and permissions in Google Cloud Storage
|
# Manage your data and permissions in Google Cloud Storage
|
||||||
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
|
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
|
||||||
|
|
||||||
|
|
|
@ -406,12 +406,130 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ExplainQueryStage
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Relative amount of time the average shard spent on CPU-bound tasks.
|
||||||
|
# Corresponds to the JSON property `computeRatioAvg`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :compute_ratio_avg
|
||||||
|
|
||||||
|
# Relative amount of time the slowest shard spent on CPU-bound tasks.
|
||||||
|
# Corresponds to the JSON property `computeRatioMax`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :compute_ratio_max
|
||||||
|
|
||||||
|
# Unique ID for stage within plan.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# Human-readable name for stage.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Relative amount of time the average shard spent reading input.
|
||||||
|
# Corresponds to the JSON property `readRatioAvg`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :read_ratio_avg
|
||||||
|
|
||||||
|
# Relative amount of time the slowest shard spent reading input.
|
||||||
|
# Corresponds to the JSON property `readRatioMax`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :read_ratio_max
|
||||||
|
|
||||||
|
# Number of records read into the stage.
|
||||||
|
# Corresponds to the JSON property `recordsRead`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :records_read
|
||||||
|
|
||||||
|
# Number of records written by the stage.
|
||||||
|
# Corresponds to the JSON property `recordsWritten`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :records_written
|
||||||
|
|
||||||
|
# List of operations within the stage in dependency order (approximately
|
||||||
|
# chronological).
|
||||||
|
# Corresponds to the JSON property `steps`
|
||||||
|
# @return [Array<Google::Apis::BigqueryV2::ExplainQueryStep>]
|
||||||
|
attr_accessor :steps
|
||||||
|
|
||||||
|
# Relative amount of time the average shard spent waiting to be scheduled.
|
||||||
|
# Corresponds to the JSON property `waitRatioAvg`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :wait_ratio_avg
|
||||||
|
|
||||||
|
# Relative amount of time the slowest shard spent waiting to be scheduled.
|
||||||
|
# Corresponds to the JSON property `waitRatioMax`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :wait_ratio_max
|
||||||
|
|
||||||
|
# Relative amount of time the average shard spent on writing output.
|
||||||
|
# Corresponds to the JSON property `writeRatioAvg`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :write_ratio_avg
|
||||||
|
|
||||||
|
# Relative amount of time the slowest shard spent on writing output.
|
||||||
|
# Corresponds to the JSON property `writeRatioMax`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :write_ratio_max
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@compute_ratio_avg = args[:compute_ratio_avg] unless args[:compute_ratio_avg].nil?
|
||||||
|
@compute_ratio_max = args[:compute_ratio_max] unless args[:compute_ratio_max].nil?
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@read_ratio_avg = args[:read_ratio_avg] unless args[:read_ratio_avg].nil?
|
||||||
|
@read_ratio_max = args[:read_ratio_max] unless args[:read_ratio_max].nil?
|
||||||
|
@records_read = args[:records_read] unless args[:records_read].nil?
|
||||||
|
@records_written = args[:records_written] unless args[:records_written].nil?
|
||||||
|
@steps = args[:steps] unless args[:steps].nil?
|
||||||
|
@wait_ratio_avg = args[:wait_ratio_avg] unless args[:wait_ratio_avg].nil?
|
||||||
|
@wait_ratio_max = args[:wait_ratio_max] unless args[:wait_ratio_max].nil?
|
||||||
|
@write_ratio_avg = args[:write_ratio_avg] unless args[:write_ratio_avg].nil?
|
||||||
|
@write_ratio_max = args[:write_ratio_max] unless args[:write_ratio_max].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ExplainQueryStep
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Machine-readable operation type.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# Human-readable stage descriptions.
|
||||||
|
# Corresponds to the JSON property `substeps`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :substeps
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@substeps = args[:substeps] unless args[:substeps].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class ExternalDataConfiguration
|
class ExternalDataConfiguration
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# [Optional] The compression type of the data source. Possible values include
|
# [Optional] The compression type of the data source. Possible values include
|
||||||
# GZIP and NONE. The default value is NONE.
|
# GZIP and NONE. The default value is NONE. This setting is ignored for Google
|
||||||
|
# Cloud Datastore backups.
|
||||||
# Corresponds to the JSON property `compression`
|
# Corresponds to the JSON property `compression`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :compression
|
attr_accessor :compression
|
||||||
|
@ -426,7 +544,8 @@ module Google
|
||||||
# false, records with extra columns are treated as bad records, and if there are
|
# false, records with extra columns are treated as bad records, and if there are
|
||||||
# too many bad records, an invalid error is returned in the job result. The
|
# too many bad records, an invalid error is returned in the job result. The
|
||||||
# default value is false. The sourceFormat property determines what BigQuery
|
# default value is false. The sourceFormat property determines what BigQuery
|
||||||
# treats as an extra value: CSV: Trailing columns
|
# treats as an extra value: CSV: Trailing columns JSON: Named values that don't
|
||||||
|
# match any column names Google Cloud Datastore backups: This setting is ignored.
|
||||||
# Corresponds to the JSON property `ignoreUnknownValues`
|
# Corresponds to the JSON property `ignoreUnknownValues`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :ignore_unknown_values
|
attr_accessor :ignore_unknown_values
|
||||||
|
@ -435,26 +554,31 @@ module Google
|
||||||
# [Optional] The maximum number of bad records that BigQuery can ignore when
|
# [Optional] The maximum number of bad records that BigQuery can ignore when
|
||||||
# reading data. If the number of bad records exceeds this value, an invalid
|
# reading data. If the number of bad records exceeds this value, an invalid
|
||||||
# error is returned in the job result. The default value is 0, which requires
|
# error is returned in the job result. The default value is 0, which requires
|
||||||
# that all records are valid.
|
# that all records are valid. This setting is ignored for Google Cloud Datastore
|
||||||
|
# backups.
|
||||||
# Corresponds to the JSON property `maxBadRecords`
|
# Corresponds to the JSON property `maxBadRecords`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :max_bad_records
|
attr_accessor :max_bad_records
|
||||||
|
|
||||||
# [Required] The schema for the data.
|
# [Optional] The schema for the data. Schema is required for CSV and JSON
|
||||||
|
# formats. Schema is disallowed for Google Cloud Datastore backups.
|
||||||
# Corresponds to the JSON property `schema`
|
# Corresponds to the JSON property `schema`
|
||||||
# @return [Google::Apis::BigqueryV2::TableSchema]
|
# @return [Google::Apis::BigqueryV2::TableSchema]
|
||||||
attr_accessor :schema
|
attr_accessor :schema
|
||||||
|
|
||||||
# [Optional] The data format. External data sources must be in CSV format. The
|
# [Required] The data format. For CSV files, specify "CSV". For newline-
|
||||||
# default value is CSV.
|
# delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Google Cloud Datastore
|
||||||
|
# backups, specify "DATASTORE_BACKUP".
|
||||||
# Corresponds to the JSON property `sourceFormat`
|
# Corresponds to the JSON property `sourceFormat`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :source_format
|
attr_accessor :source_format
|
||||||
|
|
||||||
# [Required] The fully-qualified URIs that point to your data in Google Cloud
|
# [Required] The fully-qualified URIs that point to your data in Google Cloud
|
||||||
# Storage. Each URI can contain one '*' wildcard character and it must come
|
# Storage. Each URI can contain one '*' wildcard character and it must come
|
||||||
# after the 'bucket' name. CSV limits related to load jobs apply to external
|
# after the 'bucket' name. Size limits related to load jobs apply to external
|
||||||
# data sources, plus an additional limit of 10 GB maximum size across all URIs.
|
# data sources, plus an additional limit of 10 GB maximum size across all URIs.
|
||||||
|
# For Google Cloud Datastore backups, exactly one URI can be specified, and it
|
||||||
|
# must end with '.backup_info'. Also, the '*' wildcard character is not allowed.
|
||||||
# Corresponds to the JSON property `sourceUris`
|
# Corresponds to the JSON property `sourceUris`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :source_uris
|
attr_accessor :source_uris
|
||||||
|
@ -485,6 +609,13 @@ module Google
|
||||||
attr_accessor :cache_hit
|
attr_accessor :cache_hit
|
||||||
alias_method :cache_hit?, :cache_hit
|
alias_method :cache_hit?, :cache_hit
|
||||||
|
|
||||||
|
# [Output-only] All errors and warnings encountered during the running of the
|
||||||
|
# job. Errors here do not necessarily mean that the job has completed or was
|
||||||
|
# unsuccessful.
|
||||||
|
# Corresponds to the JSON property `errors`
|
||||||
|
# @return [Array<Google::Apis::BigqueryV2::ErrorProto>]
|
||||||
|
attr_accessor :errors
|
||||||
|
|
||||||
# A hash of this response.
|
# A hash of this response.
|
||||||
# Corresponds to the JSON property `etag`
|
# Corresponds to the JSON property `etag`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -548,6 +679,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
||||||
|
@errors = args[:errors] unless args[:errors].nil?
|
||||||
@etag = args[:etag] unless args[:etag].nil?
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
@job_complete = args[:job_complete] unless args[:job_complete].nil?
|
@job_complete = args[:job_complete] unless args[:job_complete].nil?
|
||||||
@job_reference = args[:job_reference] unless args[:job_reference].nil?
|
@job_reference = args[:job_reference] unless args[:job_reference].nil?
|
||||||
|
@ -1353,13 +1485,29 @@ module Google
|
||||||
class JobStatistics2
|
class JobStatistics2
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output-only] Billing tier for the job.
|
||||||
|
# Corresponds to the JSON property `billingTier`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :billing_tier
|
||||||
|
|
||||||
# [Output-only] Whether the query result was fetched from the query cache.
|
# [Output-only] Whether the query result was fetched from the query cache.
|
||||||
# Corresponds to the JSON property `cacheHit`
|
# Corresponds to the JSON property `cacheHit`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :cache_hit
|
attr_accessor :cache_hit
|
||||||
alias_method :cache_hit?, :cache_hit
|
alias_method :cache_hit?, :cache_hit
|
||||||
|
|
||||||
# [Output-only] Total bytes processed for this job.
|
# [Output-only, Experimental] Describes execution plan for the query as a list
|
||||||
|
# of stages.
|
||||||
|
# Corresponds to the JSON property `queryPlan`
|
||||||
|
# @return [Array<Google::Apis::BigqueryV2::ExplainQueryStage>]
|
||||||
|
attr_accessor :query_plan
|
||||||
|
|
||||||
|
# [Output-only] Total bytes billed for the job.
|
||||||
|
# Corresponds to the JSON property `totalBytesBilled`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :total_bytes_billed
|
||||||
|
|
||||||
|
# [Output-only] Total bytes processed for the job.
|
||||||
# Corresponds to the JSON property `totalBytesProcessed`
|
# Corresponds to the JSON property `totalBytesProcessed`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :total_bytes_processed
|
attr_accessor :total_bytes_processed
|
||||||
|
@ -1370,7 +1518,10 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@billing_tier = args[:billing_tier] unless args[:billing_tier].nil?
|
||||||
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
||||||
|
@query_plan = args[:query_plan] unless args[:query_plan].nil?
|
||||||
|
@total_bytes_billed = args[:total_bytes_billed] unless args[:total_bytes_billed].nil?
|
||||||
@total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil?
|
@total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1379,7 +1530,7 @@ module Google
|
||||||
class JobStatistics3
|
class JobStatistics3
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# [Output-only] Number of bytes of source data in a joad job.
|
# [Output-only] Number of bytes of source data in a load job.
|
||||||
# Corresponds to the JSON property `inputFileBytes`
|
# Corresponds to the JSON property `inputFileBytes`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :input_file_bytes
|
attr_accessor :input_file_bytes
|
||||||
|
@ -1389,8 +1540,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :input_files
|
attr_accessor :input_files
|
||||||
|
|
||||||
# [Output-only] Size of the loaded data in bytes. Note that while an import job
|
# [Output-only] Size of the loaded data in bytes. Note that while a load job is
|
||||||
# is in the running state, this value may change.
|
# in the running state, this value may change.
|
||||||
# Corresponds to the JSON property `outputBytes`
|
# Corresponds to the JSON property `outputBytes`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :output_bytes
|
attr_accessor :output_bytes
|
||||||
|
@ -1418,7 +1569,7 @@ module Google
|
||||||
class JobStatistics4
|
class JobStatistics4
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# [Experimental] Number of files per destination URI or URI pattern specified in
|
# [Output-only] Number of files per destination URI or URI pattern specified in
|
||||||
# the extract configuration. These values will be in the same order as the URIs
|
# the extract configuration. These values will be in the same order as the URIs
|
||||||
# specified in the 'destinationUris' field.
|
# specified in the 'destinationUris' field.
|
||||||
# Corresponds to the JSON property `destinationUriFileCounts`
|
# Corresponds to the JSON property `destinationUriFileCounts`
|
||||||
|
@ -1666,6 +1817,13 @@ module Google
|
||||||
attr_accessor :cache_hit
|
attr_accessor :cache_hit
|
||||||
alias_method :cache_hit?, :cache_hit
|
alias_method :cache_hit?, :cache_hit
|
||||||
|
|
||||||
|
# [Output-only] All errors and warnings encountered during the running of the
|
||||||
|
# job. Errors here do not necessarily mean that the job has completed or was
|
||||||
|
# unsuccessful.
|
||||||
|
# Corresponds to the JSON property `errors`
|
||||||
|
# @return [Array<Google::Apis::BigqueryV2::ErrorProto>]
|
||||||
|
attr_accessor :errors
|
||||||
|
|
||||||
# Whether the query has completed or not. If rows or totalRows are present, this
|
# Whether the query has completed or not. If rows or totalRows are present, this
|
||||||
# will always be true. If this is false, totalRows will not be available.
|
# will always be true. If this is false, totalRows will not be available.
|
||||||
# Corresponds to the JSON property `jobComplete`
|
# Corresponds to the JSON property `jobComplete`
|
||||||
|
@ -1723,6 +1881,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
|
||||||
|
@errors = args[:errors] unless args[:errors].nil?
|
||||||
@job_complete = args[:job_complete] unless args[:job_complete].nil?
|
@job_complete = args[:job_complete] unless args[:job_complete].nil?
|
||||||
@job_reference = args[:job_reference] unless args[:job_reference].nil?
|
@job_reference = args[:job_reference] unless args[:job_reference].nil?
|
||||||
@kind = args[:kind] unless args[:kind].nil?
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@ -1734,6 +1893,40 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Streamingbuffer
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output-only] A lower-bound estimate of the number of bytes currently in the
|
||||||
|
# streaming buffer.
|
||||||
|
# Corresponds to the JSON property `estimatedBytes`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :estimated_bytes
|
||||||
|
|
||||||
|
# [Output-only] A lower-bound estimate of the number of rows currently in the
|
||||||
|
# streaming buffer.
|
||||||
|
# Corresponds to the JSON property `estimatedRows`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :estimated_rows
|
||||||
|
|
||||||
|
# [Output-only] Contains the timestamp of the oldest entry in the streaming
|
||||||
|
# buffer, in milliseconds since the epoch, if the streaming buffer is available.
|
||||||
|
# Corresponds to the JSON property `oldestEntryTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :oldest_entry_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@estimated_bytes = args[:estimated_bytes] unless args[:estimated_bytes].nil?
|
||||||
|
@estimated_rows = args[:estimated_rows] unless args[:estimated_rows].nil?
|
||||||
|
@oldest_entry_time = args[:oldest_entry_time] unless args[:oldest_entry_time].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class Table
|
class Table
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1795,14 +1988,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :location
|
attr_accessor :location
|
||||||
|
|
||||||
# [Output-only] The size of the table in bytes. This property is unavailable for
|
# [Output-only] The size of this table in bytes, excluding any data in the
|
||||||
# tables that are actively receiving streaming inserts.
|
# streaming buffer.
|
||||||
# Corresponds to the JSON property `numBytes`
|
# Corresponds to the JSON property `numBytes`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :num_bytes
|
attr_accessor :num_bytes
|
||||||
|
|
||||||
# [Output-only] The number of rows of data in this table. This property is
|
# [Output-only] The number of rows of data in this table, excluding any data in
|
||||||
# unavailable for tables that are actively receiving streaming inserts.
|
# the streaming buffer.
|
||||||
# Corresponds to the JSON property `numRows`
|
# Corresponds to the JSON property `numRows`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :num_rows
|
attr_accessor :num_rows
|
||||||
|
@ -1817,6 +2010,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
|
||||||
|
# [Output-only] Contains information regarding this table's streaming buffer, if
|
||||||
|
# one is present. This field will be absent if the table is not being streamed
|
||||||
|
# to or if there is no data in the streaming buffer.
|
||||||
|
# Corresponds to the JSON property `streamingBuffer`
|
||||||
|
# @return [Google::Apis::BigqueryV2::Streamingbuffer]
|
||||||
|
attr_accessor :streaming_buffer
|
||||||
|
|
||||||
# [Required] Reference describing the ID of this table.
|
# [Required] Reference describing the ID of this table.
|
||||||
# Corresponds to the JSON property `tableReference`
|
# Corresponds to the JSON property `tableReference`
|
||||||
# @return [Google::Apis::BigqueryV2::TableReference]
|
# @return [Google::Apis::BigqueryV2::TableReference]
|
||||||
|
@ -1854,6 +2054,7 @@ module Google
|
||||||
@num_rows = args[:num_rows] unless args[:num_rows].nil?
|
@num_rows = args[:num_rows] unless args[:num_rows].nil?
|
||||||
@schema = args[:schema] unless args[:schema].nil?
|
@schema = args[:schema] unless args[:schema].nil?
|
||||||
@self_link = args[:self_link] unless args[:self_link].nil?
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||||
|
@streaming_buffer = args[:streaming_buffer] unless args[:streaming_buffer].nil?
|
||||||
@table_reference = args[:table_reference] unless args[:table_reference].nil?
|
@table_reference = args[:table_reference] unless args[:table_reference].nil?
|
||||||
@type = args[:type] unless args[:type].nil?
|
@type = args[:type] unless args[:type].nil?
|
||||||
@view = args[:view] unless args[:view].nil?
|
@view = args[:view] unless args[:view].nil?
|
||||||
|
@ -1909,6 +2110,13 @@ module Google
|
||||||
attr_accessor :skip_invalid_rows
|
attr_accessor :skip_invalid_rows
|
||||||
alias_method :skip_invalid_rows?, :skip_invalid_rows
|
alias_method :skip_invalid_rows?, :skip_invalid_rows
|
||||||
|
|
||||||
|
# [Experimental] If specified, treats the destination table as a base template,
|
||||||
|
# and inserts the rows into an instance table named "". BigQuery will manage
|
||||||
|
# creation of the instance table, using the schema of the base template table.
|
||||||
|
# Corresponds to the JSON property `templateSuffix`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :template_suffix
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -1919,6 +2127,7 @@ module Google
|
||||||
@kind = args[:kind] unless args[:kind].nil?
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
@rows = args[:rows] unless args[:rows].nil?
|
@rows = args[:rows] unless args[:rows].nil?
|
||||||
@skip_invalid_rows = args[:skip_invalid_rows] unless args[:skip_invalid_rows].nil?
|
@skip_invalid_rows = args[:skip_invalid_rows] unless args[:skip_invalid_rows].nil?
|
||||||
|
@template_suffix = args[:template_suffix] unless args[:template_suffix].nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -2285,6 +2494,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :query
|
attr_accessor :query
|
||||||
|
|
||||||
|
# [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
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -2292,6 +2506,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@query = args[:query] unless args[:query].nil?
|
@query = args[:query] unless args[:query].nil?
|
||||||
|
@user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,6 +50,14 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ExplainQueryStage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ExplainQueryStep
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class ExternalDataConfiguration
|
class ExternalDataConfiguration
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -142,6 +150,10 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Streamingbuffer
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Table
|
class Table
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -287,6 +299,34 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ExplainQueryStage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :compute_ratio_avg, as: 'computeRatioAvg'
|
||||||
|
property :compute_ratio_max, as: 'computeRatioMax'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :read_ratio_avg, as: 'readRatioAvg'
|
||||||
|
property :read_ratio_max, as: 'readRatioMax'
|
||||||
|
property :records_read, as: 'recordsRead'
|
||||||
|
property :records_written, as: 'recordsWritten'
|
||||||
|
collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation
|
||||||
|
|
||||||
|
property :wait_ratio_avg, as: 'waitRatioAvg'
|
||||||
|
property :wait_ratio_max, as: 'waitRatioMax'
|
||||||
|
property :write_ratio_avg, as: 'writeRatioAvg'
|
||||||
|
property :write_ratio_max, as: 'writeRatioMax'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ExplainQueryStep
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :substeps, as: 'substeps'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ExternalDataConfiguration
|
class ExternalDataConfiguration
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -306,6 +346,8 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :cache_hit, as: 'cacheHit'
|
property :cache_hit, as: 'cacheHit'
|
||||||
|
collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
|
||||||
|
|
||||||
property :etag, as: 'etag'
|
property :etag, as: 'etag'
|
||||||
property :job_complete, as: 'jobComplete'
|
property :job_complete, as: 'jobComplete'
|
||||||
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
||||||
|
@ -510,7 +552,11 @@ module Google
|
||||||
class JobStatistics2
|
class JobStatistics2
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :billing_tier, as: 'billingTier'
|
||||||
property :cache_hit, as: 'cacheHit'
|
property :cache_hit, as: 'cacheHit'
|
||||||
|
collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation
|
||||||
|
|
||||||
|
property :total_bytes_billed, as: 'totalBytesBilled'
|
||||||
property :total_bytes_processed, as: 'totalBytesProcessed'
|
property :total_bytes_processed, as: 'totalBytesProcessed'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -593,6 +639,8 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :cache_hit, as: 'cacheHit'
|
property :cache_hit, as: 'cacheHit'
|
||||||
|
collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
|
||||||
|
|
||||||
property :job_complete, as: 'jobComplete'
|
property :job_complete, as: 'jobComplete'
|
||||||
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
|
||||||
|
|
||||||
|
@ -607,6 +655,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Streamingbuffer
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :estimated_bytes, as: 'estimatedBytes'
|
||||||
|
property :estimated_rows, as: 'estimatedRows'
|
||||||
|
property :oldest_entry_time, as: 'oldestEntryTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Table
|
class Table
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -626,6 +683,8 @@ module Google
|
||||||
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
||||||
|
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
|
property :streaming_buffer, as: 'streamingBuffer', class: Google::Apis::BigqueryV2::Streamingbuffer, decorator: Google::Apis::BigqueryV2::Streamingbuffer::Representation
|
||||||
|
|
||||||
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
||||||
|
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
|
@ -649,6 +708,7 @@ module Google
|
||||||
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row, decorator: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row::Representation
|
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row, decorator: Google::Apis::BigqueryV2::InsertAllTableDataRequest::Row::Representation
|
||||||
|
|
||||||
property :skip_invalid_rows, as: 'skipInvalidRows'
|
property :skip_invalid_rows, as: 'skipInvalidRows'
|
||||||
|
property :template_suffix, as: 'templateSuffix'
|
||||||
end
|
end
|
||||||
|
|
||||||
class Row
|
class Row
|
||||||
|
@ -763,6 +823,8 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :query, as: 'query'
|
property :query, as: 'query'
|
||||||
|
collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -85,8 +85,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}'
|
command = make_simple_command(:delete, 'projects/{projectId}/datasets/{datasetId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
||||||
command.query['deleteContents'] = delete_contents unless delete_contents.nil?
|
command.query['deleteContents'] = delete_contents unless delete_contents.nil?
|
||||||
|
@ -123,8 +122,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_dataset(project_id, dataset_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_dataset(project_id, dataset_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}'
|
command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::Dataset
|
command.response_class = Google::Apis::BigqueryV2::Dataset
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -161,8 +159,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_dataset(project_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_dataset(project_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets'
|
command = make_simple_command(:post, 'projects/{projectId}/datasets', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
||||||
command.request_object = dataset_object
|
command.request_object = dataset_object
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
||||||
|
@ -206,8 +203,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_datasets(project_id, all: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_datasets(project_id, all: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets'
|
command = make_simple_command(:get, 'projects/{projectId}/datasets', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::DatasetList::Representation
|
command.response_representation = Google::Apis::BigqueryV2::DatasetList::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::DatasetList
|
command.response_class = Google::Apis::BigqueryV2::DatasetList
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -251,8 +247,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}'
|
command = make_simple_command(:patch, 'projects/{projectId}/datasets/{datasetId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
||||||
command.request_object = dataset_object
|
command.request_object = dataset_object
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
||||||
|
@ -295,8 +290,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}'
|
command = make_simple_command(:put, 'projects/{projectId}/datasets/{datasetId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
||||||
command.request_object = dataset_object
|
command.request_object = dataset_object
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
|
||||||
|
@ -311,7 +305,7 @@ module Google
|
||||||
|
|
||||||
# Requests that a job be cancelled. This call will return immediately, and the
|
# Requests that a job be cancelled. This call will return immediately, and the
|
||||||
# client will need to poll for the job status to see if the cancel completed
|
# client will need to poll for the job status to see if the cancel completed
|
||||||
# successfully.
|
# successfully. Cancelled jobs may still incur costs.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# Project ID of the job to cancel
|
# Project ID of the job to cancel
|
||||||
# @param [String] job_id
|
# @param [String] job_id
|
||||||
|
@ -338,8 +332,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def cancel_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def cancel_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'project/{projectId}/jobs/{jobId}/cancel'
|
command = make_simple_command(:post, 'project/{projectId}/jobs/{jobId}/cancel', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation
|
command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::CancelJobResponse
|
command.response_class = Google::Apis::BigqueryV2::CancelJobResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -379,8 +372,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/jobs/{jobId}'
|
command = make_simple_command(:get, 'projects/{projectId}/jobs/{jobId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Job::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Job::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::Job
|
command.response_class = Google::Apis::BigqueryV2::Job
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -428,8 +420,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_job_query_results(project_id, job_id, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_job_query_results(project_id, job_id, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/queries/{jobId}'
|
command = make_simple_command(:get, 'projects/{projectId}/queries/{jobId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation
|
command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse
|
command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -474,11 +465,10 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_job(project_id, job_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
def insert_job(project_id, job_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/jobs'
|
|
||||||
if upload_source.nil?
|
if upload_source.nil?
|
||||||
command = make_simple_command(:post, path, options)
|
command = make_simple_command(:post, 'projects/{projectId}/jobs', options)
|
||||||
else
|
else
|
||||||
command = make_upload_command(:post, path, options)
|
command = make_upload_command(:post, 'projects/{projectId}/jobs', options)
|
||||||
command.upload_source = upload_source
|
command.upload_source = upload_source
|
||||||
command.upload_content_type = content_type
|
command.upload_content_type = content_type
|
||||||
end
|
end
|
||||||
|
@ -531,8 +521,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_jobs(project_id, all_users: nil, max_results: nil, page_token: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_jobs(project_id, all_users: nil, max_results: nil, page_token: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/jobs'
|
command = make_simple_command(:get, 'projects/{projectId}/jobs', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::JobList::Representation
|
command.response_representation = Google::Apis::BigqueryV2::JobList::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::JobList
|
command.response_class = Google::Apis::BigqueryV2::JobList
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -573,9 +562,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def query(project_id, query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def query_job(project_id, query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/queries'
|
command = make_simple_command(:post, 'projects/{projectId}/queries', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BigqueryV2::QueryRequest::Representation
|
command.request_representation = Google::Apis::BigqueryV2::QueryRequest::Representation
|
||||||
command.request_object = query_request_object
|
command.request_object = query_request_object
|
||||||
command.response_representation = Google::Apis::BigqueryV2::QueryResponse::Representation
|
command.response_representation = Google::Apis::BigqueryV2::QueryResponse::Representation
|
||||||
|
@ -614,8 +602,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_projects(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_projects(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects'
|
command = make_simple_command(:get, 'projects', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::ProjectList::Representation
|
command.response_representation = Google::Apis::BigqueryV2::ProjectList::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::ProjectList
|
command.response_class = Google::Apis::BigqueryV2::ProjectList
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -657,8 +644,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_all_table_data(project_id, dataset_id, table_id, insert_all_table_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_all_table_data(project_id, dataset_id, table_id, insert_all_table_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll'
|
command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BigqueryV2::InsertAllTableDataRequest::Representation
|
command.request_representation = Google::Apis::BigqueryV2::InsertAllTableDataRequest::Representation
|
||||||
command.request_object = insert_all_table_data_request_object
|
command.request_object = insert_all_table_data_request_object
|
||||||
command.response_representation = Google::Apis::BigqueryV2::InsertAllTableDataResponse::Representation
|
command.response_representation = Google::Apis::BigqueryV2::InsertAllTableDataResponse::Representation
|
||||||
|
@ -708,8 +694,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_table_data(project_id, dataset_id, table_id, max_results: nil, page_token: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_table_data(project_id, dataset_id, table_id, max_results: nil, page_token: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data'
|
command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
|
command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::TableDataList
|
command.response_class = Google::Apis::BigqueryV2::TableDataList
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -754,8 +739,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_table(project_id, dataset_id, table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_table(project_id, dataset_id, table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}'
|
command = make_simple_command(:delete, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
||||||
command.params['tableId'] = table_id unless table_id.nil?
|
command.params['tableId'] = table_id unless table_id.nil?
|
||||||
|
@ -796,8 +780,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_table(project_id, dataset_id, table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_table(project_id, dataset_id, table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}'
|
command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Table::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Table::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::Table
|
command.response_class = Google::Apis::BigqueryV2::Table
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -837,8 +820,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_table(project_id, dataset_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_table(project_id, dataset_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}/tables'
|
command = make_simple_command(:post, 'projects/{projectId}/datasets/{datasetId}/tables', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BigqueryV2::Table::Representation
|
command.request_representation = Google::Apis::BigqueryV2::Table::Representation
|
||||||
command.request_object = table_object
|
command.request_object = table_object
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Table::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Table::Representation
|
||||||
|
@ -882,8 +864,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_tables(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_tables(project_id, dataset_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}/tables'
|
command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}/tables', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BigqueryV2::TableList::Representation
|
command.response_representation = Google::Apis::BigqueryV2::TableList::Representation
|
||||||
command.response_class = Google::Apis::BigqueryV2::TableList
|
command.response_class = Google::Apis::BigqueryV2::TableList
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -928,8 +909,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_table(project_id, dataset_id, table_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_table(project_id, dataset_id, table_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}'
|
command = make_simple_command(:patch, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::BigqueryV2::Table::Representation
|
command.request_representation = Google::Apis::BigqueryV2::Table::Representation
|
||||||
command.request_object = table_object
|
command.request_object = table_object
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Table::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Table::Representation
|
||||||
|
@ -975,8 +955,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_table(project_id, dataset_id, table_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_table(project_id, dataset_id, table_id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}'
|
command = make_simple_command(:put, 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::BigqueryV2::Table::Representation
|
command.request_representation = Google::Apis::BigqueryV2::Table::Representation
|
||||||
command.request_object = table_object
|
command.request_object = table_object
|
||||||
command.response_representation = Google::Apis::BigqueryV2::Table::Representation
|
command.response_representation = Google::Apis::BigqueryV2::Table::Representation
|
||||||
|
|
|
@ -82,8 +82,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_blog_user_info(user_id, blog_id, max_posts: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_blog_user_info(user_id, blog_id, max_posts: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/{userId}/blogs/{blogId}'
|
command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::BlogUserInfo::Representation
|
command.response_representation = Google::Apis::BloggerV3::BlogUserInfo::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::BlogUserInfo
|
command.response_class = Google::Apis::BloggerV3::BlogUserInfo
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
@ -125,8 +124,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_blog(blog_id, max_posts: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_blog(blog_id, max_posts: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}'
|
command = make_simple_command(:get, 'blogs/{blogId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Blog::Representation
|
command.response_representation = Google::Apis::BloggerV3::Blog::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Blog
|
command.response_class = Google::Apis::BloggerV3::Blog
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -166,8 +164,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_blog_by_url(url, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_blog_by_url(url, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/byurl'
|
command = make_simple_command(:get, 'blogs/byurl', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Blog::Representation
|
command.response_representation = Google::Apis::BloggerV3::Blog::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Blog
|
command.response_class = Google::Apis::BloggerV3::Blog
|
||||||
command.query['url'] = url unless url.nil?
|
command.query['url'] = url unless url.nil?
|
||||||
|
@ -217,8 +214,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_blogs_by_user(user_id, fetch_user_info: nil, role: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_blogs_by_user(user_id, fetch_user_info: nil, role: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/{userId}/blogs'
|
command = make_simple_command(:get, 'users/{userId}/blogs', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::BlogList::Representation
|
command.response_representation = Google::Apis::BloggerV3::BlogList::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::BlogList
|
command.response_class = Google::Apis::BloggerV3::BlogList
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
@ -261,8 +257,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def approve_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def approve_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve'
|
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Comment
|
command.response_class = Google::Apis::BloggerV3::Comment
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -303,8 +298,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}'
|
command = make_simple_command(:delete, 'blogs/{blogId}/posts/{postId}/comments/{commentId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
command.params['postId'] = post_id unless post_id.nil?
|
command.params['postId'] = post_id unless post_id.nil?
|
||||||
command.params['commentId'] = comment_id unless comment_id.nil?
|
command.params['commentId'] = comment_id unless comment_id.nil?
|
||||||
|
@ -348,8 +342,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_comment(blog_id, post_id, comment_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_comment(blog_id, post_id, comment_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}'
|
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}/comments/{commentId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Comment
|
command.response_class = Google::Apis::BloggerV3::Comment
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -403,8 +396,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_comments(blog_id, post_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_comments(blog_id, post_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}/comments'
|
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}/comments', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::CommentList::Representation
|
command.response_representation = Google::Apis::BloggerV3::CommentList::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::CommentList
|
command.response_class = Google::Apis::BloggerV3::CommentList
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -458,8 +450,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_comments_by_blog(blog_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_comments_by_blog(blog_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/comments'
|
command = make_simple_command(:get, 'blogs/{blogId}/comments', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::CommentList::Representation
|
command.response_representation = Google::Apis::BloggerV3::CommentList::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::CommentList
|
command.response_class = Google::Apis::BloggerV3::CommentList
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -504,8 +495,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def mark_comment_as_spam(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def mark_comment_as_spam(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam'
|
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Comment
|
command.response_class = Google::Apis::BloggerV3::Comment
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -546,8 +536,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def remove_comment_content(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def remove_comment_content(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent'
|
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Comment
|
command.response_class = Google::Apis::BloggerV3::Comment
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -585,8 +574,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_page_view(blog_id, range: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_page_view(blog_id, range: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pageviews'
|
command = make_simple_command(:get, 'blogs/{blogId}/pageviews', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Pageviews::Representation
|
command.response_representation = Google::Apis::BloggerV3::Pageviews::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Pageviews
|
command.response_class = Google::Apis::BloggerV3::Pageviews
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -624,8 +612,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pages/{pageId}'
|
command = make_simple_command(:delete, 'blogs/{blogId}/pages/{pageId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
command.params['pageId'] = page_id unless page_id.nil?
|
command.params['pageId'] = page_id unless page_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -662,8 +649,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_page(blog_id, page_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_page(blog_id, page_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pages/{pageId}'
|
command = make_simple_command(:get, 'blogs/{blogId}/pages/{pageId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Page
|
command.response_class = Google::Apis::BloggerV3::Page
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -703,8 +689,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_page(blog_id, page_object = nil, is_draft: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_page(blog_id, page_object = nil, is_draft: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pages'
|
command = make_simple_command(:post, 'blogs/{blogId}/pages', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
command.request_object = page_object
|
command.request_object = page_object
|
||||||
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
|
@ -752,8 +737,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_pages(blog_id, fetch_bodies: nil, max_results: nil, page_token: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_pages(blog_id, fetch_bodies: nil, max_results: nil, page_token: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pages'
|
command = make_simple_command(:get, 'blogs/{blogId}/pages', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::PageList::Representation
|
command.response_representation = Google::Apis::BloggerV3::PageList::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::PageList
|
command.response_class = Google::Apis::BloggerV3::PageList
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -802,8 +786,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_page(blog_id, page_id, page_object = nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_page(blog_id, page_id, page_object = nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pages/{pageId}'
|
command = make_simple_command(:patch, 'blogs/{blogId}/pages/{pageId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
command.request_object = page_object
|
command.request_object = page_object
|
||||||
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
|
@ -845,8 +828,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def publish_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def publish_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pages/{pageId}/publish'
|
command = make_simple_command(:post, 'blogs/{blogId}/pages/{pageId}/publish', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Page
|
command.response_class = Google::Apis::BloggerV3::Page
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -884,8 +866,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def revert_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def revert_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pages/{pageId}/revert'
|
command = make_simple_command(:post, 'blogs/{blogId}/pages/{pageId}/revert', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Page
|
command.response_class = Google::Apis::BloggerV3::Page
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -930,8 +911,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_page(blog_id, page_id, page_object = nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_page(blog_id, page_id, page_object = nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/pages/{pageId}'
|
command = make_simple_command(:put, 'blogs/{blogId}/pages/{pageId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
command.request_object = page_object
|
command.request_object = page_object
|
||||||
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
||||||
|
@ -980,8 +960,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_post_user_info(user_id, blog_id, post_id, max_comments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_post_user_info(user_id, blog_id, post_id, max_comments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/{userId}/blogs/{blogId}/posts/{postId}'
|
command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts/{postId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::PostUserInfo::Representation
|
command.response_representation = Google::Apis::BloggerV3::PostUserInfo::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::PostUserInfo
|
command.response_class = Google::Apis::BloggerV3::PostUserInfo
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
@ -1042,8 +1021,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_post_user_info(user_id, blog_id, end_date: nil, fetch_bodies: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_post_user_info(user_id, blog_id, end_date: nil, fetch_bodies: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/{userId}/blogs/{blogId}/posts'
|
command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::PostUserInfosList::Representation
|
command.response_representation = Google::Apis::BloggerV3::PostUserInfosList::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::PostUserInfosList
|
command.response_class = Google::Apis::BloggerV3::PostUserInfosList
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
@ -1090,8 +1068,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}'
|
command = make_simple_command(:delete, 'blogs/{blogId}/posts/{postId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
command.params['postId'] = post_id unless post_id.nil?
|
command.params['postId'] = post_id unless post_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1138,8 +1115,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_post(blog_id, post_id, fetch_body: nil, fetch_images: nil, max_comments: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_post(blog_id, post_id, fetch_body: nil, fetch_images: nil, max_comments: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}'
|
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Post
|
command.response_class = Google::Apis::BloggerV3::Post
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -1186,8 +1162,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_post_by_path(blog_id, path, max_comments: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_post_by_path(blog_id, path, max_comments: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/bypath'
|
command = make_simple_command(:get, 'blogs/{blogId}/posts/bypath', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Post
|
command.response_class = Google::Apis::BloggerV3::Post
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -1234,8 +1209,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_post(blog_id, post_object = nil, fetch_body: nil, fetch_images: nil, is_draft: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_post(blog_id, post_object = nil, fetch_body: nil, fetch_images: nil, is_draft: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts'
|
command = make_simple_command(:post, 'blogs/{blogId}/posts', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
command.request_object = post_object
|
command.request_object = post_object
|
||||||
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
|
@ -1297,8 +1271,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_posts(blog_id, end_date: nil, fetch_bodies: nil, fetch_images: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_posts(blog_id, end_date: nil, fetch_bodies: nil, fetch_images: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts'
|
command = make_simple_command(:get, 'blogs/{blogId}/posts', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::PostList::Representation
|
command.response_representation = Google::Apis::BloggerV3::PostList::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::PostList
|
command.response_class = Google::Apis::BloggerV3::PostList
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -1360,8 +1333,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_post(blog_id, post_id, post_object = nil, fetch_body: nil, fetch_images: nil, max_comments: nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_post(blog_id, post_id, post_object = nil, fetch_body: nil, fetch_images: nil, max_comments: nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}'
|
command = make_simple_command(:patch, 'blogs/{blogId}/posts/{postId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
command.request_object = post_object
|
command.request_object = post_object
|
||||||
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
|
@ -1412,8 +1384,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def publish_post(blog_id, post_id, publish_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def publish_post(blog_id, post_id, publish_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}/publish'
|
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/publish', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Post
|
command.response_class = Google::Apis::BloggerV3::Post
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -1452,8 +1423,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def revert_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def revert_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}/revert'
|
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/revert', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::Post
|
command.response_class = Google::Apis::BloggerV3::Post
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -1496,8 +1466,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def search_posts(blog_id, q, fetch_bodies: nil, order_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def search_posts(blog_id, q, fetch_bodies: nil, order_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/search'
|
command = make_simple_command(:get, 'blogs/{blogId}/posts/search', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::PostList::Representation
|
command.response_representation = Google::Apis::BloggerV3::PostList::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::PostList
|
command.response_class = Google::Apis::BloggerV3::PostList
|
||||||
command.params['blogId'] = blog_id unless blog_id.nil?
|
command.params['blogId'] = blog_id unless blog_id.nil?
|
||||||
|
@ -1552,8 +1521,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_post(blog_id, post_id, post_object = nil, fetch_body: nil, fetch_images: nil, max_comments: nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_post(blog_id, post_id, post_object = nil, fetch_body: nil, fetch_images: nil, max_comments: nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'blogs/{blogId}/posts/{postId}'
|
command = make_simple_command(:put, 'blogs/{blogId}/posts/{postId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
command.request_object = post_object
|
command.request_object = post_object
|
||||||
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
||||||
|
@ -1596,8 +1564,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/{userId}'
|
command = make_simple_command(:get, 'users/{userId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BloggerV3::User::Representation
|
command.response_representation = Google::Apis::BloggerV3::User::Representation
|
||||||
command.response_class = Google::Apis::BloggerV3::User
|
command.response_class = Google::Apis::BloggerV3::User
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/books/docs/v1/getting_started
|
# @see https://developers.google.com/books/docs/v1/getting_started
|
||||||
module BooksV1
|
module BooksV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20150318'
|
REVISION = '20151106'
|
||||||
|
|
||||||
# Manage your books
|
# Manage your books
|
||||||
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
|
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
|
||||||
|
|
|
@ -1304,6 +1304,135 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Discoveryclusters
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `clusters`
|
||||||
|
# @return [Array<Google::Apis::BooksV1::Discoveryclusters::Cluster>]
|
||||||
|
attr_accessor :clusters
|
||||||
|
|
||||||
|
# Resorce type.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `totalClusters`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :total_clusters
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@clusters = args[:clusters] unless args[:clusters].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@total_clusters = args[:total_clusters] unless args[:total_clusters].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Cluster
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `banner_with_content_container`
|
||||||
|
# @return [Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer]
|
||||||
|
attr_accessor :banner_with_content_container
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `subTitle`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :sub_title
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `title`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :title
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `totalVolumes`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :total_volumes
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `uid`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :uid
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `volumes`
|
||||||
|
# @return [Array<Google::Apis::BooksV1::Volume>]
|
||||||
|
attr_accessor :volumes
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@banner_with_content_container = args[:banner_with_content_container] unless args[:banner_with_content_container].nil?
|
||||||
|
@sub_title = args[:sub_title] unless args[:sub_title].nil?
|
||||||
|
@title = args[:title] unless args[:title].nil?
|
||||||
|
@total_volumes = args[:total_volumes] unless args[:total_volumes].nil?
|
||||||
|
@uid = args[:uid] unless args[:uid].nil?
|
||||||
|
@volumes = args[:volumes] unless args[:volumes].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class BannerWithContentContainer
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `fillColorArgb`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :fill_color_argb
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `imageUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :image_url
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `maskColorArgb`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :mask_color_argb
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `moreButtonText`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :more_button_text
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `moreButtonUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :more_button_url
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `textColorArgb`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :text_color_argb
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@fill_color_argb = args[:fill_color_argb] unless args[:fill_color_argb].nil?
|
||||||
|
@image_url = args[:image_url] unless args[:image_url].nil?
|
||||||
|
@mask_color_argb = args[:mask_color_argb] unless args[:mask_color_argb].nil?
|
||||||
|
@more_button_text = args[:more_button_text] unless args[:more_button_text].nil?
|
||||||
|
@more_button_url = args[:more_button_url] unless args[:more_button_url].nil?
|
||||||
|
@text_color_argb = args[:text_color_argb] unless args[:text_color_argb].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class DownloadAccessRestriction
|
class DownloadAccessRestriction
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1857,6 +1986,62 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Notification
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `body`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :body
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `iconUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :icon_url
|
||||||
|
|
||||||
|
# Resource type.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `notification_type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :notification_type
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `show_notification_settings_action`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :show_notification_settings_action
|
||||||
|
alias_method :show_notification_settings_action?, :show_notification_settings_action
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `targetUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :target_url
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `title`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :title
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@body = args[:body] unless args[:body].nil?
|
||||||
|
@icon_url = args[:icon_url] unless args[:icon_url].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@notification_type = args[:notification_type] unless args[:notification_type].nil?
|
||||||
|
@show_notification_settings_action = args[:show_notification_settings_action] unless args[:show_notification_settings_action].nil?
|
||||||
|
@target_url = args[:target_url] unless args[:target_url].nil?
|
||||||
|
@title = args[:title] unless args[:title].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class Offers
|
class Offers
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -2182,6 +2367,99 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Series
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Resource type.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `series`
|
||||||
|
# @return [Array<Google::Apis::BooksV1::Series::Series>]
|
||||||
|
attr_accessor :series
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@series = args[:series] unless args[:series].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Series
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `bannerImageUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :banner_image_url
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `imageUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :image_url
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `seriesId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :series_id
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `title`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :title
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@banner_image_url = args[:banner_image_url] unless args[:banner_image_url].nil?
|
||||||
|
@image_url = args[:image_url] unless args[:image_url].nil?
|
||||||
|
@series_id = args[:series_id] unless args[:series_id].nil?
|
||||||
|
@title = args[:title] unless args[:title].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class SeriesMembership
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Resorce type.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `member`
|
||||||
|
# @return [Array<Google::Apis::BooksV1::Volume>]
|
||||||
|
attr_accessor :member
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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)
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@member = args[:member] unless args[:member].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class UserSettings
|
class UserSettings
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -2196,6 +2474,11 @@ module Google
|
||||||
# @return [Google::Apis::BooksV1::UserSettings::NotesExport]
|
# @return [Google::Apis::BooksV1::UserSettings::NotesExport]
|
||||||
attr_accessor :notes_export
|
attr_accessor :notes_export
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `notification`
|
||||||
|
# @return [Google::Apis::BooksV1::UserSettings::Notification]
|
||||||
|
attr_accessor :notification
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -2204,6 +2487,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@kind = args[:kind] unless args[:kind].nil?
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
@notes_export = args[:notes_export] unless args[:notes_export].nil?
|
@notes_export = args[:notes_export] unless args[:notes_export].nil?
|
||||||
|
@notification = args[:notification] unless args[:notification].nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
# User settings in sub-objects, each for different purposes.
|
# User settings in sub-objects, each for different purposes.
|
||||||
|
@ -2231,6 +2515,44 @@ module Google
|
||||||
@is_enabled = args[:is_enabled] unless args[:is_enabled].nil?
|
@is_enabled = args[:is_enabled] unless args[:is_enabled].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Notification
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `moreFromAuthors`
|
||||||
|
# @return [Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors]
|
||||||
|
attr_accessor :more_from_authors
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@more_from_authors = args[:more_from_authors] unless args[:more_from_authors].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class MoreFromAuthors
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `opted_state`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :opted_state
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@opted_state = args[:opted_state] unless args[:opted_state].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -2822,11 +3144,21 @@ module Google
|
||||||
class UserInfo
|
class UserInfo
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# How this volume was acquired.
|
||||||
|
# Corresponds to the JSON property `acquisitionType`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :acquisition_type
|
||||||
|
|
||||||
# Copy/Paste accounting information.
|
# Copy/Paste accounting information.
|
||||||
# Corresponds to the JSON property `copy`
|
# Corresponds to the JSON property `copy`
|
||||||
# @return [Google::Apis::BooksV1::Volume::UserInfo::Copy]
|
# @return [Google::Apis::BooksV1::Volume::UserInfo::Copy]
|
||||||
attr_accessor :copy
|
attr_accessor :copy
|
||||||
|
|
||||||
|
# Whether this volume is purchased, sample, pd download etc.
|
||||||
|
# Corresponds to the JSON property `entitlementType`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :entitlement_type
|
||||||
|
|
||||||
# Whether or not this volume is currently in "my books."
|
# Whether or not this volume is currently in "my books."
|
||||||
# Corresponds to the JSON property `isInMyBooks`
|
# Corresponds to the JSON property `isInMyBooks`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
|
@ -2892,7 +3224,9 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@acquisition_type = args[:acquisition_type] unless args[:acquisition_type].nil?
|
||||||
@copy = args[:copy] unless args[:copy].nil?
|
@copy = args[:copy] unless args[:copy].nil?
|
||||||
|
@entitlement_type = args[:entitlement_type] unless args[:entitlement_type].nil?
|
||||||
@is_in_my_books = args[:is_in_my_books] unless args[:is_in_my_books].nil?
|
@is_in_my_books = args[:is_in_my_books] unless args[:is_in_my_books].nil?
|
||||||
@is_preordered = args[:is_preordered] unless args[:is_preordered].nil?
|
@is_preordered = args[:is_preordered] unless args[:is_preordered].nil?
|
||||||
@is_purchased = args[:is_purchased] unless args[:is_purchased].nil?
|
@is_purchased = args[:is_purchased] unless args[:is_purchased].nil?
|
||||||
|
@ -3114,6 +3448,11 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :sample_page_count
|
attr_accessor :sample_page_count
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `seriesInfo`
|
||||||
|
# @return [Google::Apis::BooksV1::Volumeseriesinfo]
|
||||||
|
attr_accessor :series_info
|
||||||
|
|
||||||
# Volume subtitle. (In LITE projection.)
|
# Volume subtitle. (In LITE projection.)
|
||||||
# Corresponds to the JSON property `subtitle`
|
# Corresponds to the JSON property `subtitle`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -3153,6 +3492,7 @@ module Google
|
||||||
@ratings_count = args[:ratings_count] unless args[:ratings_count].nil?
|
@ratings_count = args[:ratings_count] unless args[:ratings_count].nil?
|
||||||
@reading_modes = args[:reading_modes] unless args[:reading_modes].nil?
|
@reading_modes = args[:reading_modes] unless args[:reading_modes].nil?
|
||||||
@sample_page_count = args[:sample_page_count] unless args[:sample_page_count].nil?
|
@sample_page_count = args[:sample_page_count] unless args[:sample_page_count].nil?
|
||||||
|
@series_info = args[:series_info] unless args[:series_info].nil?
|
||||||
@subtitle = args[:subtitle] unless args[:subtitle].nil?
|
@subtitle = args[:subtitle] unless args[:subtitle].nil?
|
||||||
@title = args[:title] unless args[:title].nil?
|
@title = args[:title] unless args[:title].nil?
|
||||||
end
|
end
|
||||||
|
@ -3510,6 +3850,107 @@ module Google
|
||||||
@total_items = args[:total_items] unless args[:total_items].nil?
|
@total_items = args[:total_items] unless args[:total_items].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Volumeseriesinfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The display number string. This should be used only for display purposes and
|
||||||
|
# the actual sequence should be inferred from the below orderNumber.
|
||||||
|
# Corresponds to the JSON property `bookDisplayNumber`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :book_display_number
|
||||||
|
|
||||||
|
# Resource type.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# Short book title in the context of the series.
|
||||||
|
# Corresponds to the JSON property `shortSeriesBookTitle`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :short_series_book_title
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `volumeSeries`
|
||||||
|
# @return [Array<Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries>]
|
||||||
|
attr_accessor :volume_series
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@book_display_number = args[:book_display_number] unless args[:book_display_number].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@short_series_book_title = args[:short_series_book_title] unless args[:short_series_book_title].nil?
|
||||||
|
@volume_series = args[:volume_series] unless args[:volume_series].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class VolumeSeries
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of issues. Applicable only for Collection Edition and Omnibus.
|
||||||
|
# Corresponds to the JSON property `issue`
|
||||||
|
# @return [Array<Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Issue>]
|
||||||
|
attr_accessor :issue
|
||||||
|
|
||||||
|
# The book order number in the series.
|
||||||
|
# Corresponds to the JSON property `orderNumber`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :order_number
|
||||||
|
|
||||||
|
# The book type in the context of series. Examples - Single Issue, Collection
|
||||||
|
# Edition, etc.
|
||||||
|
# Corresponds to the JSON property `seriesBookType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :series_book_type
|
||||||
|
|
||||||
|
# The series id.
|
||||||
|
# Corresponds to the JSON property `seriesId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :series_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@issue = args[:issue] unless args[:issue].nil?
|
||||||
|
@order_number = args[:order_number] unless args[:order_number].nil?
|
||||||
|
@series_book_type = args[:series_book_type] unless args[:series_book_type].nil?
|
||||||
|
@series_id = args[:series_id] unless args[:series_id].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Issue
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `issueDisplayNumber`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :issue_display_number
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `issueOrderNumber`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :issue_order_number
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@issue_display_number = args[:issue_display_number] unless args[:issue_display_number].nil?
|
||||||
|
@issue_order_number = args[:issue_order_number] unless args[:issue_order_number].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -162,6 +162,18 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Discoveryclusters
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Cluster
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class BannerWithContentContainer
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class DownloadAccessRestriction
|
class DownloadAccessRestriction
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -214,6 +226,10 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Notification
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Offers
|
class Offers
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -246,12 +262,32 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Series
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Series
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SeriesMembership
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class UserSettings
|
class UserSettings
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
class NotesExport
|
class NotesExport
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Notification
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class MoreFromAuthors
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Volume
|
class Volume
|
||||||
|
@ -366,6 +402,18 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Volumeseriesinfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class VolumeSeries
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Issue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Annotation
|
class Annotation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -751,6 +799,42 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Discoveryclusters
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :clusters, as: 'clusters', class: Google::Apis::BooksV1::Discoveryclusters::Cluster, decorator: Google::Apis::BooksV1::Discoveryclusters::Cluster::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :total_clusters, as: 'totalClusters'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Cluster
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :banner_with_content_container, as: 'banner_with_content_container', class: Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer, decorator: Google::Apis::BooksV1::Discoveryclusters::Cluster::BannerWithContentContainer::Representation
|
||||||
|
|
||||||
|
property :sub_title, as: 'subTitle'
|
||||||
|
property :title, as: 'title'
|
||||||
|
property :total_volumes, as: 'totalVolumes'
|
||||||
|
property :uid, as: 'uid'
|
||||||
|
collection :volumes, as: 'volumes', class: Google::Apis::BooksV1::Volume, decorator: Google::Apis::BooksV1::Volume::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class BannerWithContentContainer
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :fill_color_argb, as: 'fillColorArgb'
|
||||||
|
property :image_url, as: 'imageUrl'
|
||||||
|
property :mask_color_argb, as: 'maskColorArgb'
|
||||||
|
property :more_button_text, as: 'moreButtonText'
|
||||||
|
property :more_button_url, as: 'moreButtonUrl'
|
||||||
|
property :text_color_argb, as: 'textColorArgb'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class DownloadAccessRestriction
|
class DownloadAccessRestriction
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -904,6 +988,19 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Notification
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :body, as: 'body'
|
||||||
|
property :icon_url, as: 'iconUrl'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :notification_type, as: 'notification_type'
|
||||||
|
property :show_notification_settings_action, as: 'show_notification_settings_action'
|
||||||
|
property :target_url, as: 'targetUrl'
|
||||||
|
property :title, as: 'title'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Offers
|
class Offers
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -995,12 +1092,43 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Series
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :series, as: 'series', class: Google::Apis::BooksV1::Series::Series, decorator: Google::Apis::BooksV1::Series::Series::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Series
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :banner_image_url, as: 'bannerImageUrl'
|
||||||
|
property :image_url, as: 'imageUrl'
|
||||||
|
property :series_id, as: 'seriesId'
|
||||||
|
property :title, as: 'title'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SeriesMembership
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :member, as: 'member', class: Google::Apis::BooksV1::Volume, decorator: Google::Apis::BooksV1::Volume::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class UserSettings
|
class UserSettings
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :notes_export, as: 'notesExport', class: Google::Apis::BooksV1::UserSettings::NotesExport, decorator: Google::Apis::BooksV1::UserSettings::NotesExport::Representation
|
property :notes_export, as: 'notesExport', class: Google::Apis::BooksV1::UserSettings::NotesExport, decorator: Google::Apis::BooksV1::UserSettings::NotesExport::Representation
|
||||||
|
|
||||||
|
property :notification, as: 'notification', class: Google::Apis::BooksV1::UserSettings::Notification, decorator: Google::Apis::BooksV1::UserSettings::Notification::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class NotesExport
|
class NotesExport
|
||||||
|
@ -1010,6 +1138,21 @@ module Google
|
||||||
property :is_enabled, as: 'isEnabled'
|
property :is_enabled, as: 'isEnabled'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Notification
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :more_from_authors, as: 'moreFromAuthors', class: Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors, decorator: Google::Apis::BooksV1::UserSettings::Notification::MoreFromAuthors::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class MoreFromAuthors
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :opted_state, as: 'opted_state'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Volume
|
class Volume
|
||||||
|
@ -1180,8 +1323,10 @@ module Google
|
||||||
class UserInfo
|
class UserInfo
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :acquisition_type, as: 'acquisitionType'
|
||||||
property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation
|
property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation
|
||||||
|
|
||||||
|
property :entitlement_type, as: 'entitlementType'
|
||||||
property :is_in_my_books, as: 'isInMyBooks'
|
property :is_in_my_books, as: 'isInMyBooks'
|
||||||
property :is_preordered, as: 'isPreordered'
|
property :is_preordered, as: 'isPreordered'
|
||||||
property :is_purchased, as: 'isPurchased'
|
property :is_purchased, as: 'isPurchased'
|
||||||
|
@ -1255,6 +1400,8 @@ module Google
|
||||||
property :ratings_count, as: 'ratingsCount'
|
property :ratings_count, as: 'ratingsCount'
|
||||||
property :reading_modes, as: 'readingModes'
|
property :reading_modes, as: 'readingModes'
|
||||||
property :sample_page_count, as: 'samplePageCount'
|
property :sample_page_count, as: 'samplePageCount'
|
||||||
|
property :series_info, as: 'seriesInfo', class: Google::Apis::BooksV1::Volumeseriesinfo, decorator: Google::Apis::BooksV1::Volumeseriesinfo::Representation
|
||||||
|
|
||||||
property :subtitle, as: 'subtitle'
|
property :subtitle, as: 'subtitle'
|
||||||
property :title, as: 'title'
|
property :title, as: 'title'
|
||||||
end
|
end
|
||||||
|
@ -1356,6 +1503,36 @@ module Google
|
||||||
property :total_items, as: 'totalItems'
|
property :total_items, as: 'totalItems'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Volumeseriesinfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :book_display_number, as: 'bookDisplayNumber'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :short_series_book_title, as: 'shortSeriesBookTitle'
|
||||||
|
collection :volume_series, as: 'volumeSeries', class: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries, decorator: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class VolumeSeries
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :issue, as: 'issue', class: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Issue, decorator: Google::Apis::BooksV1::Volumeseriesinfo::VolumeSeries::Issue::Representation
|
||||||
|
|
||||||
|
property :order_number, as: 'orderNumber'
|
||||||
|
property :series_book_type, as: 'seriesBookType'
|
||||||
|
property :series_id, as: 'seriesId'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Issue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :issue_display_number, as: 'issueDisplayNumber'
|
||||||
|
property :issue_order_number, as: 'issueOrderNumber'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -81,8 +81,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_bookshelf(user_id, shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_bookshelf(user_id, shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/{userId}/bookshelves/{shelf}'
|
command = make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
|
command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Bookshelf
|
command.response_class = Google::Apis::BooksV1::Bookshelf
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
@ -121,8 +120,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_bookshelves(user_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_bookshelves(user_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/{userId}/bookshelves'
|
command = make_simple_command(:get, 'users/{userId}/bookshelves', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
|
command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Bookshelves
|
command.response_class = Google::Apis::BooksV1::Bookshelves
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
@ -168,8 +166,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_bookshelf_volumes(user_id, shelf, max_results: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_bookshelf_volumes(user_id, shelf, max_results: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/{userId}/bookshelves/{shelf}/volumes'
|
command = make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}/volumes', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumes
|
command.response_class = Google::Apis::BooksV1::Volumes
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
@ -214,8 +211,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'cloudloading/addBook'
|
command = make_simple_command(:post, 'cloudloading/addBook', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
|
command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::LoadingResource
|
command.response_class = Google::Apis::BooksV1::LoadingResource
|
||||||
command.query['drive_document_id'] = drive_document_id unless drive_document_id.nil?
|
command.query['drive_document_id'] = drive_document_id unless drive_document_id.nil?
|
||||||
|
@ -253,8 +249,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'cloudloading/deleteBook'
|
command = make_simple_command(:post, 'cloudloading/deleteBook', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.query['volumeId'] = volume_id unless volume_id.nil?
|
command.query['volumeId'] = volume_id unless volume_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -286,8 +281,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'cloudloading/updateBook'
|
command = make_simple_command(:post, 'cloudloading/updateBook', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BooksV1::LoadingResource::Representation
|
command.request_representation = Google::Apis::BooksV1::LoadingResource::Representation
|
||||||
command.request_object = loading_resource_object
|
command.request_object = loading_resource_object
|
||||||
command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
|
command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
|
||||||
|
@ -298,7 +292,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a list of offline dictionary meatadata available
|
# Returns a list of offline dictionary metadata available
|
||||||
# @param [String] cpksver
|
# @param [String] cpksver
|
||||||
# The device/version ID from which to request the data.
|
# The device/version ID from which to request the data.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -323,8 +317,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'dictionary/listOfflineMetadata'
|
command = make_simple_command(:get, 'dictionary/listOfflineMetadata', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Metadata::Representation
|
command.response_representation = Google::Apis::BooksV1::Metadata::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Metadata
|
command.response_class = Google::Apis::BooksV1::Metadata
|
||||||
command.query['cpksver'] = cpksver unless cpksver.nil?
|
command.query['cpksver'] = cpksver unless cpksver.nil?
|
||||||
|
@ -365,8 +358,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/{volumeId}/layersummary/{summaryId}'
|
command = make_simple_command(:get, 'volumes/{volumeId}/layersummary/{summaryId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::LayerSummary::Representation
|
command.response_representation = Google::Apis::BooksV1::LayerSummary::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::LayerSummary
|
command.response_class = Google::Apis::BooksV1::LayerSummary
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -412,8 +404,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/{volumeId}/layersummary'
|
command = make_simple_command(:get, 'volumes/{volumeId}/layersummary', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::LayerSummaries::Representation
|
command.response_representation = Google::Apis::BooksV1::LayerSummaries::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::LayerSummaries
|
command.response_class = Google::Apis::BooksV1::LayerSummaries
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -473,8 +464,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, content_version, allow_web_definitions: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, content_version, allow_web_definitions: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}'
|
command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation
|
command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::AnnotationData
|
command.response_class = Google::Apis::BooksV1::AnnotationData
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -548,8 +538,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_layer_annotation_data(volume_id, layer_id, content_version, annotation_data_id: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_layer_annotation_data(volume_id, layer_id, content_version, annotation_data_id: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/{volumeId}/layers/{layerId}/data'
|
command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation
|
command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::AnnotationsData
|
command.response_class = Google::Apis::BooksV1::AnnotationsData
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -605,8 +594,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}'
|
command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::VolumeAnnotation::Representation
|
command.response_representation = Google::Apis::BooksV1::VolumeAnnotation::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::VolumeAnnotation
|
command.response_class = Google::Apis::BooksV1::VolumeAnnotation
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -677,8 +665,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_layer_volume_annotations(volume_id, layer_id, content_version, end_offset: nil, end_position: nil, locale: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, start_offset: nil, start_position: nil, updated_max: nil, updated_min: nil, volume_annotations_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_layer_volume_annotations(volume_id, layer_id, content_version, end_offset: nil, end_position: nil, locale: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, start_offset: nil, start_position: nil, updated_max: nil, updated_min: nil, volume_annotations_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/{volumeId}/layers/{layerId}'
|
command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumeannotations::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumeannotations::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumeannotations
|
command.response_class = Google::Apis::BooksV1::Volumeannotations
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -725,8 +712,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'myconfig/getUserSettings'
|
command = make_simple_command(:get, 'myconfig/getUserSettings', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
|
command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::UserSettings
|
command.response_class = Google::Apis::BooksV1::UserSettings
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -766,8 +752,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'myconfig/releaseDownloadAccess'
|
command = make_simple_command(:post, 'myconfig/releaseDownloadAccess', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation
|
command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::DownloadAccesses
|
command.response_class = Google::Apis::BooksV1::DownloadAccesses
|
||||||
command.query['cpksver'] = cpksver unless cpksver.nil?
|
command.query['cpksver'] = cpksver unless cpksver.nil?
|
||||||
|
@ -815,8 +800,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'myconfig/requestAccess'
|
command = make_simple_command(:post, 'myconfig/requestAccess', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation
|
command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::RequestAccess
|
command.response_class = Google::Apis::BooksV1::RequestAccess
|
||||||
command.query['cpksver'] = cpksver unless cpksver.nil?
|
command.query['cpksver'] = cpksver unless cpksver.nil?
|
||||||
|
@ -868,8 +852,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def sync_volume_licenses(source, nonce, cpksver, features: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def sync_volume_licenses(source, nonce, cpksver, features: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'myconfig/syncVolumeLicenses'
|
command = make_simple_command(:post, 'myconfig/syncVolumeLicenses', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumes
|
command.response_class = Google::Apis::BooksV1::Volumes
|
||||||
command.query['cpksver'] = cpksver unless cpksver.nil?
|
command.query['cpksver'] = cpksver unless cpksver.nil?
|
||||||
|
@ -911,8 +894,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'myconfig/updateUserSettings'
|
command = make_simple_command(:post, 'myconfig/updateUserSettings', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BooksV1::UserSettings::Representation
|
command.request_representation = Google::Apis::BooksV1::UserSettings::Representation
|
||||||
command.request_object = user_settings_object
|
command.request_object = user_settings_object
|
||||||
command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
|
command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
|
||||||
|
@ -950,8 +932,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/annotations/{annotationId}'
|
command = make_simple_command(:delete, 'mylibrary/annotations/{annotationId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['annotationId'] = annotation_id unless annotation_id.nil?
|
command.params['annotationId'] = annotation_id unless annotation_id.nil?
|
||||||
command.query['source'] = source unless source.nil?
|
command.query['source'] = source unless source.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -991,8 +972,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_my_library_annotation(annotation_object = nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_my_library_annotation(annotation_object = nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/annotations'
|
command = make_simple_command(:post, 'mylibrary/annotations', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::BooksV1::Annotation::Representation
|
command.request_representation = Google::Apis::BooksV1::Annotation::Representation
|
||||||
command.request_object = annotation_object
|
command.request_object = annotation_object
|
||||||
command.response_representation = Google::Apis::BooksV1::Annotation::Representation
|
command.response_representation = Google::Apis::BooksV1::Annotation::Representation
|
||||||
|
@ -1052,8 +1032,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/annotations'
|
command = make_simple_command(:get, 'mylibrary/annotations', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Annotations::Representation
|
command.response_representation = Google::Apis::BooksV1::Annotations::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Annotations
|
command.response_class = Google::Apis::BooksV1::Annotations
|
||||||
command.query['contentVersion'] = content_version unless content_version.nil?
|
command.query['contentVersion'] = content_version unless content_version.nil?
|
||||||
|
@ -1099,8 +1078,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/annotations/summary'
|
command = make_simple_command(:post, 'mylibrary/annotations/summary', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation
|
command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::AnnotationsSummary
|
command.response_class = Google::Apis::BooksV1::AnnotationsSummary
|
||||||
command.query['layerIds'] = layer_ids unless layer_ids.nil?
|
command.query['layerIds'] = layer_ids unless layer_ids.nil?
|
||||||
|
@ -1139,8 +1117,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/annotations/{annotationId}'
|
command = make_simple_command(:put, 'mylibrary/annotations/{annotationId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::BooksV1::Annotation::Representation
|
command.request_representation = Google::Apis::BooksV1::Annotation::Representation
|
||||||
command.request_object = annotation_object
|
command.request_object = annotation_object
|
||||||
command.response_representation = Google::Apis::BooksV1::Annotation::Representation
|
command.response_representation = Google::Apis::BooksV1::Annotation::Representation
|
||||||
|
@ -1184,8 +1161,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/bookshelves/{shelf}/addVolume'
|
command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/addVolume', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['shelf'] = shelf unless shelf.nil?
|
command.params['shelf'] = shelf unless shelf.nil?
|
||||||
command.query['reason'] = reason unless reason.nil?
|
command.query['reason'] = reason unless reason.nil?
|
||||||
command.query['source'] = source unless source.nil?
|
command.query['source'] = source unless source.nil?
|
||||||
|
@ -1223,8 +1199,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/bookshelves/{shelf}/clearVolumes'
|
command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/clearVolumes', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['shelf'] = shelf unless shelf.nil?
|
command.params['shelf'] = shelf unless shelf.nil?
|
||||||
command.query['source'] = source unless source.nil?
|
command.query['source'] = source unless source.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1261,8 +1236,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/bookshelves/{shelf}'
|
command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
|
command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Bookshelf
|
command.response_class = Google::Apis::BooksV1::Bookshelf
|
||||||
command.params['shelf'] = shelf unless shelf.nil?
|
command.params['shelf'] = shelf unless shelf.nil?
|
||||||
|
@ -1298,8 +1272,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/bookshelves'
|
command = make_simple_command(:get, 'mylibrary/bookshelves', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
|
command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Bookshelves
|
command.response_class = Google::Apis::BooksV1::Bookshelves
|
||||||
command.query['source'] = source unless source.nil?
|
command.query['source'] = source unless source.nil?
|
||||||
|
@ -1341,8 +1314,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/bookshelves/{shelf}/moveVolume'
|
command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/moveVolume', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['shelf'] = shelf unless shelf.nil?
|
command.params['shelf'] = shelf unless shelf.nil?
|
||||||
command.query['source'] = source unless source.nil?
|
command.query['source'] = source unless source.nil?
|
||||||
command.query['volumeId'] = volume_id unless volume_id.nil?
|
command.query['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -1384,8 +1356,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/bookshelves/{shelf}/removeVolume'
|
command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/removeVolume', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['shelf'] = shelf unless shelf.nil?
|
command.params['shelf'] = shelf unless shelf.nil?
|
||||||
command.query['reason'] = reason unless reason.nil?
|
command.query['reason'] = reason unless reason.nil?
|
||||||
command.query['source'] = source unless source.nil?
|
command.query['source'] = source unless source.nil?
|
||||||
|
@ -1435,8 +1406,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/bookshelves/{shelf}/volumes'
|
command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}/volumes', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumes
|
command.response_class = Google::Apis::BooksV1::Volumes
|
||||||
command.params['shelf'] = shelf unless shelf.nil?
|
command.params['shelf'] = shelf unless shelf.nil?
|
||||||
|
@ -1482,8 +1452,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/readingpositions/{volumeId}'
|
command = make_simple_command(:get, 'mylibrary/readingpositions/{volumeId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation
|
command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::ReadingPosition
|
command.response_class = Google::Apis::BooksV1::ReadingPosition
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -1532,8 +1501,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def set_my_library_reading_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def set_my_library_reading_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'mylibrary/readingpositions/{volumeId}/setPosition'
|
command = make_simple_command(:post, 'mylibrary/readingpositions/{volumeId}/setPosition', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
command.query['action'] = action unless action.nil?
|
command.query['action'] = action unless action.nil?
|
||||||
command.query['contentVersion'] = content_version unless content_version.nil?
|
command.query['contentVersion'] = content_version unless content_version.nil?
|
||||||
|
@ -1547,6 +1515,48 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns notification details for a given notification id.
|
||||||
|
# @param [String] notification_id
|
||||||
|
# String to identify the notification.
|
||||||
|
# @param [String] locale
|
||||||
|
# ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
|
||||||
|
# generating notification title and body.
|
||||||
|
# @param [String] source
|
||||||
|
# String to identify the originator of this request.
|
||||||
|
# @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::BooksV1::Notification] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::BooksV1::Notification]
|
||||||
|
#
|
||||||
|
# @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_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'notification/get', options)
|
||||||
|
command.response_representation = Google::Apis::BooksV1::Notification::Representation
|
||||||
|
command.response_class = Google::Apis::BooksV1::Notification
|
||||||
|
command.query['locale'] = locale unless locale.nil?
|
||||||
|
command.query['notification_id'] = notification_id unless notification_id.nil?
|
||||||
|
command.query['source'] = source unless source.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
|
||||||
|
|
||||||
# List categories for onboarding experience.
|
# List categories for onboarding experience.
|
||||||
# @param [String] locale
|
# @param [String] locale
|
||||||
# ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset.
|
# ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset.
|
||||||
|
@ -1572,8 +1582,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_onboarding_categories(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_onboarding_categories(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'onboarding/listCategories'
|
command = make_simple_command(:get, 'onboarding/listCategories', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Category::Representation
|
command.response_representation = Google::Apis::BooksV1::Category::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Category
|
command.response_class = Google::Apis::BooksV1::Category
|
||||||
command.query['locale'] = locale unless locale.nil?
|
command.query['locale'] = locale unless locale.nil?
|
||||||
|
@ -1617,8 +1626,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_onboarding_category_volumes(category_id: nil, locale: nil, max_allowed_maturity_rating: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_onboarding_category_volumes(category_id: nil, locale: nil, max_allowed_maturity_rating: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'onboarding/listCategoryVolumes'
|
command = make_simple_command(:get, 'onboarding/listCategoryVolumes', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volume2::Representation
|
command.response_representation = Google::Apis::BooksV1::Volume2::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volume2
|
command.response_class = Google::Apis::BooksV1::Volume2
|
||||||
command.query['categoryId'] = category_id unless category_id.nil?
|
command.query['categoryId'] = category_id unless category_id.nil?
|
||||||
|
@ -1632,6 +1640,49 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns a stream of personalized book clusters
|
||||||
|
# @param [String] locale
|
||||||
|
# ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
|
||||||
|
# generating recommendations.
|
||||||
|
# @param [String] max_allowed_maturity_rating
|
||||||
|
# The maximum allowed maturity rating of returned recommendations. Books with a
|
||||||
|
# higher maturity rating are filtered out.
|
||||||
|
# @param [String] source
|
||||||
|
# String to identify the originator of this request.
|
||||||
|
# @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::BooksV1::Discoveryclusters] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::BooksV1::Discoveryclusters]
|
||||||
|
#
|
||||||
|
# @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_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'personalizedstream/get', options)
|
||||||
|
command.response_representation = Google::Apis::BooksV1::Discoveryclusters::Representation
|
||||||
|
command.response_class = Google::Apis::BooksV1::Discoveryclusters
|
||||||
|
command.query['locale'] = locale unless locale.nil?
|
||||||
|
command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
|
||||||
|
command.query['source'] = source unless source.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# @param [String] android_id
|
# @param [String] android_id
|
||||||
# device android_id
|
# device android_id
|
||||||
|
@ -1670,8 +1721,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'promooffer/accept'
|
command = make_simple_command(:post, 'promooffer/accept', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.query['androidId'] = android_id unless android_id.nil?
|
command.query['androidId'] = android_id unless android_id.nil?
|
||||||
command.query['device'] = device unless device.nil?
|
command.query['device'] = device unless device.nil?
|
||||||
command.query['manufacturer'] = manufacturer unless manufacturer.nil?
|
command.query['manufacturer'] = manufacturer unless manufacturer.nil?
|
||||||
|
@ -1723,8 +1773,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'promooffer/dismiss'
|
command = make_simple_command(:post, 'promooffer/dismiss', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.query['androidId'] = android_id unless android_id.nil?
|
command.query['androidId'] = android_id unless android_id.nil?
|
||||||
command.query['device'] = device unless device.nil?
|
command.query['device'] = device unless device.nil?
|
||||||
command.query['manufacturer'] = manufacturer unless manufacturer.nil?
|
command.query['manufacturer'] = manufacturer unless manufacturer.nil?
|
||||||
|
@ -1773,8 +1822,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'promooffer/get'
|
command = make_simple_command(:get, 'promooffer/get', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Offers::Representation
|
command.response_representation = Google::Apis::BooksV1::Offers::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Offers
|
command.response_class = Google::Apis::BooksV1::Offers
|
||||||
command.query['androidId'] = android_id unless android_id.nil?
|
command.query['androidId'] = android_id unless android_id.nil?
|
||||||
|
@ -1789,6 +1837,82 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns Series metadata for the given series ids.
|
||||||
|
# @param [Array<String>, String] series_id
|
||||||
|
# String that identifies the series
|
||||||
|
# @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::BooksV1::Series] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::BooksV1::Series]
|
||||||
|
#
|
||||||
|
# @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_series(series_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'series/get', options)
|
||||||
|
command.response_representation = Google::Apis::BooksV1::Series::Representation
|
||||||
|
command.response_class = Google::Apis::BooksV1::Series
|
||||||
|
command.query['series_id'] = series_id unless series_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
|
||||||
|
|
||||||
|
# Returns Series membership data given the series id.
|
||||||
|
# @param [String] series_id
|
||||||
|
# String that identifies the series
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Number of maximum results per page to be included in the response.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The value of the nextToken from the previous page.
|
||||||
|
# @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::BooksV1::SeriesMembership] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::BooksV1::SeriesMembership]
|
||||||
|
#
|
||||||
|
# @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_series_membership(series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'series/membership/get', options)
|
||||||
|
command.response_representation = Google::Apis::BooksV1::SeriesMembership::Representation
|
||||||
|
command.response_class = Google::Apis::BooksV1::SeriesMembership
|
||||||
|
command.query['page_size'] = page_size unless page_size.nil?
|
||||||
|
command.query['page_token'] = page_token unless page_token.nil?
|
||||||
|
command.query['series_id'] = series_id unless series_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
|
||||||
|
|
||||||
# Gets volume information for a single volume.
|
# Gets volume information for a single volume.
|
||||||
# @param [String] volume_id
|
# @param [String] volume_id
|
||||||
# ID of volume to retrieve.
|
# ID of volume to retrieve.
|
||||||
|
@ -1823,8 +1947,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_volume(volume_id, country: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_volume(volume_id, country: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/{volumeId}'
|
command = make_simple_command(:get, 'volumes/{volumeId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volume::Representation
|
command.response_representation = Google::Apis::BooksV1::Volume::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volume
|
command.response_class = Google::Apis::BooksV1::Volume
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -1888,8 +2011,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes'
|
command = make_simple_command(:get, 'volumes', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumes
|
command.response_class = Google::Apis::BooksV1::Volumes
|
||||||
command.query['download'] = download unless download.nil?
|
command.query['download'] = download unless download.nil?
|
||||||
|
@ -1946,8 +2068,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/{volumeId}/associated'
|
command = make_simple_command(:get, 'volumes/{volumeId}/associated', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumes
|
command.response_class = Google::Apis::BooksV1::Volumes
|
||||||
command.params['volumeId'] = volume_id unless volume_id.nil?
|
command.params['volumeId'] = volume_id unless volume_id.nil?
|
||||||
|
@ -1998,8 +2119,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_my_books(acquire_method: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_my_books(acquire_method: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/mybooks'
|
command = make_simple_command(:get, 'volumes/mybooks', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumes
|
command.response_class = Google::Apis::BooksV1::Volumes
|
||||||
command.query['acquireMethod'] = acquire_method unless acquire_method.nil?
|
command.query['acquireMethod'] = acquire_method unless acquire_method.nil?
|
||||||
|
@ -2023,6 +2143,8 @@ module Google
|
||||||
# higher maturity rating are filtered out.
|
# higher maturity rating are filtered out.
|
||||||
# @param [String] source
|
# @param [String] source
|
||||||
# String to identify the originator of this request.
|
# String to identify the originator of this request.
|
||||||
|
# @param [Array<String>, String] target_ids
|
||||||
|
# List of target ids used for experiments or user segments
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -2044,14 +2166,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, target_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/recommended'
|
command = make_simple_command(:get, 'volumes/recommended', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumes
|
command.response_class = Google::Apis::BooksV1::Volumes
|
||||||
command.query['locale'] = locale unless locale.nil?
|
command.query['locale'] = locale unless locale.nil?
|
||||||
command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
|
command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
|
||||||
command.query['source'] = source unless source.nil?
|
command.query['source'] = source unless source.nil?
|
||||||
|
command.query['targetIds'] = target_ids unless target_ids.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
@ -2090,8 +2212,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/recommended/rate'
|
command = make_simple_command(:post, 'volumes/recommended/rate', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation
|
command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse
|
command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse
|
||||||
command.query['locale'] = locale unless locale.nil?
|
command.query['locale'] = locale unless locale.nil?
|
||||||
|
@ -2141,8 +2262,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'volumes/useruploaded'
|
command = make_simple_command(:get, 'volumes/useruploaded', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Volumes
|
command.response_class = Google::Apis::BooksV1::Volumes
|
||||||
command.query['locale'] = locale unless locale.nil?
|
command.query['locale'] = locale unless locale.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||||
module CalendarV3
|
module CalendarV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20150720'
|
REVISION = '20151122'
|
||||||
|
|
||||||
# Manage your calendars
|
# Manage your calendars
|
||||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||||
|
|
|
@ -165,7 +165,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :etag
|
attr_accessor :etag
|
||||||
|
|
||||||
# Identifier of the calendar.
|
# Identifier of the calendar. To retrieve IDs call the calendarList.list()
|
||||||
|
# method.
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
@ -580,7 +581,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
# Last modification time of the color palette (as a RFC 3339 timestamp). Read-
|
# Last modification time of the color palette (as a RFC3339 timestamp). Read-
|
||||||
# only.
|
# only.
|
||||||
# Corresponds to the JSON property `updated`
|
# Corresponds to the JSON property `updated`
|
||||||
# @return [DateTime]
|
# @return [DateTime]
|
||||||
|
@ -636,8 +637,8 @@ module Google
|
||||||
class Event
|
class Event
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Whether anyone can invite themselves to the event. Optional. The default is
|
# Whether anyone can invite themselves to the event (currently works for Google+
|
||||||
# False.
|
# events only). Optional. The default is False.
|
||||||
# Corresponds to the JSON property `anyoneCanAddSelf`
|
# Corresponds to the JSON property `anyoneCanAddSelf`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :anyone_can_add_self
|
attr_accessor :anyone_can_add_self
|
||||||
|
@ -673,7 +674,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :color_id
|
attr_accessor :color_id
|
||||||
|
|
||||||
# Creation time of the event (as a RFC 3339 timestamp). Read-only.
|
# Creation time of the event (as a RFC3339 timestamp). Read-only.
|
||||||
# Corresponds to the JSON property `created`
|
# Corresponds to the JSON property `created`
|
||||||
# @return [DateTime]
|
# @return [DateTime]
|
||||||
attr_accessor :created
|
attr_accessor :created
|
||||||
|
@ -748,13 +749,19 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :html_link
|
attr_accessor :html_link
|
||||||
|
|
||||||
# Event ID in the iCalendar format.
|
# Event unique identifier as defined in RFC5545. It is used to uniquely identify
|
||||||
|
# events accross calendaring systems and must be supplied when importing events
|
||||||
|
# via the import method.
|
||||||
|
# Note that the icalUID and the id are not identical and only one of them should
|
||||||
|
# be supplied at event creation time. One difference in their semantics is that
|
||||||
|
# in recurring events, all occurrences of one event have different ids while
|
||||||
|
# they all share the same icalUIDs.
|
||||||
# Corresponds to the JSON property `iCalUID`
|
# Corresponds to the JSON property `iCalUID`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :i_cal_uid
|
attr_accessor :i_cal_uid
|
||||||
|
|
||||||
# Identifier of the event. When creating new single or recurring events, you can
|
# Opaque identifier of the event. When creating new single or recurring events,
|
||||||
# specify their IDs. Provided IDs must follow these rules:
|
# you can specify their IDs. Provided IDs must follow these rules:
|
||||||
# - characters allowed in the ID are those used in base32hex encoding, i.e.
|
# - characters allowed in the ID are those used in base32hex encoding, i.e.
|
||||||
# lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
|
# lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
|
||||||
# - the length of the ID must be between 5 and 1024 characters
|
# - the length of the ID must be between 5 and 1024 characters
|
||||||
|
@ -762,6 +769,11 @@ module Google
|
||||||
# of the system, we cannot guarantee that ID collisions will be detected at
|
# of the system, we cannot guarantee that ID collisions will be detected at
|
||||||
# event creation time. To minimize the risk of collisions we recommend using an
|
# event creation time. To minimize the risk of collisions we recommend using an
|
||||||
# established UUID algorithm such as one described in RFC4122.
|
# established UUID algorithm such as one described in RFC4122.
|
||||||
|
# If you do not specify an ID, it will be automatically generated by the server.
|
||||||
|
# Note that the icalUID and the id are not identical and only one of them should
|
||||||
|
# be supplied at event creation time. One difference in their semantics is that
|
||||||
|
# in recurring events, all occurrences of one event have different ids while
|
||||||
|
# they all share the same icalUIDs.
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
@ -815,8 +827,8 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :recurrence
|
attr_accessor :recurrence
|
||||||
|
|
||||||
# For an instance of a recurring event, this is the event ID of the recurring
|
# For an instance of a recurring event, this is the id of the recurring event to
|
||||||
# event itself. Immutable.
|
# which this instance belongs. Immutable.
|
||||||
# Corresponds to the JSON property `recurringEventId`
|
# Corresponds to the JSON property `recurringEventId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :recurring_event_id
|
attr_accessor :recurring_event_id
|
||||||
|
@ -864,7 +876,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :transparency
|
attr_accessor :transparency
|
||||||
|
|
||||||
# Last modification time of the event (as a RFC 3339 timestamp). Read-only.
|
# Last modification time of the event (as a RFC3339 timestamp). Read-only.
|
||||||
# Corresponds to the JSON property `updated`
|
# Corresponds to the JSON property `updated`
|
||||||
# @return [DateTime]
|
# @return [DateTime]
|
||||||
attr_accessor :updated
|
attr_accessor :updated
|
||||||
|
@ -941,7 +953,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :email
|
attr_accessor :email
|
||||||
|
|
||||||
# The creator's Profile ID, if available.
|
# The creator's Profile ID, if available. It corresponds to theid field in the
|
||||||
|
# People collection of the Google+ API
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
@ -1070,12 +1083,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :display_name
|
attr_accessor :display_name
|
||||||
|
|
||||||
# The organizer's email address, if available.
|
# The organizer's email address, if available. It must be a valid email address
|
||||||
|
# as per RFC5322.
|
||||||
# Corresponds to the JSON property `email`
|
# Corresponds to the JSON property `email`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :email
|
attr_accessor :email
|
||||||
|
|
||||||
# The organizer's Profile ID, if available.
|
# The organizer's Profile ID, if available. It corresponds to theid field in the
|
||||||
|
# People collection of the Google+ API
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
@ -1223,12 +1238,13 @@ module Google
|
||||||
attr_accessor :display_name
|
attr_accessor :display_name
|
||||||
|
|
||||||
# The attendee's email address, if available. This field must be present when
|
# The attendee's email address, if available. This field must be present when
|
||||||
# adding an attendee.
|
# adding an attendee. It must be a valid email address as per RFC5322.
|
||||||
# Corresponds to the JSON property `email`
|
# Corresponds to the JSON property `email`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :email
|
attr_accessor :email
|
||||||
|
|
||||||
# The attendee's Profile ID, if available.
|
# The attendee's Profile ID, if available. It corresponds to theid field in the
|
||||||
|
# People collection of the Google+ API
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
@ -1296,7 +1312,7 @@ module Google
|
||||||
# @return [Date]
|
# @return [Date]
|
||||||
attr_accessor :date
|
attr_accessor :date
|
||||||
|
|
||||||
# The time, as a combined date-time value (formatted according to RFC 3339). A
|
# The time, as a combined date-time value (formatted according to RFC3339). A
|
||||||
# time zone offset is required unless a time zone is explicitly specified in
|
# time zone offset is required unless a time zone is explicitly specified in
|
||||||
# timeZone.
|
# timeZone.
|
||||||
# Corresponds to the JSON property `dateTime`
|
# Corresponds to the JSON property `dateTime`
|
||||||
|
@ -1424,7 +1440,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :time_zone
|
attr_accessor :time_zone
|
||||||
|
|
||||||
# Last modification time of the calendar (as a RFC 3339 timestamp). Read-only.
|
# Last modification time of the calendar (as a RFC3339 timestamp). Read-only.
|
||||||
# Corresponds to the JSON property `updated`
|
# Corresponds to the JSON property `updated`
|
||||||
# @return [DateTime]
|
# @return [DateTime]
|
||||||
attr_accessor :updated
|
attr_accessor :updated
|
||||||
|
|
|
@ -54,7 +54,9 @@ module Google
|
||||||
|
|
||||||
# Deletes an access control rule.
|
# Deletes an access control rule.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] rule_id
|
# @param [String] rule_id
|
||||||
# ACL rule identifier.
|
# ACL rule identifier.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -79,8 +81,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/acl/{ruleId}'
|
command = make_simple_command(:delete, 'calendars/{calendarId}/acl/{ruleId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
command.params['ruleId'] = rule_id unless rule_id.nil?
|
command.params['ruleId'] = rule_id unless rule_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -91,7 +92,9 @@ module Google
|
||||||
|
|
||||||
# Returns an access control rule.
|
# Returns an access control rule.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] rule_id
|
# @param [String] rule_id
|
||||||
# ACL rule identifier.
|
# ACL rule identifier.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -116,8 +119,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_acl(calendar_id, rule_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/acl/{ruleId}'
|
command = make_simple_command(:get, 'calendars/{calendarId}/acl/{ruleId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
|
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::AclRule
|
command.response_class = Google::Apis::CalendarV3::AclRule
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -130,7 +132,9 @@ module Google
|
||||||
|
|
||||||
# Creates an access control rule.
|
# Creates an access control rule.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
|
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -154,8 +158,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_acl(calendar_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_acl(calendar_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/acl'
|
command = make_simple_command(:post, 'calendars/{calendarId}/acl', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
|
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
|
||||||
command.request_object = acl_rule_object
|
command.request_object = acl_rule_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
|
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
|
||||||
|
@ -169,7 +172,9 @@ module Google
|
||||||
|
|
||||||
# Returns the rules in the access control list for the calendar.
|
# Returns the rules in the access control list for the calendar.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# Maximum number of entries returned on one result page. By default the value is
|
# Maximum number of entries returned on one result page. By default the value is
|
||||||
# 100 entries. The page size can never be larger than 250 entries. Optional.
|
# 100 entries. The page size can never be larger than 250 entries. Optional.
|
||||||
|
@ -212,8 +217,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_acls(calendar_id, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_acls(calendar_id, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/acl'
|
command = make_simple_command(:get, 'calendars/{calendarId}/acl', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Acl::Representation
|
command.response_representation = Google::Apis::CalendarV3::Acl::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Acl
|
command.response_class = Google::Apis::CalendarV3::Acl
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -229,7 +233,9 @@ module Google
|
||||||
|
|
||||||
# Updates an access control rule. This method supports patch semantics.
|
# Updates an access control rule. This method supports patch semantics.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] rule_id
|
# @param [String] rule_id
|
||||||
# ACL rule identifier.
|
# ACL rule identifier.
|
||||||
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
|
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
|
||||||
|
@ -255,8 +261,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/acl/{ruleId}'
|
command = make_simple_command(:patch, 'calendars/{calendarId}/acl/{ruleId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
|
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
|
||||||
command.request_object = acl_rule_object
|
command.request_object = acl_rule_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
|
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
|
||||||
|
@ -271,7 +276,9 @@ module Google
|
||||||
|
|
||||||
# Updates an access control rule.
|
# Updates an access control rule.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] rule_id
|
# @param [String] rule_id
|
||||||
# ACL rule identifier.
|
# ACL rule identifier.
|
||||||
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
|
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
|
||||||
|
@ -297,8 +304,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/acl/{ruleId}'
|
command = make_simple_command(:put, 'calendars/{calendarId}/acl/{ruleId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
|
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
|
||||||
command.request_object = acl_rule_object
|
command.request_object = acl_rule_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
|
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
|
||||||
|
@ -313,7 +319,9 @@ module Google
|
||||||
|
|
||||||
# Watch for changes to ACL resources.
|
# Watch for changes to ACL resources.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::Channel] channel_object
|
# @param [Google::Apis::CalendarV3::Channel] channel_object
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# Maximum number of entries returned on one result page. By default the value is
|
# Maximum number of entries returned on one result page. By default the value is
|
||||||
|
@ -357,8 +365,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def watch_acl(calendar_id, channel_object = nil, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def watch_acl(calendar_id, channel_object = nil, max_results: nil, page_token: nil, show_deleted: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/acl/watch'
|
command = make_simple_command(:post, 'calendars/{calendarId}/acl/watch', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
command.request_object = channel_object
|
command.request_object = channel_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.response_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
|
@ -376,7 +383,9 @@ module Google
|
||||||
|
|
||||||
# Deletes an entry on the user's calendar list.
|
# Deletes an entry on the user's calendar list.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -399,8 +408,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/calendarList/{calendarId}'
|
command = make_simple_command(:delete, 'users/me/calendarList/{calendarId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -410,7 +418,9 @@ module Google
|
||||||
|
|
||||||
# Returns an entry on the user's calendar list.
|
# Returns an entry on the user's calendar list.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -433,8 +443,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_calendar_list(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/calendarList/{calendarId}'
|
command = make_simple_command(:get, 'users/me/calendarList/{calendarId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::CalendarListEntry
|
command.response_class = Google::Apis::CalendarV3::CalendarListEntry
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -473,8 +482,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_calendar_list(calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_calendar_list(calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/calendarList'
|
command = make_simple_command(:post, 'users/me/calendarList', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
||||||
command.request_object = calendar_list_entry_object
|
command.request_object = calendar_list_entry_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
||||||
|
@ -537,8 +545,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_calendar_lists(max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_calendar_lists(max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/calendarList'
|
command = make_simple_command(:get, 'users/me/calendarList', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::CalendarList::Representation
|
command.response_representation = Google::Apis::CalendarV3::CalendarList::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::CalendarList
|
command.response_class = Google::Apis::CalendarV3::CalendarList
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -556,7 +563,9 @@ module Google
|
||||||
# Updates an entry on the user's calendar list. This method supports patch
|
# Updates an entry on the user's calendar list. This method supports patch
|
||||||
# semantics.
|
# semantics.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object
|
# @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object
|
||||||
# @param [Boolean] color_rgb_format
|
# @param [Boolean] color_rgb_format
|
||||||
# Whether to use the foregroundColor and backgroundColor fields to write the
|
# Whether to use the foregroundColor and backgroundColor fields to write the
|
||||||
|
@ -585,8 +594,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/calendarList/{calendarId}'
|
command = make_simple_command(:patch, 'users/me/calendarList/{calendarId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
||||||
command.request_object = calendar_list_entry_object
|
command.request_object = calendar_list_entry_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
||||||
|
@ -601,7 +609,9 @@ module Google
|
||||||
|
|
||||||
# Updates an entry on the user's calendar list.
|
# Updates an entry on the user's calendar list.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object
|
# @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object
|
||||||
# @param [Boolean] color_rgb_format
|
# @param [Boolean] color_rgb_format
|
||||||
# Whether to use the foregroundColor and backgroundColor fields to write the
|
# Whether to use the foregroundColor and backgroundColor fields to write the
|
||||||
|
@ -630,8 +640,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_calendar_list(calendar_id, calendar_list_entry_object = nil, color_rgb_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/calendarList/{calendarId}'
|
command = make_simple_command(:put, 'users/me/calendarList/{calendarId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
command.request_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
||||||
command.request_object = calendar_list_entry_object
|
command.request_object = calendar_list_entry_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
command.response_representation = Google::Apis::CalendarV3::CalendarListEntry::Representation
|
||||||
|
@ -696,8 +705,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def watch_calendar_list(channel_object = nil, max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def watch_calendar_list(channel_object = nil, max_results: nil, min_access_role: nil, page_token: nil, show_deleted: nil, show_hidden: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/calendarList/watch'
|
command = make_simple_command(:post, 'users/me/calendarList/watch', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
command.request_object = channel_object
|
command.request_object = channel_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.response_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
|
@ -717,7 +725,9 @@ module Google
|
||||||
# Clears a primary calendar. This operation deletes all events associated with
|
# Clears a primary calendar. This operation deletes all events associated with
|
||||||
# the primary calendar of an account.
|
# the primary calendar of an account.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -740,8 +750,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def clear_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def clear_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/clear'
|
command = make_simple_command(:post, 'calendars/{calendarId}/clear', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -752,7 +761,9 @@ module Google
|
||||||
# Deletes a secondary calendar. Use calendars.clear for clearing all events on
|
# Deletes a secondary calendar. Use calendars.clear for clearing all events on
|
||||||
# primary calendars.
|
# primary calendars.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -775,8 +786,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}'
|
command = make_simple_command(:delete, 'calendars/{calendarId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -786,7 +796,9 @@ module Google
|
||||||
|
|
||||||
# Returns metadata for a calendar.
|
# Returns metadata for a calendar.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -809,8 +821,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_calendar(calendar_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}'
|
command = make_simple_command(:get, 'calendars/{calendarId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Calendar::Representation
|
command.response_representation = Google::Apis::CalendarV3::Calendar::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Calendar
|
command.response_class = Google::Apis::CalendarV3::Calendar
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -844,8 +855,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_calendar(calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_calendar(calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars'
|
command = make_simple_command(:post, 'calendars', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Calendar::Representation
|
command.request_representation = Google::Apis::CalendarV3::Calendar::Representation
|
||||||
command.request_object = calendar_object
|
command.request_object = calendar_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Calendar::Representation
|
command.response_representation = Google::Apis::CalendarV3::Calendar::Representation
|
||||||
|
@ -858,7 +868,9 @@ module Google
|
||||||
|
|
||||||
# Updates metadata for a calendar. This method supports patch semantics.
|
# Updates metadata for a calendar. This method supports patch semantics.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::Calendar] calendar_object
|
# @param [Google::Apis::CalendarV3::Calendar] calendar_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -882,8 +894,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}'
|
command = make_simple_command(:patch, 'calendars/{calendarId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Calendar::Representation
|
command.request_representation = Google::Apis::CalendarV3::Calendar::Representation
|
||||||
command.request_object = calendar_object
|
command.request_object = calendar_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Calendar::Representation
|
command.response_representation = Google::Apis::CalendarV3::Calendar::Representation
|
||||||
|
@ -897,7 +908,9 @@ module Google
|
||||||
|
|
||||||
# Updates metadata for a calendar.
|
# Updates metadata for a calendar.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::Calendar] calendar_object
|
# @param [Google::Apis::CalendarV3::Calendar] calendar_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -921,8 +934,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_calendar(calendar_id, calendar_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}'
|
command = make_simple_command(:put, 'calendars/{calendarId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Calendar::Representation
|
command.request_representation = Google::Apis::CalendarV3::Calendar::Representation
|
||||||
command.request_object = calendar_object
|
command.request_object = calendar_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Calendar::Representation
|
command.response_representation = Google::Apis::CalendarV3::Calendar::Representation
|
||||||
|
@ -958,8 +970,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'channels/stop'
|
command = make_simple_command(:post, 'channels/stop', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
command.request_object = channel_object
|
command.request_object = channel_object
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -991,8 +1002,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_color(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_color(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'colors'
|
command = make_simple_command(:get, 'colors', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Colors::Representation
|
command.response_representation = Google::Apis::CalendarV3::Colors::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Colors
|
command.response_class = Google::Apis::CalendarV3::Colors
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1003,7 +1013,9 @@ module Google
|
||||||
|
|
||||||
# Deletes an event.
|
# Deletes an event.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] event_id
|
# @param [String] event_id
|
||||||
# Event identifier.
|
# Event identifier.
|
||||||
# @param [Boolean] send_notifications
|
# @param [Boolean] send_notifications
|
||||||
|
@ -1031,8 +1043,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_event(calendar_id, event_id, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_event(calendar_id, event_id, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/{eventId}'
|
command = make_simple_command(:delete, 'calendars/{calendarId}/events/{eventId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
command.params['eventId'] = event_id unless event_id.nil?
|
command.params['eventId'] = event_id unless event_id.nil?
|
||||||
command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
|
command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
|
||||||
|
@ -1044,7 +1055,9 @@ module Google
|
||||||
|
|
||||||
# Returns an event.
|
# Returns an event.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] event_id
|
# @param [String] event_id
|
||||||
# Event identifier.
|
# Event identifier.
|
||||||
# @param [Boolean] always_include_email
|
# @param [Boolean] always_include_email
|
||||||
|
@ -1082,8 +1095,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/{eventId}'
|
command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Event
|
command.response_class = Google::Apis::CalendarV3::Event
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -1100,7 +1112,9 @@ module Google
|
||||||
# Imports an event. This operation is used to add a private copy of an existing
|
# Imports an event. This operation is used to add a private copy of an existing
|
||||||
# event to a calendar.
|
# event to a calendar.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::Event] event_object
|
# @param [Google::Apis::CalendarV3::Event] event_object
|
||||||
# @param [Boolean] supports_attachments
|
# @param [Boolean] supports_attachments
|
||||||
# Whether API client performing operation supports event attachments. Optional.
|
# Whether API client performing operation supports event attachments. Optional.
|
||||||
|
@ -1127,8 +1141,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def import_event(calendar_id, event_object = nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def import_event(calendar_id, event_object = nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/import'
|
command = make_simple_command(:post, 'calendars/{calendarId}/events/import', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
command.request_object = event_object
|
command.request_object = event_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
|
@ -1143,7 +1156,9 @@ module Google
|
||||||
|
|
||||||
# Creates an event.
|
# Creates an event.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::Event] event_object
|
# @param [Google::Apis::CalendarV3::Event] event_object
|
||||||
# @param [Fixnum] max_attendees
|
# @param [Fixnum] max_attendees
|
||||||
# The maximum number of attendees to include in the response. If there are more
|
# The maximum number of attendees to include in the response. If there are more
|
||||||
|
@ -1177,8 +1192,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_event(calendar_id, event_object = nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_event(calendar_id, event_object = nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events'
|
command = make_simple_command(:post, 'calendars/{calendarId}/events', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
command.request_object = event_object
|
command.request_object = event_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
|
@ -1195,7 +1209,9 @@ module Google
|
||||||
|
|
||||||
# Returns instances of the specified recurring event.
|
# Returns instances of the specified recurring event.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] event_id
|
# @param [String] event_id
|
||||||
# Recurring event identifier.
|
# Recurring event identifier.
|
||||||
# @param [Boolean] always_include_email
|
# @param [Boolean] always_include_email
|
||||||
|
@ -1252,8 +1268,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def instances_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, max_results: nil, original_start: nil, page_token: nil, show_deleted: nil, time_max: nil, time_min: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def instances_event(calendar_id, event_id, always_include_email: nil, max_attendees: nil, max_results: nil, original_start: nil, page_token: nil, show_deleted: nil, time_max: nil, time_min: nil, time_zone: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/{eventId}/instances'
|
command = make_simple_command(:get, 'calendars/{calendarId}/events/{eventId}/instances', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Events::Representation
|
command.response_representation = Google::Apis::CalendarV3::Events::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Events
|
command.response_class = Google::Apis::CalendarV3::Events
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -1275,7 +1290,9 @@ module Google
|
||||||
|
|
||||||
# Returns events on the specified calendar.
|
# Returns events on the specified calendar.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Boolean] always_include_email
|
# @param [Boolean] always_include_email
|
||||||
# Whether to always include a value in the email field for the organizer,
|
# Whether to always include a value in the email field for the organizer,
|
||||||
# creator and attendees, even if no real email is available (i.e. a generated,
|
# creator and attendees, even if no real email is available (i.e. a generated,
|
||||||
|
@ -1357,7 +1374,7 @@ module Google
|
||||||
# Time zone used in the response. Optional. The default is the time zone of the
|
# Time zone used in the response. Optional. The default is the time zone of the
|
||||||
# calendar.
|
# calendar.
|
||||||
# @param [DateTime] updated_min
|
# @param [DateTime] updated_min
|
||||||
# Lower bound for an event's last modification time (as a RFC 3339 timestamp) to
|
# Lower bound for an event's last modification time (as a RFC3339 timestamp) to
|
||||||
# filter by. When specified, entries deleted since this time will always be
|
# filter by. When specified, entries deleted since this time will always be
|
||||||
# included regardless of showDeleted. Optional. The default is not to filter by
|
# included regardless of showDeleted. Optional. The default is not to filter by
|
||||||
# last modification time.
|
# last modification time.
|
||||||
|
@ -1383,8 +1400,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_events(calendar_id, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_events(calendar_id, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events'
|
command = make_simple_command(:get, 'calendars/{calendarId}/events', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Events::Representation
|
command.response_representation = Google::Apis::CalendarV3::Events::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Events
|
command.response_class = Google::Apis::CalendarV3::Events
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -1443,8 +1459,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def move_event(calendar_id, event_id, destination, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def move_event(calendar_id, event_id, destination, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/{eventId}/move'
|
command = make_simple_command(:post, 'calendars/{calendarId}/events/{eventId}/move', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Event
|
command.response_class = Google::Apis::CalendarV3::Event
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -1459,7 +1474,9 @@ module Google
|
||||||
|
|
||||||
# Updates an event. This method supports patch semantics.
|
# Updates an event. This method supports patch semantics.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] event_id
|
# @param [String] event_id
|
||||||
# Event identifier.
|
# Event identifier.
|
||||||
# @param [Google::Apis::CalendarV3::Event] event_object
|
# @param [Google::Apis::CalendarV3::Event] event_object
|
||||||
|
@ -1501,8 +1518,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/{eventId}'
|
command = make_simple_command(:patch, 'calendars/{calendarId}/events/{eventId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
command.request_object = event_object
|
command.request_object = event_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
|
@ -1521,7 +1537,9 @@ module Google
|
||||||
|
|
||||||
# Creates an event based on a simple text string.
|
# Creates an event based on a simple text string.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] text
|
# @param [String] text
|
||||||
# The text describing the event to be created.
|
# The text describing the event to be created.
|
||||||
# @param [Boolean] send_notifications
|
# @param [Boolean] send_notifications
|
||||||
|
@ -1548,9 +1566,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def quick_add_event(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def quick_event_add(calendar_id, text, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/quickAdd'
|
command = make_simple_command(:post, 'calendars/{calendarId}/events/quickAdd', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Event
|
command.response_class = Google::Apis::CalendarV3::Event
|
||||||
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
||||||
|
@ -1564,7 +1581,9 @@ module Google
|
||||||
|
|
||||||
# Updates an event.
|
# Updates an event.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [String] event_id
|
# @param [String] event_id
|
||||||
# Event identifier.
|
# Event identifier.
|
||||||
# @param [Google::Apis::CalendarV3::Event] event_object
|
# @param [Google::Apis::CalendarV3::Event] event_object
|
||||||
|
@ -1606,8 +1625,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/{eventId}'
|
command = make_simple_command(:put, 'calendars/{calendarId}/events/{eventId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
command.request_object = event_object
|
command.request_object = event_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
||||||
|
@ -1626,7 +1644,9 @@ module Google
|
||||||
|
|
||||||
# Watch for changes to Events resources.
|
# Watch for changes to Events resources.
|
||||||
# @param [String] calendar_id
|
# @param [String] calendar_id
|
||||||
# Calendar identifier.
|
# Calendar identifier. To retrieve calendar IDs call the calendarList.list
|
||||||
|
# method. If you want to access the primary calendar of the currently logged in
|
||||||
|
# user, use the "primary" keyword.
|
||||||
# @param [Google::Apis::CalendarV3::Channel] channel_object
|
# @param [Google::Apis::CalendarV3::Channel] channel_object
|
||||||
# @param [Boolean] always_include_email
|
# @param [Boolean] always_include_email
|
||||||
# Whether to always include a value in the email field for the organizer,
|
# Whether to always include a value in the email field for the organizer,
|
||||||
|
@ -1709,7 +1729,7 @@ module Google
|
||||||
# Time zone used in the response. Optional. The default is the time zone of the
|
# Time zone used in the response. Optional. The default is the time zone of the
|
||||||
# calendar.
|
# calendar.
|
||||||
# @param [DateTime] updated_min
|
# @param [DateTime] updated_min
|
||||||
# Lower bound for an event's last modification time (as a RFC 3339 timestamp) to
|
# Lower bound for an event's last modification time (as a RFC3339 timestamp) to
|
||||||
# filter by. When specified, entries deleted since this time will always be
|
# filter by. When specified, entries deleted since this time will always be
|
||||||
# included regardless of showDeleted. Optional. The default is not to filter by
|
# included regardless of showDeleted. Optional. The default is not to filter by
|
||||||
# last modification time.
|
# last modification time.
|
||||||
|
@ -1735,8 +1755,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def watch_event(calendar_id, channel_object = nil, always_include_email: nil, i_cal_uid: nil, max_attendees: nil, max_results: nil, order_by: nil, page_token: nil, private_extended_property: nil, q: nil, shared_extended_property: nil, show_deleted: nil, show_hidden_invitations: nil, single_events: nil, sync_token: nil, time_max: nil, time_min: nil, time_zone: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'calendars/{calendarId}/events/watch'
|
command = make_simple_command(:post, 'calendars/{calendarId}/events/watch', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
command.request_object = channel_object
|
command.request_object = channel_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.response_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
|
@ -1789,8 +1808,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def query_freebusy(free_busy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def query_freebusy(free_busy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'freeBusy'
|
command = make_simple_command(:post, 'freeBusy', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::FreeBusyRequest::Representation
|
command.request_representation = Google::Apis::CalendarV3::FreeBusyRequest::Representation
|
||||||
command.request_object = free_busy_request_object
|
command.request_object = free_busy_request_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::FreeBusyResponse::Representation
|
command.response_representation = Google::Apis::CalendarV3::FreeBusyResponse::Representation
|
||||||
|
@ -1826,8 +1844,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_setting(setting, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_setting(setting, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/settings/{setting}'
|
command = make_simple_command(:get, 'users/me/settings/{setting}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Setting::Representation
|
command.response_representation = Google::Apis::CalendarV3::Setting::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Setting
|
command.response_class = Google::Apis::CalendarV3::Setting
|
||||||
command.params['setting'] = setting unless setting.nil?
|
command.params['setting'] = setting unless setting.nil?
|
||||||
|
@ -1874,8 +1891,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_settings(max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_settings(max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/settings'
|
command = make_simple_command(:get, 'users/me/settings', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CalendarV3::Settings::Representation
|
command.response_representation = Google::Apis::CalendarV3::Settings::Representation
|
||||||
command.response_class = Google::Apis::CalendarV3::Settings
|
command.response_class = Google::Apis::CalendarV3::Settings
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
@ -1925,8 +1941,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def watch_setting(channel_object = nil, max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def watch_setting(channel_object = nil, max_results: nil, page_token: nil, sync_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'users/me/settings/watch'
|
command = make_simple_command(:post, 'users/me/settings/watch', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.request_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
command.request_object = channel_object
|
command.request_object = channel_object
|
||||||
command.response_representation = Google::Apis::CalendarV3::Channel::Representation
|
command.response_representation = Google::Apis::CalendarV3::Channel::Representation
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/civic-information
|
# @see https://developers.google.com/civic-information
|
||||||
module CivicinfoV2
|
module CivicinfoV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20150707'
|
REVISION = '20150820'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -323,9 +323,9 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :referendum_ballot_responses
|
attr_accessor :referendum_ballot_responses
|
||||||
|
|
||||||
# Specifies a short summary of the referendum that is on the ballot below the
|
# Specifies a short summary of the referendum that is typically on the ballot
|
||||||
# title but above the text. This field is only populated for contests of type '
|
# below the title but above the text. This field is only populated for contests
|
||||||
# Referendum'.
|
# of type 'Referendum'.
|
||||||
# Corresponds to the JSON property `referendumBrief`
|
# Corresponds to the JSON property `referendumBrief`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :referendum_brief
|
attr_accessor :referendum_brief
|
||||||
|
@ -515,6 +515,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The political division of the election. Represented as an OCD Division ID.
|
||||||
|
# Voters within these political jurisdictions are covered by this election. This
|
||||||
|
# is typically a state such as ocd-division/country:us/state:ca or for the
|
||||||
|
# midterms or general election the entire US (i.e. ocd-division/country:us).
|
||||||
|
# Corresponds to the JSON property `ocdDivisionId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ocd_division_id
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -524,6 +532,7 @@ module Google
|
||||||
@election_day = args[:election_day] unless args[:election_day].nil?
|
@election_day = args[:election_day] unless args[:election_day].nil?
|
||||||
@id = args[:id] unless args[:id].nil?
|
@id = args[:id] unless args[:id].nil?
|
||||||
@name = args[:name] unless args[:name].nil?
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@ocd_division_id = args[:ocd_division_id] unless args[:ocd_division_id].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -218,6 +218,7 @@ module Google
|
||||||
property :election_day, as: 'electionDay'
|
property :election_day, as: 'electionDay'
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
property :ocd_division_id, as: 'ocdDivisionId'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -80,8 +80,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def search_divisions(query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def search_divisions(query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'divisions'
|
command = make_simple_command(:get, 'divisions', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CivicinfoV2::SearchDivisionResponse::Representation
|
command.response_representation = Google::Apis::CivicinfoV2::SearchDivisionResponse::Representation
|
||||||
command.response_class = Google::Apis::CivicinfoV2::SearchDivisionResponse
|
command.response_class = Google::Apis::CivicinfoV2::SearchDivisionResponse
|
||||||
command.query['query'] = query unless query.nil?
|
command.query['query'] = query unless query.nil?
|
||||||
|
@ -114,8 +113,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def query_election(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def query_election(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'elections'
|
command = make_simple_command(:get, 'elections', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
|
command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
|
||||||
command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
|
command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -155,8 +153,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def query_voter_info(address, election_id: nil, official_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def query_voter_info(address, election_id: nil, official_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'voterinfo'
|
command = make_simple_command(:get, 'voterinfo', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
|
command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
|
||||||
command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
|
command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
|
||||||
command.query['address'] = address unless address.nil?
|
command.query['address'] = address unless address.nil?
|
||||||
|
@ -206,8 +203,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def representative_info_by_address(address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def representative_info_by_address(address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'representatives'
|
command = make_simple_command(:get, 'representatives', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoResponse::Representation
|
command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoResponse::Representation
|
||||||
command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoResponse
|
command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoResponse
|
||||||
command.query['address'] = address unless address.nil?
|
command.query['address'] = address unless address.nil?
|
||||||
|
@ -257,8 +253,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def representative_info_by_division(ocd_id, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def representative_info_by_division(ocd_id, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'representatives/{ocdId}'
|
command = make_simple_command(:get, 'representatives/{ocdId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoData::Representation
|
command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoData::Representation
|
||||||
command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoData
|
command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoData
|
||||||
command.params['ocdId'] = ocd_id unless ocd_id.nil?
|
command.params['ocdId'] = ocd_id unless ocd_id.nil?
|
||||||
|
|
|
@ -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_v1/service.rb'
|
||||||
|
require 'google/apis/classroom_v1/classes.rb'
|
||||||
|
require 'google/apis/classroom_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google Classroom API
|
||||||
|
#
|
||||||
|
# Google Classroom API
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/classroom/
|
||||||
|
module ClassroomV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20151013'
|
||||||
|
|
||||||
|
# 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,512 @@
|
||||||
|
# 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 ClassroomV1
|
||||||
|
|
||||||
|
# A Course in Classroom.
|
||||||
|
class Course
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifier for this course assigned by Classroom. When creating a course, you
|
||||||
|
# may optionally set this identifier to an alias string in the request to create
|
||||||
|
# a corresponding alias. The `id` is still assigned by Classroom and cannot be
|
||||||
|
# updated after the 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". The name is required.
|
||||||
|
# It 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 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 owner of a course. When specified as a parameter of a
|
||||||
|
# create course request, this field is required. The identifier can be one of
|
||||||
|
# the following: * the numeric identifier for the user * the email address of
|
||||||
|
# the user * the string literal `"me"`, indicating the requesting user This must
|
||||||
|
# be set in a create request. Specifying this field in a course update mask will
|
||||||
|
# result in an `INVALID_ARGUMENT` error.
|
||||||
|
# Corresponds to the JSON property `ownerId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :owner_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 is `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 `alternateLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :alternate_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?
|
||||||
|
@owner_id = args[:owner_id] unless args[:owner_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?
|
||||||
|
@alternate_link = args[:alternate_link] unless args[:alternate_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 list request.
|
||||||
|
# Corresponds to the JSON property `courses`
|
||||||
|
# @return [Array<Google::Apis::ClassroomV1::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
|
||||||
|
# must 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 can be
|
||||||
|
# created only 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 can 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 indicates 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::ClassroomV1::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
|
||||||
|
|
||||||
|
# An invitation to join a course.
|
||||||
|
class Invitation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifier assigned by Classroom. Read-only.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# Identifier of the invited user. When specified as a parameter of a request,
|
||||||
|
# this identifier can be set to one of the following: * the numeric identifier
|
||||||
|
# for the user * the email address of the user * the string literal `"me"`,
|
||||||
|
# indicating the requesting user
|
||||||
|
# Corresponds to the JSON property `userId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :user_id
|
||||||
|
|
||||||
|
# Identifier of the course to invite the user to.
|
||||||
|
# Corresponds to the JSON property `courseId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :course_id
|
||||||
|
|
||||||
|
# Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
|
||||||
|
# Corresponds to the JSON property `role`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@user_id = args[:user_id] unless args[:user_id].nil?
|
||||||
|
@course_id = args[:course_id] unless args[:course_id].nil?
|
||||||
|
@role = args[:role] unless args[:role].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response when listing invitations.
|
||||||
|
class ListInvitationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Invitations that match the list request.
|
||||||
|
# Corresponds to the JSON property `invitations`
|
||||||
|
# @return [Array<Google::Apis::ClassroomV1::Invitation>]
|
||||||
|
attr_accessor :invitations
|
||||||
|
|
||||||
|
# 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)
|
||||||
|
@invitations = args[:invitations] unless args[:invitations].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
|
||||||
|
|
||||||
|
# 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::ClassroomV1::Name]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Email 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::ClassroomV1::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
|
||||||
|
|
||||||
|
# Identifier of the course. Read-only.
|
||||||
|
# Corresponds to the JSON property `courseId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :course_id
|
||||||
|
|
||||||
|
# Identifier of the user. When specified as a parameter of a request, this
|
||||||
|
# identifier can be one of the following: * the numeric identifier for the user *
|
||||||
|
# the email 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::ClassroomV1::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
|
||||||
|
|
||||||
|
# Teachers who match the list request.
|
||||||
|
# Corresponds to the JSON property `teachers`
|
||||||
|
# @return [Array<Google::Apis::ClassroomV1::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
|
||||||
|
|
||||||
|
# Identifier of the course. Read-only.
|
||||||
|
# Corresponds to the JSON property `courseId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :course_id
|
||||||
|
|
||||||
|
# Identifier of the user. When specified as a parameter of a request, this
|
||||||
|
# identifier can be one of the following: * the numeric identifier for the user *
|
||||||
|
# the email 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::ClassroomV1::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
|
||||||
|
|
||||||
|
# Students who match the list request.
|
||||||
|
# Corresponds to the JSON property `students`
|
||||||
|
# @return [Array<Google::Apis::ClassroomV1::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,217 @@
|
||||||
|
# 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 ClassroomV1
|
||||||
|
|
||||||
|
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 Invitation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListInvitationsResponse
|
||||||
|
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 :owner_id, as: 'ownerId'
|
||||||
|
property :creation_time, as: 'creationTime'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
property :enrollment_code, as: 'enrollmentCode'
|
||||||
|
property :course_state, as: 'courseState'
|
||||||
|
property :alternate_link, as: 'alternateLink'
|
||||||
|
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::ClassroomV1::Course, decorator: Google::Apis::ClassroomV1::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::ClassroomV1::CourseAlias, decorator: Google::Apis::ClassroomV1::CourseAlias::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Invitation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :user_id, as: 'userId'
|
||||||
|
property :course_id, as: 'courseId'
|
||||||
|
property :role, as: 'role'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListInvitationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :invitations, as: 'invitations', class: Google::Apis::ClassroomV1::Invitation, decorator: Google::Apis::ClassroomV1::Invitation::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::ClassroomV1::Name, decorator: Google::Apis::ClassroomV1::Name::Representation
|
||||||
|
|
||||||
|
property :email_address, as: 'emailAddress'
|
||||||
|
property :photo_url, as: 'photoUrl'
|
||||||
|
collection :permissions, as: 'permissions', class: Google::Apis::ClassroomV1::GlobalPermission, decorator: Google::Apis::ClassroomV1::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::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTeachersResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :teachers, as: 'teachers', class: Google::Apis::ClassroomV1::Teacher, decorator: Google::Apis::ClassroomV1::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::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListStudentsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :students, as: 'students', class: Google::Apis::ClassroomV1::Student, decorator: Google::Apis::ClassroomV1::Student::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,970 @@
|
||||||
|
# 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 ClassroomV1
|
||||||
|
# Google Classroom API
|
||||||
|
#
|
||||||
|
# Google Classroom API
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/classroom_v1'
|
||||||
|
#
|
||||||
|
# Classroom = Google::Apis::ClassroomV1 # Alias the module
|
||||||
|
# service = Classroom::ClassroomService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/classroom/
|
||||||
|
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 in `ownerId` 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
|
||||||
|
# or for access errors. * `NOT_FOUND` if the primary teacher is not a valid user.
|
||||||
|
# * `FAILED_PRECONDITION` if the course owner's account is disabled or for the
|
||||||
|
# following request errors: * UserGroupsMembershipLimitReached * `ALREADY_EXISTS`
|
||||||
|
# if an alias was specified in the `id` and already exists.
|
||||||
|
# @param [Google::Apis::ClassroomV1::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::ClassroomV1::Course] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:post, 'v1/courses', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::Course::Representation
|
||||||
|
command.request_object = course_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Course::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if no course exists with
|
||||||
|
# the requested ID.
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the course to return. This identifier can be either the
|
||||||
|
# Classroom-assigned identifier or an alias.
|
||||||
|
# @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::ClassroomV1::Course] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:get, 'v1/courses/{id}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Course::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if no course exists with
|
||||||
|
# the requested ID. * `FAILED_PRECONDITION` for the following request errors: *
|
||||||
|
# CourseNotModifiable
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the course to update. This identifier can be either the
|
||||||
|
# Classroom-assigned identifier or an alias.
|
||||||
|
# @param [Google::Apis::ClassroomV1::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::ClassroomV1::Course] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:put, 'v1/courses/{id}', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::Course::Representation
|
||||||
|
command.request_object = course_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Course::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 in a course. This method returns the following
|
||||||
|
# error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
|
||||||
|
# modify the requested course or for access errors. * `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. * `
|
||||||
|
# FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the course to update. This identifier can be either the
|
||||||
|
# Classroom-assigned identifier or an alias.
|
||||||
|
# @param [Google::Apis::ClassroomV1::Course] course_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# Mask that 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.
|
||||||
|
# The following fields are valid: * `name` * `section` * `descriptionHeading` *
|
||||||
|
# `description` * `room` * `courseState` When set in a query parameter, this
|
||||||
|
# field 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::ClassroomV1::Course] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:patch, 'v1/courses/{id}', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::Course::Representation
|
||||||
|
command.request_object = course_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Course::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if no course exists with
|
||||||
|
# the requested ID.
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the course to delete. This identifier can be either the
|
||||||
|
# Classroom-assigned identifier or an alias.
|
||||||
|
# @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::ClassroomV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:delete, 'v1/courses/{id}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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: * `PERMISSION_DENIED` for access errors. * `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. The identifier can be one of the following: * the numeric
|
||||||
|
# identifier for the user * the email address of the user * the string literal `"
|
||||||
|
# me"`, indicating the requesting user
|
||||||
|
# @param [String] teacher_id
|
||||||
|
# Restricts returned courses to those having a teacher with the specified
|
||||||
|
# identifier. The identifier can be one of the following: * the numeric
|
||||||
|
# identifier for the user * the email address of the user * the string literal `"
|
||||||
|
# me"`, indicating 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 value returned from a previous list call, indicating that the
|
||||||
|
# subsequent page of results should be returned. The list request must be
|
||||||
|
# otherwise identical to the one that 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::ClassroomV1::ListCoursesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:get, 'v1/courses', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 for a course. This method returns the following error codes: *
|
||||||
|
# `PERMISSION_DENIED` if the requesting user is not permitted to create the
|
||||||
|
# alias or for access errors. * `NOT_FOUND` if the course does not exist. * `
|
||||||
|
# ALREADY_EXISTS` if the alias already exists.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course to alias. This identifier can be either the Classroom-
|
||||||
|
# assigned identifier or an alias.
|
||||||
|
# @param [Google::Apis::ClassroomV1::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::ClassroomV1::CourseAlias] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:post, 'v1/courses/{courseId}/aliases', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::CourseAlias::Representation
|
||||||
|
command.request_object = course_alias_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::CourseAlias::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if the alias does not exist.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course whose alias should be deleted. This identifier can be
|
||||||
|
# either the Classroom-assigned identifier or an alias.
|
||||||
|
# @param [String] alias_
|
||||||
|
# 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::ClassroomV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:delete, 'v1/courses/{courseId}/aliases/{alias}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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
|
||||||
|
|
||||||
|
# Returns a list of aliases for a course. This method returns the following
|
||||||
|
# error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
|
||||||
|
# access the course or for access errors. * `NOT_FOUND` if the course does not
|
||||||
|
# exist.
|
||||||
|
# @param [String] course_id
|
||||||
|
# The identifier of the course. This identifier can be either the Classroom-
|
||||||
|
# assigned identifier or an alias.
|
||||||
|
# @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 value returned from a previous list call, indicating that the
|
||||||
|
# subsequent page of results should be returned. The list request must be
|
||||||
|
# otherwise identical to the one that 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::ClassroomV1::ListCourseAliasesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:get, 'v1/courses/{courseId}/aliases', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::ListCourseAliasesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if the requested
|
||||||
|
# course ID does not exist. * `FAILED_PRECONDITION` if the requested user's
|
||||||
|
# account is disabled, for the following request errors: *
|
||||||
|
# CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached *
|
||||||
|
# UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a
|
||||||
|
# teacher or student in the course.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course. This identifier can be either the Classroom-assigned
|
||||||
|
# identifier or an alias.
|
||||||
|
# @param [Google::Apis::ClassroomV1::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::ClassroomV1::Teacher] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:post, 'v1/courses/{courseId}/teachers', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::Teacher::Representation
|
||||||
|
command.request_object = teacher_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Teacher::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if no teacher of this
|
||||||
|
# course has the requested ID or if the course does not exist.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course. This identifier can be either the Classroom-assigned
|
||||||
|
# identifier or an alias.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Identifier of the teacher to return. The identifier can be one of the
|
||||||
|
# following: * the numeric identifier for the user * the email 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::ClassroomV1::Teacher] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:get, 'v1/courses/{courseId}/teachers/{userId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Teacher::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `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
|
||||||
|
# Identifier of the course. This identifier can be either the Classroom-assigned
|
||||||
|
# identifier or an alias.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Identifier of the teacher to delete. The identifier can be one of the
|
||||||
|
# following: * the numeric identifier for the user * the email 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::ClassroomV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:delete, 'v1/courses/{courseId}/teachers/{userId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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. This method returns the following error codes: * `NOT_FOUND` if the
|
||||||
|
# course does not exist. * `PERMISSION_DENIED` for access errors.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course. This identifier can be either 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 value returned from a previous list call, indicating that the
|
||||||
|
# subsequent page of results should be returned. The list request must be
|
||||||
|
# otherwise identical to the one that 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::ClassroomV1::ListTeachersResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:get, 'v1/courses/{courseId}/teachers', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::ListTeachersResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if the requested
|
||||||
|
# course ID does not exist. * `FAILED_PRECONDITION` if the requested user's
|
||||||
|
# account is disabled, for the following request errors: *
|
||||||
|
# CourseMemberLimitReached * CourseNotModifiable *
|
||||||
|
# UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a
|
||||||
|
# student or teacher in the course.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course to create the student in. This identifier can be
|
||||||
|
# either the Classroom-assigned identifier or an alias.
|
||||||
|
# @param [Google::Apis::ClassroomV1::Student] student_object
|
||||||
|
# @param [String] enrollment_code
|
||||||
|
# Enrollment code of the course to create the student in. This code is required
|
||||||
|
# if userId corresponds to the requesting user; it 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::ClassroomV1::Student] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:post, 'v1/courses/{courseId}/students', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::Student::Representation
|
||||||
|
command.request_object = student_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Student::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if no student of this
|
||||||
|
# course has the requested ID or if the course does not exist.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course. This identifier can be either the Classroom-assigned
|
||||||
|
# identifier or an alias.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Identifier of the student to return. The identifier can be one of the
|
||||||
|
# following: * the numeric identifier for the user * the email 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::ClassroomV1::Student] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:get, 'v1/courses/{courseId}/students/{userId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Student::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 or for access errors. * `NOT_FOUND` if no student of
|
||||||
|
# this course has the requested ID or if the course does not exist.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course. This identifier can be either the Classroom-assigned
|
||||||
|
# identifier or an alias.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Identifier of the student to delete. The identifier can be one of the
|
||||||
|
# following: * the numeric identifier for the user * the email 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::ClassroomV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:delete, 'v1/courses/{courseId}/students/{userId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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. This method returns the following error codes: * `NOT_FOUND` if the
|
||||||
|
# course does not exist. * `PERMISSION_DENIED` for access errors.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course. This identifier can be either 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 value returned from a previous list call, indicating that the
|
||||||
|
# subsequent page of results should be returned. The list request must be
|
||||||
|
# otherwise identical to the one that 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::ClassroomV1::ListStudentsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:get, 'v1/courses/{courseId}/students', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::ListStudentsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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
|
||||||
|
|
||||||
|
# Creates an invitation. Only one invitation for a user and course may exist at
|
||||||
|
# a time. Delete and re-create an invitation to make changes. This method
|
||||||
|
# returns the following error codes: * `PERMISSION_DENIED` if the requesting
|
||||||
|
# user is not permitted to create invitations for this course or for access
|
||||||
|
# errors. * `NOT_FOUND` if the course or the user does not exist. * `
|
||||||
|
# FAILED_PRECONDITION` if the requested user's account is disabled or if the
|
||||||
|
# user already has this role or a role with greater permissions. * `
|
||||||
|
# ALREADY_EXISTS` if an invitation for the specified user and course already
|
||||||
|
# exists.
|
||||||
|
# @param [Google::Apis::ClassroomV1::Invitation] invitation_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::ClassroomV1::Invitation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::Invitation]
|
||||||
|
#
|
||||||
|
# @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_invitation(invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/invitations', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::Invitation::Representation
|
||||||
|
command.request_object = invitation_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::Invitation
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns an invitation. This method returns the following error codes: * `
|
||||||
|
# PERMISSION_DENIED` if the requesting user is not permitted to view the
|
||||||
|
# requested invitation or for access errors. * `NOT_FOUND` if no invitation
|
||||||
|
# exists with the requested ID.
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the invitation to return.
|
||||||
|
# @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::ClassroomV1::Invitation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::Invitation]
|
||||||
|
#
|
||||||
|
# @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_invitation(id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/invitations/{id}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::Invitation
|
||||||
|
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
|
||||||
|
|
||||||
|
# Deletes an invitation. This method returns the following error codes: * `
|
||||||
|
# PERMISSION_DENIED` if the requesting user is not permitted to delete the
|
||||||
|
# requested invitation or for access errors. * `NOT_FOUND` if no invitation
|
||||||
|
# exists with the requested ID.
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the invitation 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::ClassroomV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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_invitation(id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/invitations/{id}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 invitations that the requesting user is permitted to view,
|
||||||
|
# restricted to those that match the list request. *Note:* At least one of `
|
||||||
|
# user_id` or `course_id` must be supplied. Both fields can be supplied. This
|
||||||
|
# method returns the following error codes: * `PERMISSION_DENIED` for access
|
||||||
|
# errors.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Restricts returned invitations to those for a specific user. The identifier
|
||||||
|
# can be one of the following: * the numeric identifier for the user * the email
|
||||||
|
# address of the user * the string literal `"me"`, indicating the requesting
|
||||||
|
# user
|
||||||
|
# @param [String] course_id
|
||||||
|
# Restricts returned invitations to those for a course with the specified
|
||||||
|
# identifier.
|
||||||
|
# @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 value returned from a previous list call, indicating that the
|
||||||
|
# subsequent page of results should be returned. The list request must be
|
||||||
|
# otherwise identical to the one that 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::ClassroomV1::ListInvitationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::ListInvitationsResponse]
|
||||||
|
#
|
||||||
|
# @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_invitations(user_id: nil, course_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/invitations', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::ListInvitationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::ListInvitationsResponse
|
||||||
|
command.query['userId'] = user_id unless user_id.nil?
|
||||||
|
command.query['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
|
||||||
|
|
||||||
|
# Accepts an invitation, removing it and adding the invited user to the teachers
|
||||||
|
# or students (as appropriate) of the specified course. Only the invited user
|
||||||
|
# may accept an invitation. This method returns the following error codes: * `
|
||||||
|
# PERMISSION_DENIED` if the requesting user is not permitted to accept the
|
||||||
|
# requested invitation or for access errors. * `FAILED_PRECONDITION` for the
|
||||||
|
# following request errors: * CourseMemberLimitReached * CourseNotModifiable *
|
||||||
|
# CourseTeacherLimitReached * UserGroupsMembershipLimitReached * `NOT_FOUND` if
|
||||||
|
# no invitation exists with the requested ID.
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the invitation to accept.
|
||||||
|
# @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::ClassroomV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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 accept_invitation(id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/invitations/{id}:accept', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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 user profile. This method returns the following error codes: * `
|
||||||
|
# PERMISSION_DENIED` if the requesting user is not permitted to access this user
|
||||||
|
# profile or if no profile exists with the requested ID or for access errors.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Identifier of the profile to return. The identifier can be one of the
|
||||||
|
# following: * the numeric identifier for the user * the email 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::ClassroomV1::UserProfile] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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)
|
||||||
|
command = make_simple_command(:get, 'v1/userProfiles/{userId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::UserProfile::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::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
|
|
@ -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/cloudbilling_v1/service.rb'
|
||||||
|
require 'google/apis/cloudbilling_v1/classes.rb'
|
||||||
|
require 'google/apis/cloudbilling_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google Cloud Billing API
|
||||||
|
#
|
||||||
|
# Retrieves Google Developers Console billing accounts and associates them with
|
||||||
|
# projects.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/billing/
|
||||||
|
module CloudbillingV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20150903'
|
||||||
|
|
||||||
|
# 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,169 @@
|
||||||
|
# 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 CloudbillingV1
|
||||||
|
|
||||||
|
# A billing account in [Google Developers Console](https://console.developers.
|
||||||
|
# google.com/). You can assign a billing account to one or more projects.
|
||||||
|
class BillingAccount
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The resource name of the billing account. The resource name has the form `
|
||||||
|
# billingAccounts/`billing_account_id``. For example, `billingAccounts/012345-
|
||||||
|
# 567890-ABCDEF` would be the resource name for billing account `012345-567890-
|
||||||
|
# ABCDEF`.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# True if the billing account is open, and will therefore be charged for any
|
||||||
|
# usage on associated projects. False if the billing account is closed, and
|
||||||
|
# therefore projects associated with it will be unable to use paid services.
|
||||||
|
# Corresponds to the JSON property `open`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :open
|
||||||
|
alias_method :open?, :open
|
||||||
|
|
||||||
|
# The display name given to the billing account, such as `My Billing Account`.
|
||||||
|
# This name is displayed in the Google Developers Console.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@open = args[:open] unless args[:open].nil?
|
||||||
|
@display_name = args[:display_name] unless args[:display_name].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for `ListBillingAccounts`.
|
||||||
|
class ListBillingAccountsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of billing accounts.
|
||||||
|
# Corresponds to the JSON property `billingAccounts`
|
||||||
|
# @return [Array<Google::Apis::CloudbillingV1::BillingAccount>]
|
||||||
|
attr_accessor :billing_accounts
|
||||||
|
|
||||||
|
# A token to retrieve the next page of results. To retrieve the next page, call `
|
||||||
|
# ListBillingAccounts` again with the `page_token` field set to this value. This
|
||||||
|
# field is empty if there are no more results to retrieve.
|
||||||
|
# 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)
|
||||||
|
@billing_accounts = args[:billing_accounts] unless args[:billing_accounts].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for `ListProjectBillingInfoResponse`.
|
||||||
|
class ListProjectBillingInfoResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of `ProjectBillingInfo` resources representing the projects associated
|
||||||
|
# with the billing account.
|
||||||
|
# Corresponds to the JSON property `projectBillingInfo`
|
||||||
|
# @return [Array<Google::Apis::CloudbillingV1::ProjectBillingInfo>]
|
||||||
|
attr_accessor :project_billing_info
|
||||||
|
|
||||||
|
# A token to retrieve the next page of results. To retrieve the next page, call `
|
||||||
|
# ListProjectBillingInfo` again with the `page_token` field set to this value.
|
||||||
|
# This field is empty if there are no more results to retrieve.
|
||||||
|
# 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)
|
||||||
|
@project_billing_info = args[:project_billing_info] unless args[:project_billing_info].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Encapsulation of billing information for a Developers Console project. A
|
||||||
|
# project has at most one associated billing account at a time (but a billing
|
||||||
|
# account can be assigned to multiple projects).
|
||||||
|
class ProjectBillingInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The resource name for the `ProjectBillingInfo`; has the form `projects/`
|
||||||
|
# project_id`/billingInfo`. For example, the resource name for the billing
|
||||||
|
# information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/
|
||||||
|
# billingInfo`. This field is read-only.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The ID of the project that this `ProjectBillingInfo` represents, such as `
|
||||||
|
# tokyo-rain-123`. This is a convenience field so that you don't need to parse
|
||||||
|
# the `name` field to obtain a project ID. This field is read-only.
|
||||||
|
# Corresponds to the JSON property `projectId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :project_id
|
||||||
|
|
||||||
|
# The resource name of the billing account associated with the project, if any.
|
||||||
|
# For example, `billingAccounts/012345-567890-ABCDEF`.
|
||||||
|
# Corresponds to the JSON property `billingAccountName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :billing_account_name
|
||||||
|
|
||||||
|
# True if the project is associated with an open billing account, to which usage
|
||||||
|
# on the project is charged. False if the project is associated with a closed
|
||||||
|
# billing account, or no billing account at all, and therefore cannot use paid
|
||||||
|
# services. This field is read-only.
|
||||||
|
# Corresponds to the JSON property `billingEnabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :billing_enabled
|
||||||
|
alias_method :billing_enabled?, :billing_enabled
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@project_id = args[:project_id] unless args[:project_id].nil?
|
||||||
|
@billing_account_name = args[:billing_account_name] unless args[:billing_account_name].nil?
|
||||||
|
@billing_enabled = args[:billing_enabled] unless args[:billing_enabled].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,79 @@
|
||||||
|
# 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 CloudbillingV1
|
||||||
|
|
||||||
|
class BillingAccount
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBillingAccountsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListProjectBillingInfoResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ProjectBillingInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BillingAccount
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :open, as: 'open'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBillingAccountsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :billing_accounts, as: 'billingAccounts', class: Google::Apis::CloudbillingV1::BillingAccount, decorator: Google::Apis::CloudbillingV1::BillingAccount::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListProjectBillingInfoResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :project_billing_info, as: 'projectBillingInfo', class: Google::Apis::CloudbillingV1::ProjectBillingInfo, decorator: Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ProjectBillingInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :billing_account_name, as: 'billingAccountName'
|
||||||
|
property :billing_enabled, as: 'billingEnabled'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,258 @@
|
||||||
|
# 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 CloudbillingV1
|
||||||
|
# Google Cloud Billing API
|
||||||
|
#
|
||||||
|
# Retrieves Google Developers Console billing accounts and associates them with
|
||||||
|
# projects.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/cloudbilling_v1'
|
||||||
|
#
|
||||||
|
# Cloudbilling = Google::Apis::CloudbillingV1 # Alias the module
|
||||||
|
# service = Cloudbilling::CloudbillingService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/billing/
|
||||||
|
class CloudbillingService < 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://cloudbilling.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets information about a billing account. The current authenticated user must
|
||||||
|
# be an [owner of the billing account](https://support.google.com/cloud/answer/
|
||||||
|
# 4430947).
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the billing account to retrieve. For example, `
|
||||||
|
# billingAccounts/012345-567890-ABCDEF`.
|
||||||
|
# @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::CloudbillingV1::BillingAccount] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
||||||
|
#
|
||||||
|
# @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_billing_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists the billing accounts that the current authenticated user [owns](https://
|
||||||
|
# support.google.com/cloud/answer/4430947).
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size. The maximum page size is 100; this is also the default.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results to return. This should be a `
|
||||||
|
# next_page_token` value returned from a previous `ListBillingAccounts` call. If
|
||||||
|
# unspecified, the first page of results is returned.
|
||||||
|
# @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::CloudbillingV1::ListBillingAccountsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::ListBillingAccountsResponse]
|
||||||
|
#
|
||||||
|
# @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_billing_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/billingAccounts', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
# Lists the projects associated with a billing account. The current
|
||||||
|
# authenticated user must be an [owner of the billing account](https://support.
|
||||||
|
# google.com/cloud/answer/4430947).
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the billing account associated with the projects that you
|
||||||
|
# want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size. The maximum page size is 100; this is also the default.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results to be returned. This should be a `
|
||||||
|
# next_page_token` value returned from a previous `ListProjectBillingInfo` call.
|
||||||
|
# If unspecified, the first page of results is returned.
|
||||||
|
# @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::CloudbillingV1::ListProjectBillingInfoResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse]
|
||||||
|
#
|
||||||
|
# @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_billing_account_projects(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/projects', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse
|
||||||
|
command.params['name'] = name unless name.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
|
||||||
|
|
||||||
|
# Gets the billing information for a project. The current authenticated user
|
||||||
|
# must have [permission to view the project](https://cloud.google.com/docs/
|
||||||
|
# permissions-overview#h.bgs0oxofvnoo ).
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the project for which billing information is retrieved.
|
||||||
|
# For example, `projects/tokyo-rain-123`.
|
||||||
|
# @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::CloudbillingV1::ProjectBillingInfo] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::ProjectBillingInfo]
|
||||||
|
#
|
||||||
|
# @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_project_billing_info(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/billingInfo', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::ProjectBillingInfo
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Sets or updates the billing account associated with a project. You specify the
|
||||||
|
# new billing account by setting the `billing_account_name` in the `
|
||||||
|
# ProjectBillingInfo` resource to the resource name of a billing account.
|
||||||
|
# Associating a project with an open billing account enables billing on the
|
||||||
|
# project and allows charges for resource usage. If the project already had a
|
||||||
|
# billing account, this method changes the billing account used for resource
|
||||||
|
# usage charges. *Note:* Incurred charges that have not yet been reported in the
|
||||||
|
# transaction history of the Google Developers Console may be billed to the new
|
||||||
|
# billing account, even if the charge occurred before the new billing account
|
||||||
|
# was assigned to the project. The current authenticated user must have
|
||||||
|
# ownership privileges for both the [project](https://cloud.google.com/docs/
|
||||||
|
# permissions-overview#h.bgs0oxofvnoo ) and the [billing account](https://
|
||||||
|
# support.google.com/cloud/answer/4430947). You can disable billing on the
|
||||||
|
# project by setting the `billing_account_name` field to empty. This action
|
||||||
|
# disassociates the current billing account from the project. Any billable
|
||||||
|
# activity of your in-use services will stop, and your application could stop
|
||||||
|
# functioning as expected. Any unbilled charges to date will be billed to the
|
||||||
|
# previously associated account. The current authenticated user must be either
|
||||||
|
# an owner of the project or an owner of the billing account for the project.
|
||||||
|
# Note that associating a project with a *closed* billing account will have much
|
||||||
|
# the same effect as disabling billing on the project: any paid resources used
|
||||||
|
# by the project will be shut down. Thus, unless you wish to disable billing,
|
||||||
|
# you should always call this method with the name of an *open* billing account.
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the project associated with the billing information that
|
||||||
|
# you want to update. For example, `projects/tokyo-rain-123`.
|
||||||
|
# @param [Google::Apis::CloudbillingV1::ProjectBillingInfo] project_billing_info_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::CloudbillingV1::ProjectBillingInfo] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::ProjectBillingInfo]
|
||||||
|
#
|
||||||
|
# @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_project_billing_info(name, project_billing_info_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v1/{+name}/billingInfo', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
||||||
|
command.request_object = project_billing_info_object
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::ProjectBillingInfo
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
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
|
|
@ -0,0 +1,41 @@
|
||||||
|
# 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/clouddebugger_v2/service.rb'
|
||||||
|
require 'google/apis/clouddebugger_v2/classes.rb'
|
||||||
|
require 'google/apis/clouddebugger_v2/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google Cloud Debugger API
|
||||||
|
#
|
||||||
|
# Lets you examine the stack and variables of your running application without
|
||||||
|
# stopping or slowing it down.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/tools/cloud-debugger
|
||||||
|
module ClouddebuggerV2
|
||||||
|
VERSION = 'V2'
|
||||||
|
REVISION = '20151123'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# Manage cloud debugger
|
||||||
|
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
||||||
|
|
||||||
|
# Manage active breakpoints in cloud debugger
|
||||||
|
AUTH_CLOUD_DEBUGLETCONTROLLER = 'https://www.googleapis.com/auth/cloud_debugletcontroller'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,410 @@
|
||||||
|
# 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 ClouddebuggerV2
|
||||||
|
|
||||||
|
class RegisterDebuggeeRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Debuggee
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StatusMessage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FormatMessage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudRepoSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepoId
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ProjectRepoId
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AliasContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceId
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GerritSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GitSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ExtendedSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListActiveBreakpointsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Breakpoint
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceLocation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackFrame
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Variable
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateActiveBreakpointRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateActiveBreakpointResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SetBreakpointResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetBreakpointResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBreakpointsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDebuggeesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Debuggee
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :project, as: 'project'
|
||||||
|
property :uniquifier, as: 'uniquifier'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :is_inactive, as: 'isInactive'
|
||||||
|
property :agent_version, as: 'agentVersion'
|
||||||
|
property :is_disabled, as: 'isDisabled'
|
||||||
|
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||||
|
|
||||||
|
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
||||||
|
|
||||||
|
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
|
||||||
|
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StatusMessage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :is_error, as: 'isError'
|
||||||
|
property :refers_to, as: 'refersTo'
|
||||||
|
property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FormatMessage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :format, as: 'format'
|
||||||
|
collection :parameters, as: 'parameters'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
|
||||||
|
|
||||||
|
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
|
||||||
|
|
||||||
|
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
|
||||||
|
|
||||||
|
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudRepoSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
||||||
|
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
property :alias_name, as: 'aliasName'
|
||||||
|
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepoId
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation
|
||||||
|
|
||||||
|
property :uid, as: 'uid'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ProjectRepoId
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :repo_name, as: 'repoName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AliasContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
|
||||||
|
|
||||||
|
property :snapshot_id, as: 'snapshotId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceId
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GerritSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :host_uri, as: 'hostUri'
|
||||||
|
property :gerrit_project, as: 'gerritProject'
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
property :alias_name, as: 'aliasName'
|
||||||
|
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GitSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :url, as: 'url'
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ExtendedSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
||||||
|
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListActiveBreakpointsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
property :next_wait_token, as: 'nextWaitToken'
|
||||||
|
property :wait_expired, as: 'waitExpired'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Breakpoint
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :action, as: 'action'
|
||||||
|
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
||||||
|
|
||||||
|
property :condition, as: 'condition'
|
||||||
|
collection :expressions, as: 'expressions'
|
||||||
|
property :log_message_format, as: 'logMessageFormat'
|
||||||
|
property :log_level, as: 'logLevel'
|
||||||
|
property :is_final_state, as: 'isFinalState'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :final_time, as: 'finalTime'
|
||||||
|
property :user_email, as: 'userEmail'
|
||||||
|
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||||
|
|
||||||
|
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
|
||||||
|
|
||||||
|
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
|
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceLocation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :path, as: 'path'
|
||||||
|
property :line, as: 'line'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackFrame
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :function, as: 'function'
|
||||||
|
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
||||||
|
|
||||||
|
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
|
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Variable
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :value, as: 'value'
|
||||||
|
property :type, as: 'type'
|
||||||
|
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
|
property :var_table_index, as: 'varTableIndex'
|
||||||
|
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateActiveBreakpointRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateActiveBreakpointResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SetBreakpointResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetBreakpointResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBreakpointsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
property :next_wait_token, as: 'nextWaitToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDebuggeesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,370 @@
|
||||||
|
# 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 ClouddebuggerV2
|
||||||
|
# Google Cloud Debugger API
|
||||||
|
#
|
||||||
|
# Lets you examine the stack and variables of your running application without
|
||||||
|
# stopping or slowing it down.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/clouddebugger_v2'
|
||||||
|
#
|
||||||
|
# Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module
|
||||||
|
# service = Clouddebugger::ClouddebuggerService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/tools/cloud-debugger
|
||||||
|
class ClouddebuggerService < 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://clouddebugger.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Registers the debuggee with the controller service. All agents attached to the
|
||||||
|
# same application should call this method with the same request content to get
|
||||||
|
# back the same stable `debuggee_id`. Agents should call this method again
|
||||||
|
# whenever `google.rpc.Code.NOT_FOUND` is returned from any controller method.
|
||||||
|
# This allows the controller service to disable the agent or recover from any
|
||||||
|
# data loss. If the debuggee is disabled by the server, the response will have `
|
||||||
|
# is_disabled` set to `true`.
|
||||||
|
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_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::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse]
|
||||||
|
#
|
||||||
|
# @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 register_debuggee(register_debuggee_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
|
||||||
|
command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
|
||||||
|
command.request_object = register_debuggee_request_object
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns the list of all active breakpoints for the debuggee. The breakpoint
|
||||||
|
# specification (location, condition, and expression fields) is semantically
|
||||||
|
# immutable, although the field values may change. For example, an agent may
|
||||||
|
# update the location line number to reflect the actual line where the
|
||||||
|
# breakpoint was set, but this doesn't change the breakpoint semantics. This
|
||||||
|
# means that an agent does not need to check if a breakpoint has changed when it
|
||||||
|
# encounters the same breakpoint on a successive call. Moreover, an agent should
|
||||||
|
# remember the breakpoints that are completed until the controller removes them
|
||||||
|
# from the active list to avoid setting those breakpoints again.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# Identifies the debuggee.
|
||||||
|
# @param [String] wait_token
|
||||||
|
# A wait token that, if specified, blocks the method call until the list of
|
||||||
|
# active breakpoints has changed, or a server selected timeout has expired. The
|
||||||
|
# value should be set from the last returned response.
|
||||||
|
# @param [Boolean] success_on_timeout
|
||||||
|
# If set to `true`, returns `google.rpc.Code.OK` status and sets the `
|
||||||
|
# wait_expired` response field to `true` when the server-selected timeout has
|
||||||
|
# expired (recommended). If set to `false`, returns `google.rpc.Code.ABORTED`
|
||||||
|
# status when the server-selected timeout has expired (deprecated).
|
||||||
|
# @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::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
|
||||||
|
#
|
||||||
|
# @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_controller_debuggee_breakpoints(debuggee_id, wait_token: nil, success_on_timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.query['waitToken'] = wait_token unless wait_token.nil?
|
||||||
|
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.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 the breakpoint state or mutable fields. The entire Breakpoint message
|
||||||
|
# must be sent back to the controller service. Updates to active breakpoint
|
||||||
|
# fields are only allowed if the new value does not change the breakpoint
|
||||||
|
# specification. Updates to the `location`, `condition` and `expression` fields
|
||||||
|
# should not alter the breakpoint semantics. These may only make changes such as
|
||||||
|
# canonicalizing a value or snapping the location to the correct line of code.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# Identifies the debuggee being debugged.
|
||||||
|
# @param [String] id
|
||||||
|
# Breakpoint identifier, unique in the scope of the debuggee.
|
||||||
|
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_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::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
|
||||||
|
#
|
||||||
|
# @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_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
|
||||||
|
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
|
||||||
|
command.request_object = update_active_breakpoint_request_object
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
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
|
||||||
|
|
||||||
|
# Lists all the debuggees that the user can set breakpoints to.
|
||||||
|
# @param [String] project
|
||||||
|
# Project number of a Google Cloud project whose debuggees to list.
|
||||||
|
# @param [Boolean] include_inactive
|
||||||
|
# When set to `true`, the result includes all debuggees. Otherwise, the result
|
||||||
|
# includes only debuggees that are active.
|
||||||
|
# @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::ClouddebuggerV2::ListDebuggeesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse]
|
||||||
|
#
|
||||||
|
# @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_debugger_debuggees(project: nil, include_inactive: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/debugger/debuggees', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
|
||||||
|
command.query['project'] = project unless project.nil?
|
||||||
|
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Sets the breakpoint to the debuggee.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# ID of the debuggee where the breakpoint is to be set.
|
||||||
|
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_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::ClouddebuggerV2::SetBreakpointResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
|
||||||
|
#
|
||||||
|
# @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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
|
||||||
|
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
command.request_object = breakpoint_object
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_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
|
||||||
|
|
||||||
|
# Gets breakpoint information.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# ID of the debuggee whose breakpoint to get.
|
||||||
|
# @param [String] breakpoint_id
|
||||||
|
# ID of the breakpoint to get.
|
||||||
|
# @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::ClouddebuggerV2::GetBreakpointResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse]
|
||||||
|
#
|
||||||
|
# @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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.params['breakpointId'] = breakpoint_id unless breakpoint_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 breakpoint from the debuggee.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# ID of the debuggee whose breakpoint to delete.
|
||||||
|
# @param [String] breakpoint_id
|
||||||
|
# ID of the breakpoint 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::ClouddebuggerV2::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::Empty
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.params['breakpointId'] = breakpoint_id unless breakpoint_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 breakpoints for the debuggee.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# ID of the debuggee whose breakpoints to list.
|
||||||
|
# @param [Boolean] include_all_users
|
||||||
|
# When set to `true`, the response includes the list of breakpoints set by any
|
||||||
|
# user. Otherwise, it includes only breakpoints set by the caller.
|
||||||
|
# @param [Boolean] include_inactive
|
||||||
|
# When set to `true`, the response includes active and inactive breakpoints.
|
||||||
|
# Otherwise, it includes only active breakpoints.
|
||||||
|
# @param [String] action_value
|
||||||
|
# Only breakpoints with the specified action will pass the filter.
|
||||||
|
# @param [Boolean] strip_results
|
||||||
|
# When set to `true`, the response breakpoints are stripped of the results
|
||||||
|
# fields: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
||||||
|
# @param [String] wait_token
|
||||||
|
# A wait token that, if specified, blocks the call until the breakpoints list
|
||||||
|
# has changed, or a server selected timeout has expired. The value should be set
|
||||||
|
# from the last response. The error code `google.rpc.Code.ABORTED` (RPC) is
|
||||||
|
# returned on wait timeout, which should be called again with the same `
|
||||||
|
# wait_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::ClouddebuggerV2::ListBreakpointsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse]
|
||||||
|
#
|
||||||
|
# @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_debugger_debuggee_breakpoints(debuggee_id, include_all_users: nil, include_inactive: nil, action_value: nil, strip_results: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
|
||||||
|
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
||||||
|
command.query['action.value'] = action_value unless action_value.nil?
|
||||||
|
command.query['stripResults'] = strip_results unless strip_results.nil?
|
||||||
|
command.query['waitToken'] = wait_token unless wait_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
|
||||||
|
|
||||||
|
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,7 @@ module Google
|
||||||
# @see https://cloud.google.com/monitoring/v2beta2/
|
# @see https://cloud.google.com/monitoring/v2beta2/
|
||||||
module CloudmonitoringV2beta2
|
module CloudmonitoringV2beta2
|
||||||
VERSION = 'V2beta2'
|
VERSION = 'V2beta2'
|
||||||
REVISION = '20150727'
|
REVISION = '20151130'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -79,8 +79,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_metric_descriptor(project, metric_descriptor_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def create_metric_descriptor(project, metric_descriptor_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/metricDescriptors'
|
command = make_simple_command(:post, '{project}/metricDescriptors', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
|
||||||
command.request_object = metric_descriptor_object
|
command.request_object = metric_descriptor_object
|
||||||
command.response_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
|
||||||
|
@ -119,8 +118,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_metric_descriptor(project, metric, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def delete_metric_descriptor(project, metric, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/metricDescriptors/{metric}'
|
command = make_simple_command(:delete, '{project}/metricDescriptors/{metric}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse::Representation
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse
|
command.response_class = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -175,8 +173,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_metric_descriptors(project, list_metric_descriptors_request_object = nil, count: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_metric_descriptors(project, list_metric_descriptors_request_object = nil, count: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/metricDescriptors'
|
command = make_simple_command(:get, '{project}/metricDescriptors', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsRequest::Representation
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsRequest::Representation
|
||||||
command.request_object = list_metric_descriptors_request_object
|
command.request_object = list_metric_descriptors_request_object
|
||||||
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse::Representation
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse::Representation
|
||||||
|
@ -273,8 +270,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_timeseries(project, metric, youngest, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_timeseries(project, metric, youngest, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/timeseries/{metric}'
|
command = make_simple_command(:get, '{project}/timeseries/{metric}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest::Representation
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest::Representation
|
||||||
command.request_object = list_timeseries_request_object
|
command.request_object = list_timeseries_request_object
|
||||||
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse::Representation
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse::Representation
|
||||||
|
@ -328,8 +324,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def write_timeseries(project, write_timeseries_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def write_timeseries(project, write_timeseries_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/timeseries:write'
|
command = make_simple_command(:post, '{project}/timeseries:write', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest::Representation
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest::Representation
|
||||||
command.request_object = write_timeseries_request_object
|
command.request_object = write_timeseries_request_object
|
||||||
command.response_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesResponse::Representation
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesResponse::Representation
|
||||||
|
@ -423,8 +418,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_timeseries_descriptors(project, metric, youngest, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_timeseries_descriptors(project, metric, youngest, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = '{project}/timeseriesDescriptors/{metric}'
|
command = make_simple_command(:get, '{project}/timeseriesDescriptors/{metric}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest::Representation
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest::Representation
|
||||||
command.request_object = list_timeseries_descriptors_request_object
|
command.request_object = list_timeseries_descriptors_request_object
|
||||||
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse::Representation
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse::Representation
|
||||||
|
|
|
@ -26,10 +26,13 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1beta1
|
module CloudresourcemanagerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20150729'
|
REVISION = '20151117'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# View your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -44,10 +44,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :lifecycle_state
|
attr_accessor :lifecycle_state
|
||||||
|
|
||||||
# The user-assigned name of the project. This field is optional and can remain
|
# The user-assigned name of the project. It must be 4 to 30 characters. Allowed
|
||||||
# unset. Allowed characters are: lowercase and uppercase letters, numbers,
|
# characters are: lowercase and uppercase letters, numbers, hyphen, single-quote,
|
||||||
# hyphen, single-quote, double-quote, space, and exclamation point. Example: My
|
# double-quote, space, and exclamation point. Example: My Project Read-write.
|
||||||
# Project Read-write.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -69,6 +68,14 @@ module Google
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
|
||||||
|
# A container to reference an id for any resource type. A 'resource' in Google
|
||||||
|
# Cloud Platform is a generic term for something you (a developer) may want to
|
||||||
|
# interact with through one of our API's. Some examples are an AppEngine app, a
|
||||||
|
# Compute Engine instance, Cloud SQL database, ...
|
||||||
|
# Corresponds to the JSON property `parent`
|
||||||
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
||||||
|
attr_accessor :parent
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -81,14 +88,43 @@ module Google
|
||||||
@name = args[:name] unless args[:name].nil?
|
@name = args[:name] unless args[:name].nil?
|
||||||
@create_time = args[:create_time] unless args[:create_time].nil?
|
@create_time = args[:create_time] unless args[:create_time].nil?
|
||||||
@labels = args[:labels] unless args[:labels].nil?
|
@labels = args[:labels] unless args[:labels].nil?
|
||||||
|
@parent = args[:parent] unless args[:parent].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A page of the response received from the [ListProjects][google.
|
# A container to reference an id for any resource type. A 'resource' in Google
|
||||||
# cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] method.
|
# Cloud Platform is a generic term for something you (a developer) may want to
|
||||||
# A paginated response where more pages are available has `next_page_token` set.
|
# interact with through one of our API's. Some examples are an AppEngine app, a
|
||||||
# This token can be used in a subsequent request to retrieve the next request
|
# Compute Engine instance, Cloud SQL database, ...
|
||||||
# page.
|
class ResourceId
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required field representing the resource type this id is for. At present, the
|
||||||
|
# only valid type is "organization".
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
# Required field for the type-specific id. This should correspond to the id used
|
||||||
|
# in the type-specific API's.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@type = args[:type] unless args[:type].nil?
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A page of the response received from the 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
|
class ListProjectsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -102,8 +138,7 @@ module Google
|
||||||
# Feeding this value into a new list request with the `page_token` parameter
|
# Feeding this value into a new list request with the `page_token` parameter
|
||||||
# gives the next page of the results. When `next_page_token` is not filled in,
|
# gives the next page of the results. When `next_page_token` is not filled in,
|
||||||
# there is no next page and the list returned is the last page in the result set.
|
# there is no next page and the list returned is the last page in the result set.
|
||||||
# Pagination tokens have a limited lifetime. Note: pagination is not yet
|
# Pagination tokens have a limited lifetime.
|
||||||
# supported; the server will not set this field.
|
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
@ -149,41 +184,39 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# # Overview The `Policy` defines an access control policy language. It is used
|
# Defines an Identity and Access Management (IAM) policy. It is used to specify
|
||||||
# to define policies that are attached to resources like files, folders, VMs,
|
# access control policies for Cloud Platform resources. A `Policy` consists of a
|
||||||
# etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
|
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
|
||||||
# binds a set of members to a role, where the members include user accounts,
|
# the members can be user accounts, Google groups, Google domains, and service
|
||||||
# user groups, user domains, and service accounts. A 'role' is a named set of
|
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
|
||||||
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
|
||||||
# permission check first determines the roles that include the specified
|
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
|
||||||
# permission, and then determines if the principal specified is a member of a
|
# appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
|
||||||
# binding to at least one of these roles. The membership check is recursive when
|
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
|
||||||
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
# IAM developer's guide](https://cloud.google.com/iam).
|
||||||
# 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
|
class Policy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The policy language version. The version of the policy is represented by the
|
# Version of the `Policy`. The default version is 0. 0 =
|
||||||
# etag. The default version is 0.
|
# resourcemanager_projects only support legacy roles. 1 = supports non-legacy
|
||||||
|
# roles 2 = supports AuditConfig
|
||||||
# Corresponds to the JSON property `version`
|
# Corresponds to the JSON property `version`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :version
|
attr_accessor :version
|
||||||
|
|
||||||
# It is an error to specify multiple bindings for the same role. It is an error
|
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
|
||||||
# to specify a binding with no members.
|
# specified for the same `role`. `bindings` with no members will result in an
|
||||||
|
# error.
|
||||||
# Corresponds to the JSON property `bindings`
|
# Corresponds to the JSON property `bindings`
|
||||||
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
||||||
attr_accessor :bindings
|
attr_accessor :bindings
|
||||||
|
|
||||||
#
|
# The etag is used for optimistic concurrency control as a way to help prevent
|
||||||
# Corresponds to the JSON property `rules`
|
# simultaneous updates of a policy from overwriting each other. It is strongly
|
||||||
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Rule>]
|
# suggested that systems make use of the etag in the read-modify-write cycle to
|
||||||
attr_accessor :rules
|
# perform policy updates in order to avoid race conditions. If no etag is
|
||||||
|
# provided in the call to SetIamPolicy, then the existing policy is overwritten
|
||||||
# Can be used to perform a read-modify-write.
|
# blindly.
|
||||||
# Corresponds to the JSON property `etag`
|
# Corresponds to the JSON property `etag`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :etag
|
attr_accessor :etag
|
||||||
|
@ -196,29 +229,32 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@version = args[:version] unless args[:version].nil?
|
@version = args[:version] unless args[:version].nil?
|
||||||
@bindings = args[:bindings] unless args[:bindings].nil?
|
@bindings = args[:bindings] unless args[:bindings].nil?
|
||||||
@rules = args[:rules] unless args[:rules].nil?
|
|
||||||
@etag = args[:etag] unless args[:etag].nil?
|
@etag = args[:etag] unless args[:etag].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Associates members with roles. See below for allowed formats of members.
|
# Associates `members` with a `role`.
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The name of the role to which the members should be bound. Examples: "roles/
|
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
||||||
# viewer", "roles/editor", "roles/owner". Required
|
# , or `roles/owner`. Required
|
||||||
# Corresponds to the JSON property `role`
|
# Corresponds to the JSON property `role`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :role
|
attr_accessor :role
|
||||||
|
|
||||||
# Format of member entries: 1. allUsers Matches any requesting principal (users,
|
# Specifies the identities requesting access for a Cloud Platform resource. `
|
||||||
# service accounts or anonymous). 2. allAuthenticatedUsers Matches any
|
# members` can have the following formats: * `allUsers`: A special identifier
|
||||||
# requesting authenticated principal (users or service accounts). 3. user:`
|
# that represents anyone who is on the internet; with or without a Google
|
||||||
# emailid` A google user account using an email address. For example alice@gmail.
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
||||||
# com, joe@example.com 4. serviceAccount:`emailid` An service account email. 5.
|
# anyone who is authenticated with a Google account or a service account. * `
|
||||||
# group:`emailid` A google group with an email address. For example auth-ti-
|
# user:`emailid``: An email address that represents a specific Google account.
|
||||||
# cloud@google.com 6. domain:`domain` A Google Apps domain name. For example
|
# For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
|
||||||
# google.com, example.com
|
# emailid``: An email address that represents a service account. For example, `
|
||||||
|
# my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
|
||||||
|
# address that represents a Google group. For example, `admins@example.com`. * `
|
||||||
|
# domain:`domain``: A Google Apps domain name that represents all the users of
|
||||||
|
# that domain. For example, `google.com` or `example.com`.
|
||||||
# Corresponds to the JSON property `members`
|
# Corresponds to the JSON property `members`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :members
|
attr_accessor :members
|
||||||
|
@ -234,227 +270,20 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A rule to be applied in a Policy.
|
|
||||||
class Rule
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Human-readable description of the rule.
|
|
||||||
# Corresponds to the JSON property `description`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :description
|
|
||||||
|
|
||||||
# A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value
|
|
||||||
# of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.
|
|
||||||
# *') matches all verbs.
|
|
||||||
# Corresponds to the JSON property `permissions`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :permissions
|
|
||||||
|
|
||||||
# Required
|
|
||||||
# Corresponds to the JSON property `action`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :action
|
|
||||||
|
|
||||||
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries.
|
|
||||||
# Corresponds to the JSON property `in`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :in
|
|
||||||
|
|
||||||
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of
|
|
||||||
# entries. The formation for in and not_in entries is the same as members in a
|
|
||||||
# Binding above.
|
|
||||||
# Corresponds to the JSON property `notIn`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :not_in
|
|
||||||
|
|
||||||
# Additional restrictions that must be met
|
|
||||||
# Corresponds to the JSON property `conditions`
|
|
||||||
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Condition>]
|
|
||||||
attr_accessor :conditions
|
|
||||||
|
|
||||||
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
|
||||||
# that match the LOG action.
|
|
||||||
# Corresponds to the JSON property `logConfig`
|
|
||||||
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::LogConfig>]
|
|
||||||
attr_accessor :log_config
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@description = args[:description] unless args[:description].nil?
|
|
||||||
@permissions = args[:permissions] unless args[:permissions].nil?
|
|
||||||
@action = args[:action] unless args[:action].nil?
|
|
||||||
@in = args[:in] unless args[:in].nil?
|
|
||||||
@not_in = args[:not_in] unless args[:not_in].nil?
|
|
||||||
@conditions = args[:conditions] unless args[:conditions].nil?
|
|
||||||
@log_config = args[:log_config] unless args[:log_config].nil?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A condition to be met.
|
|
||||||
class Condition
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Trusted attributes supplied by the IAM system.
|
|
||||||
# Corresponds to the JSON property `iam`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :iam
|
|
||||||
|
|
||||||
# Trusted attributes supplied by any service that owns resources and uses the
|
|
||||||
# IAM system for access control.
|
|
||||||
# Corresponds to the JSON property `sys`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :sys
|
|
||||||
|
|
||||||
# Trusted attributes discharged by the service.
|
|
||||||
# Corresponds to the JSON property `svc`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :svc
|
|
||||||
|
|
||||||
# An operator to apply the subject with.
|
|
||||||
# Corresponds to the JSON property `op`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :op
|
|
||||||
|
|
||||||
# The object of the condition. Exactly one of these must be set.
|
|
||||||
# Corresponds to the JSON property `value`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :value
|
|
||||||
|
|
||||||
# The objects of the condition. This is mutually exclusive with 'value'.
|
|
||||||
# Corresponds to the JSON property `values`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :values
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@iam = args[:iam] unless args[:iam].nil?
|
|
||||||
@sys = args[:sys] unless args[:sys].nil?
|
|
||||||
@svc = args[:svc] unless args[:svc].nil?
|
|
||||||
@op = args[:op] unless args[:op].nil?
|
|
||||||
@value = args[:value] unless args[:value].nil?
|
|
||||||
@values = args[:values] unless args[:values].nil?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Specifies what kind of log the caller must write Increment a streamz counter
|
|
||||||
# with the specified metric and field names. Metric names should start with a '/'
|
|
||||||
# , generally be lowercase-only, and end in "_count". Field names should not
|
|
||||||
# contain an initial slash. The actual exported metric names will have "/iam/
|
|
||||||
# policy" prepended. Field names correspond to IAM request parameters and field
|
|
||||||
# values are their respective values. At present only "iam_principal",
|
|
||||||
# corresponding to IAMContext.principal, is supported. Examples: counter `
|
|
||||||
# metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter /
|
|
||||||
# iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext.
|
|
||||||
# principal]` At this time we do not support: * multiple field names (though
|
|
||||||
# this may be supported in the future) * decrementing the counter * incrementing
|
|
||||||
# it by anything other than 1
|
|
||||||
class LogConfig
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Options for counters
|
|
||||||
# Corresponds to the JSON property `counter`
|
|
||||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::CounterOptions]
|
|
||||||
attr_accessor :counter
|
|
||||||
|
|
||||||
# Write a Data Access (Gin) log
|
|
||||||
# Corresponds to the JSON property `dataAccess`
|
|
||||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions]
|
|
||||||
attr_accessor :data_access
|
|
||||||
|
|
||||||
# Write a Cloud Audit log
|
|
||||||
# Corresponds to the JSON property `cloudAudit`
|
|
||||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions]
|
|
||||||
attr_accessor :cloud_audit
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@counter = args[:counter] unless args[:counter].nil?
|
|
||||||
@data_access = args[:data_access] unless args[:data_access].nil?
|
|
||||||
@cloud_audit = args[:cloud_audit] unless args[:cloud_audit].nil?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Options for counters
|
|
||||||
class CounterOptions
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The metric to update.
|
|
||||||
# Corresponds to the JSON property `metric`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :metric
|
|
||||||
|
|
||||||
# The field value to attribute.
|
|
||||||
# Corresponds to the JSON property `field`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :field
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@metric = args[:metric] unless args[:metric].nil?
|
|
||||||
@field = args[:field] unless args[:field].nil?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Write a Data Access (Gin) log
|
|
||||||
class DataAccessOptions
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Write a Cloud Audit log
|
|
||||||
class CloudAuditOptions
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Request message for `SetIamPolicy` method.
|
# Request message for `SetIamPolicy` method.
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# # Overview The `Policy` defines an access control policy language. It is used
|
# Defines an Identity and Access Management (IAM) policy. It is used to specify
|
||||||
# to define policies that are attached to resources like files, folders, VMs,
|
# access control policies for Cloud Platform resources. A `Policy` consists of a
|
||||||
# etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
|
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
|
||||||
# binds a set of members to a role, where the members include user accounts,
|
# the members can be user accounts, Google groups, Google domains, and service
|
||||||
# user groups, user domains, and service accounts. A 'role' is a named set of
|
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
|
||||||
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
|
||||||
# permission check first determines the roles that include the specified
|
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
|
||||||
# permission, and then determines if the principal specified is a member of a
|
# appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
|
||||||
# binding to at least one of these roles. The membership check is recursive when
|
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
|
||||||
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
# IAM developer's guide](https://cloud.google.com/iam).
|
||||||
# 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`
|
# Corresponds to the JSON property `policy`
|
||||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
||||||
attr_accessor :policy
|
attr_accessor :policy
|
||||||
|
@ -473,7 +302,7 @@ module Google
|
||||||
class TestIamPermissionsRequest
|
class TestIamPermissionsRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The set of permissions to check for the 'resource'. Permissions with wildcards
|
# The set of permissions to check for the `resource`. Permissions with wildcards
|
||||||
# (such as '*' or 'storage.*') are not allowed.
|
# (such as '*' or 'storage.*') are not allowed.
|
||||||
# Corresponds to the JSON property `permissions`
|
# Corresponds to the JSON property `permissions`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
|
@ -507,6 +336,101 @@ module Google
|
||||||
@permissions = args[:permissions] unless args[:permissions].nil?
|
@permissions = args[:permissions] unless args[:permissions].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The response returned from the ListOrganizations method.
|
||||||
|
class ListOrganizationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of Organizations that matched the list query, possibly paginated.
|
||||||
|
# Corresponds to the JSON property `organizations`
|
||||||
|
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
|
||||||
|
attr_accessor :organizations
|
||||||
|
|
||||||
|
# A pagination token to be used to retrieve the next page of results. If the
|
||||||
|
# result is too large to fit within the page size specified in the request, this
|
||||||
|
# field will be set with a token that can be used to fetch the next page of
|
||||||
|
# results. If this field is empty, it indicates that this response contains the
|
||||||
|
# last page of results.
|
||||||
|
# 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)
|
||||||
|
@organizations = args[:organizations] unless args[:organizations].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The root node in the resource hierarchy to which a particular entity's (e.g.,
|
||||||
|
# company) resources belong.
|
||||||
|
class Organization
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# An immutable id for the Organization that is assigned on creation. This should
|
||||||
|
# be omitted when creating a new Organization. This field is read-only.
|
||||||
|
# Corresponds to the JSON property `organizationId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :organization_id
|
||||||
|
|
||||||
|
# A friendly string to be used to refer to the Organization in the UI. This
|
||||||
|
# field is required.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# The entity that owns an Organization. The lifetime of the Organization and all
|
||||||
|
# of its descendants are bound to the OrganizationOwner. If the
|
||||||
|
# OrganizationOwner is deleted, the Organization and all its descendants will be
|
||||||
|
# deleted.
|
||||||
|
# Corresponds to the JSON property `owner`
|
||||||
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
|
||||||
|
attr_accessor :owner
|
||||||
|
|
||||||
|
# Timestamp when the Organization was created. Assigned by the server. @
|
||||||
|
# OutputOnly
|
||||||
|
# Corresponds to the JSON property `creationTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :creation_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@organization_id = args[:organization_id] unless args[:organization_id].nil?
|
||||||
|
@display_name = args[:display_name] unless args[:display_name].nil?
|
||||||
|
@owner = args[:owner] unless args[:owner].nil?
|
||||||
|
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The entity that owns an Organization. The lifetime of the Organization and all
|
||||||
|
# of its descendants are bound to the OrganizationOwner. If the
|
||||||
|
# OrganizationOwner is deleted, the Organization and all its descendants will be
|
||||||
|
# deleted.
|
||||||
|
class OrganizationOwner
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The Google for Work customer id used in the Directory API.
|
||||||
|
# Corresponds to the JSON property `directoryCustomerId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :directory_customer_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@directory_customer_id = args[:directory_customer_id] unless args[:directory_customer_id].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,6 +26,10 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ResourceId
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class ListProjectsResponse
|
class ListProjectsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -46,30 +50,6 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Rule
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Condition
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class LogConfig
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CounterOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DataAccessOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CloudAuditOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -82,6 +62,18 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListOrganizationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Organization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrganizationOwner
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Project
|
class Project
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -91,6 +83,16 @@ module Google
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :create_time, as: 'createTime'
|
property :create_time, as: 'createTime'
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
|
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ResourceId
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :id, as: 'id'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -121,8 +123,6 @@ module Google
|
||||||
property :version, as: 'version'
|
property :version, as: 'version'
|
||||||
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
|
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
|
||||||
|
|
||||||
collection :rules, as: 'rules', class: Google::Apis::CloudresourcemanagerV1beta1::Rule, decorator: Google::Apis::CloudresourcemanagerV1beta1::Rule::Representation
|
|
||||||
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
property :etag, :base64 => true, as: 'etag'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -135,65 +135,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Rule
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :description, as: 'description'
|
|
||||||
collection :permissions, as: 'permissions'
|
|
||||||
property :action, as: 'action'
|
|
||||||
collection :in, as: 'in'
|
|
||||||
collection :not_in, as: 'notIn'
|
|
||||||
collection :conditions, as: 'conditions', class: Google::Apis::CloudresourcemanagerV1beta1::Condition, decorator: Google::Apis::CloudresourcemanagerV1beta1::Condition::Representation
|
|
||||||
|
|
||||||
collection :log_config, as: 'logConfig', class: Google::Apis::CloudresourcemanagerV1beta1::LogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::LogConfig::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Condition
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :iam, as: 'iam'
|
|
||||||
property :sys, as: 'sys'
|
|
||||||
property :svc, as: 'svc'
|
|
||||||
property :op, as: 'op'
|
|
||||||
property :value, as: 'value'
|
|
||||||
collection :values, as: 'values'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class LogConfig
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :counter, as: 'counter', class: Google::Apis::CloudresourcemanagerV1beta1::CounterOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::CounterOptions::Representation
|
|
||||||
|
|
||||||
property :data_access, as: 'dataAccess', class: Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions::Representation
|
|
||||||
|
|
||||||
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CounterOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :metric, as: 'metric'
|
|
||||||
property :field, as: 'field'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DataAccessOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CloudAuditOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -215,6 +156,33 @@ module Google
|
||||||
collection :permissions, as: 'permissions'
|
collection :permissions, as: 'permissions'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListOrganizationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Organization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :organization_id, as: 'organizationId'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
|
||||||
|
|
||||||
|
property :creation_time, as: 'creationTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrganizationOwner
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :directory_customer_id, as: 'directoryCustomerId'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -70,8 +70,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects'
|
command = make_simple_command(:post, 'v1beta1/projects', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||||
command.request_object = project_object
|
command.request_object = project_object
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||||
|
@ -86,13 +85,11 @@ module Google
|
||||||
# necessarily appear at the end of the list.
|
# necessarily appear at the end of the list.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# A pagination token returned from a previous call to ListProject that indicates
|
# A pagination token returned from a previous call to ListProject that indicates
|
||||||
# from where listing should continue. Note: pagination is not yet supported; the
|
# from where listing should continue. Optional.
|
||||||
# server ignores this field. Optional.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# The maximum number of Projects to return in the response. The server can
|
# The maximum number of Projects to return in the response. The server can
|
||||||
# return fewer projects than requested. If unspecified, server picks an
|
# return fewer projects than requested. If unspecified, server picks an
|
||||||
# appropriate default. Note: pagination is not yet supported; the server ignores
|
# appropriate default. Optional.
|
||||||
# this field. Optional.
|
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# An expression for filtering the results of the request. Filter rules are case
|
# An expression for filtering the results of the request. Filter rules are case
|
||||||
# insensitive. The fields eligible for filtering are: + `name` + `id` + labels.
|
# insensitive. The fields eligible for filtering are: + `name` + `id` + labels.
|
||||||
|
@ -121,8 +118,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects'
|
command = make_simple_command(:get, 'v1beta1/projects', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
@ -155,8 +151,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects/{projectId}'
|
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -189,8 +184,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects/{projectId}'
|
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||||
command.request_object = project_object
|
command.request_object = project_object
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||||
|
@ -204,24 +198,15 @@ module Google
|
||||||
# Marks the project identified by the specified `project_id` (for example, `my-
|
# Marks the project identified by the specified `project_id` (for example, `my-
|
||||||
# project-123`) for deletion. This method will only affect the project if the
|
# 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
|
# following criteria are met: + The project does not have a billing account
|
||||||
# associated with it. + The project has a lifecycle state of [ACTIVE][google.
|
# associated with it. + The project has a lifecycle state of ACTIVE. This method
|
||||||
# cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method
|
# changes the project's lifecycle state from ACTIVE to DELETE_REQUESTED. The
|
||||||
# changes the project's lifecycle state from [ACTIVE][google.
|
# deletion starts at an unspecified time, at which point the lifecycle state
|
||||||
# cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [
|
# changes to DELETE_IN_PROGRESS. Until the deletion completes, you can check the
|
||||||
# DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.
|
# lifecycle state checked by retrieving the project with GetProject, and the
|
||||||
# DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point
|
# project remains visible to ListProjects. However, you cannot update the
|
||||||
# the lifecycle state changes to [DELETE_IN_PROGRESS] [google.
|
# project. After the deletion completes, the project is not retrievable by the
|
||||||
# cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS].
|
# GetProject and ListProjects methods. The caller must have modify permissions
|
||||||
# Until the deletion completes, you can check the lifecycle state checked by
|
# for this project.
|
||||||
# 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
|
# @param [String] project_id
|
||||||
# The project ID (for example, `foo-bar-123`). Required.
|
# The project ID (for example, `foo-bar-123`). Required.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -242,8 +227,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects/{projectId}'
|
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
||||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -254,11 +238,9 @@ module Google
|
||||||
|
|
||||||
# Restores the project identified by the specified `project_id` (for example, `
|
# 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
|
# my-project-123`). You can only use this method for a project that has a
|
||||||
# lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.
|
# lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by a
|
||||||
# v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated
|
# lifecycle state of DELETE_IN_PROGRESS, the project cannot be restored. The
|
||||||
# by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.
|
# caller must have modify permissions for this project.
|
||||||
# projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be
|
|
||||||
# restored. The caller must have modify permissions for this project.
|
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The project ID (for example, `foo-bar-123`). Required.
|
# The project ID (for example, `foo-bar-123`). Required.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -279,8 +261,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def undelete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
def undelete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects/{projectId}:undelete'
|
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
||||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -291,8 +272,10 @@ module Google
|
||||||
|
|
||||||
# Returns the IAM access control policy for specified project.
|
# Returns the IAM access control policy for specified project.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which policy is being requested. Resource is
|
# REQUIRED: The resource for which policy is being requested. `resource` is
|
||||||
# usually specified as a path, such as, projects/`project`.
|
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
|
||||||
|
# disk``. The format for the path specified in this value is resource specific
|
||||||
|
# and is specified in the documentation for the respective GetIamPolicy rpc.
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -311,9 +294,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects/{resource}:getIamPolicy'
|
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
||||||
command.request_object = get_iam_policy_request_object
|
command.request_object = get_iam_policy_request_object
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||||
|
@ -328,9 +310,10 @@ module Google
|
||||||
# currently support 'domain:' prefixed members in a Binding of a Policy. Calling
|
# currently support 'domain:' prefixed members in a Binding of a Policy. Calling
|
||||||
# this method requires enabling the App Engine Admin API.
|
# this method requires enabling the App Engine Admin API.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which policy is being specified. Resource is
|
# REQUIRED: The resource for which policy is being specified. `resource` is
|
||||||
# usually specified as a path, such as, projects/`project`/zones/`zone`/disks/`
|
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
|
||||||
# disk`.
|
# disk``. The format for the path specified in this value is resource specific
|
||||||
|
# and is specified in the documentation for the respective SetIamPolicy rpc.
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -349,9 +332,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def set_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects/{resource}:setIamPolicy'
|
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
||||||
command.request_object = set_iam_policy_request_object
|
command.request_object = set_iam_policy_request_object
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||||
|
@ -365,8 +347,11 @@ module Google
|
||||||
# Tests the specified permissions against the IAM access control policy for the
|
# Tests the specified permissions against the IAM access control policy for the
|
||||||
# specified project.
|
# specified project.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which policy detail is being requested. Resource is
|
# REQUIRED: The resource for which policy detail is being requested. `resource`
|
||||||
# usually specified as a path, such as, projects/`project`.
|
# is usually specified as a path, such as, `projects/`project`/zones/`zone`/
|
||||||
|
# disks/`disk``. The format for the path specified in this value is resource
|
||||||
|
# specific and is specified in the documentation for the respective
|
||||||
|
# TestIamPermissions rpc.
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -385,9 +370,227 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def test_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
path = 'v1beta1/projects/{resource}:testIamPermissions'
|
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
|
||||||
command = make_simple_command(:post, path, options)
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
||||||
|
command.request_object = test_iam_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
||||||
|
command.params['resource'] = resource unless resource.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Query Organization resources.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The maximum number of Organizations to return in the response. This field is
|
||||||
|
# optional.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A pagination token returned from a previous call to ListOrganizations that
|
||||||
|
# indicates from where listing should continue. This field is optional.
|
||||||
|
# @param [String] filter
|
||||||
|
# An optional query string used to filter the Organizations to be return in the
|
||||||
|
# response. Filter rules are case-insensitive. Organizations may be filtered by `
|
||||||
|
# owner.directoryCustomerId` or by `domain`, where the domain is a Google for
|
||||||
|
# Work domain, for example: |Filter|Description| |------|-----------| |owner.
|
||||||
|
# directorycustomerid:123456789|Organizations with `owner.directory_customer_id`
|
||||||
|
# equal to `123456789`.| |domain:google.com|Organizations corresponding to the
|
||||||
|
# domain `google.com`.| This field is optional.
|
||||||
|
# @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::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
|
||||||
|
#
|
||||||
|
# @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_organizations(page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/organizations', options)
|
||||||
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Fetches an Organization resource by id.
|
||||||
|
# @param [String] organization_id
|
||||||
|
# The id of the Organization resource to fetch.
|
||||||
|
# @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::CloudresourcemanagerV1beta1::Organization] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
|
||||||
|
#
|
||||||
|
# @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_organization(organization_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/organizations/{organizationId}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
||||||
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
||||||
|
command.params['organizationId'] = organization_id unless organization_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 an Organization resource.
|
||||||
|
# @param [String] organization_id
|
||||||
|
# An immutable id for the Organization that is assigned on creation. This should
|
||||||
|
# be omitted when creating a new Organization. This field is read-only.
|
||||||
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_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::CloudresourcemanagerV1beta1::Organization] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
|
||||||
|
#
|
||||||
|
# @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_organization(organization_id, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v1beta1/organizations/{organizationId}', options)
|
||||||
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
||||||
|
command.request_object = organization_object
|
||||||
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
||||||
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
||||||
|
command.params['organizationId'] = organization_id unless organization_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
|
||||||
|
|
||||||
|
# Sets the access control policy on a Organization resource. Replaces any
|
||||||
|
# existing policy.
|
||||||
|
# @param [String] resource
|
||||||
|
# REQUIRED: The resource for which policy is being specified. `resource` is
|
||||||
|
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
|
||||||
|
# disk``. The format for the path specified in this value is resource specific
|
||||||
|
# and is specified in the documentation for the respective SetIamPolicy rpc.
|
||||||
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_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::CloudresourcemanagerV1beta1::Policy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
||||||
|
#
|
||||||
|
# @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_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/organizations/{resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
||||||
|
command.request_object = set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||||
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
||||||
|
command.params['resource'] = resource unless resource.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 access control policy for a Organization resource. May be empty if no
|
||||||
|
# such policy or resource exists.
|
||||||
|
# @param [String] resource
|
||||||
|
# REQUIRED: The resource for which policy is being requested. `resource` is
|
||||||
|
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
|
||||||
|
# disk``. The format for the path specified in this value is resource specific
|
||||||
|
# and is specified in the documentation for the respective GetIamPolicy rpc.
|
||||||
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_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::CloudresourcemanagerV1beta1::Policy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
||||||
|
#
|
||||||
|
# @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_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/organizations/{resource}:getIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
||||||
|
command.request_object = get_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||||
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
||||||
|
command.params['resource'] = resource unless resource.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 permissions that a caller has on the specified Organization.
|
||||||
|
# @param [String] resource
|
||||||
|
# REQUIRED: The resource for which policy detail is being requested. `resource`
|
||||||
|
# is usually specified as a path, such as, `projects/`project`/zones/`zone`/
|
||||||
|
# disks/`disk``. The format for the path specified in this value is resource
|
||||||
|
# specific and is specified in the documentation for the respective
|
||||||
|
# TestIamPermissions rpc.
|
||||||
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @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 test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/organizations/{resource}:testIamPermissions', options)
|
||||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
||||||
command.request_object = test_iam_permissions_request_object
|
command.request_object = test_iam_permissions_request_object
|
||||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
||||||
|
|
|
@ -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/cloudtrace_v1/service.rb'
|
||||||
|
require 'google/apis/cloudtrace_v1/classes.rb'
|
||||||
|
require 'google/apis/cloudtrace_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google Cloud Trace API
|
||||||
|
#
|
||||||
|
# The Google Cloud Trace API provides services for reading and writing runtime
|
||||||
|
# trace data for Cloud applications.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/tools/cloud-trace
|
||||||
|
module CloudtraceV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20150825'
|
||||||
|
|
||||||
|
# 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,184 @@
|
||||||
|
# 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 CloudtraceV1
|
||||||
|
|
||||||
|
# The response message for the ListTraces method.
|
||||||
|
class ListTracesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of trace records returned.
|
||||||
|
# Corresponds to the JSON property `traces`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
||||||
|
attr_accessor :traces
|
||||||
|
|
||||||
|
# If defined, indicates that there are more topics that match the request, and
|
||||||
|
# this value should be passed to the next ListTopicsRequest to continue.
|
||||||
|
# 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)
|
||||||
|
@traces = args[:traces] unless args[:traces].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A Trace is a collection of spans describing the execution timings of a single
|
||||||
|
# operation.
|
||||||
|
class Trace
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The Project ID of the Google Cloud project.
|
||||||
|
# Corresponds to the JSON property `projectId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :project_id
|
||||||
|
|
||||||
|
# A 128-bit numeric value, formatted as a 32-byte hex string, that represents a
|
||||||
|
# trace. Each trace should have an identifier that is globally unique.
|
||||||
|
# Corresponds to the JSON property `traceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :trace_id
|
||||||
|
|
||||||
|
# The collection of span records within this trace. Spans that appear in calls
|
||||||
|
# to PatchTraces may be incomplete or partial.
|
||||||
|
# Corresponds to the JSON property `spans`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
|
||||||
|
attr_accessor :spans
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@project_id = args[:project_id] unless args[:project_id].nil?
|
||||||
|
@trace_id = args[:trace_id] unless args[:trace_id].nil?
|
||||||
|
@spans = args[:spans] unless args[:spans].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A span is the data recorded with a single span.
|
||||||
|
class TraceSpan
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifier of the span within the trace. Each span should have an identifier
|
||||||
|
# that is unique per trace.
|
||||||
|
# Corresponds to the JSON property `spanId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :span_id
|
||||||
|
|
||||||
|
# SpanKind distinguishes spans generated in a particular context. For example,
|
||||||
|
# two spans with the same name, one with the kind RPC_CLIENT, and the other with
|
||||||
|
# RPC_SERVER can indicate the queueing latency associated with the span.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The name of the trace. This is sanitized and displayed on the UI. This may be
|
||||||
|
# a method name or some other per-callsite name. For the same binary and the
|
||||||
|
# same call point, it is a good practice to choose a consistent name in order to
|
||||||
|
# correlate cross-trace spans.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The start time of the span in nanoseconds from the UNIX epoch.
|
||||||
|
# Corresponds to the JSON property `startTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_time
|
||||||
|
|
||||||
|
# The end time of the span in nanoseconds from the UNIX epoch.
|
||||||
|
# Corresponds to the JSON property `endTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :end_time
|
||||||
|
|
||||||
|
# Identifies the parent of the current span. May be missing. Serialized bytes
|
||||||
|
# representation of SpanId.
|
||||||
|
# Corresponds to the JSON property `parentSpanId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :parent_span_id
|
||||||
|
|
||||||
|
# Annotations via labels.
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@span_id = args[:span_id] unless args[:span_id].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@start_time = args[:start_time] unless args[:start_time].nil?
|
||||||
|
@end_time = args[:end_time] unless args[:end_time].nil?
|
||||||
|
@parent_span_id = args[:parent_span_id] unless args[:parent_span_id].nil?
|
||||||
|
@labels = args[:labels] unless args[:labels].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A list of traces for the PatchTraces method.
|
||||||
|
class Traces
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of traces.
|
||||||
|
# Corresponds to the JSON property `traces`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
||||||
|
attr_accessor :traces
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@traces = args[:traces] unless args[:traces].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
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,92 @@
|
||||||
|
# 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 CloudtraceV1
|
||||||
|
|
||||||
|
class ListTracesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Trace
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TraceSpan
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Traces
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTracesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Trace
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :trace_id, as: 'traceId'
|
||||||
|
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TraceSpan
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :span_id, as: 'spanId'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :parent_span_id, as: 'parentSpanId'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Traces
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,226 @@
|
||||||
|
# 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 CloudtraceV1
|
||||||
|
# Google Cloud Trace API
|
||||||
|
#
|
||||||
|
# The Google Cloud Trace API provides services for reading and writing runtime
|
||||||
|
# trace data for Cloud applications.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/cloudtrace_v1'
|
||||||
|
#
|
||||||
|
# Cloudtrace = Google::Apis::CloudtraceV1 # Alias the module
|
||||||
|
# service = Cloudtrace::CloudtraceService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/tools/cloud-trace
|
||||||
|
class CloudtraceService < 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://cloudtrace.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates the existing traces specified by PatchTracesRequest and inserts the
|
||||||
|
# new traces. Any existing trace or span fields included in an update are
|
||||||
|
# overwritten by the update, and any additional fields in an update are merged
|
||||||
|
# with the existing trace data.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The project id of the trace to patch.
|
||||||
|
# @param [Google::Apis::CloudtraceV1::Traces] traces_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::CloudtraceV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudtraceV1::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 patch_project_traces(project_id, traces_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/projects/{projectId}/traces', options)
|
||||||
|
command.request_representation = Google::Apis::CloudtraceV1::Traces::Representation
|
||||||
|
command.request_object = traces_object
|
||||||
|
command.response_representation = Google::Apis::CloudtraceV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::CloudtraceV1::Empty
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# List traces matching the filter expression.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The stringified-version of the project id.
|
||||||
|
# @param [String] view
|
||||||
|
# ViewType specifies the projection of the result.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Maximum number of topics to return. If not specified or <= 0, the
|
||||||
|
# implementation will select a reasonable value. The implemenation may always
|
||||||
|
# return fewer than the requested page_size.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The token identifying the page of results to return from the ListTraces method.
|
||||||
|
# If present, this value is should be taken from the next_page_token field of a
|
||||||
|
# previous ListTracesResponse.
|
||||||
|
# @param [String] start_time
|
||||||
|
# End of the time interval (inclusive).
|
||||||
|
# @param [String] end_time
|
||||||
|
# Start of the time interval (exclusive).
|
||||||
|
# @param [String] filter
|
||||||
|
# An optional filter for the request.
|
||||||
|
# @param [String] order_by
|
||||||
|
# The trace field used to establish the order of traces returned by the
|
||||||
|
# ListTraces method. Possible options are: trace_id name (name field of root
|
||||||
|
# span) duration (different between end_time and start_time fields of root span)
|
||||||
|
# start (start_time field of root span) Descending order can be specified by
|
||||||
|
# appending "desc" to the sort field: name desc Only one sort field is permitted,
|
||||||
|
# though this may change in the future.
|
||||||
|
# @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::CloudtraceV1::ListTracesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudtraceV1::ListTracesResponse]
|
||||||
|
#
|
||||||
|
# @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_project_traces(project_id, view: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, filter: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
|
||||||
|
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['view'] = view unless view.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['startTime'] = start_time unless start_time.nil?
|
||||||
|
command.query['endTime'] = end_time unless end_time.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.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 one trace by id.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The project id of the trace to return.
|
||||||
|
# @param [String] trace_id
|
||||||
|
# The trace id of the trace to return.
|
||||||
|
# @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::CloudtraceV1::Trace] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudtraceV1::Trace]
|
||||||
|
#
|
||||||
|
# @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_project_trace(project_id, trace_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation
|
||||||
|
command.response_class = Google::Apis::CloudtraceV1::Trace
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['traceId'] = trace_id unless trace_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 discovery document in the specified `format`. The typeurl in the
|
||||||
|
# returned google.protobuf.Any value depends on the requested format.
|
||||||
|
# @param [String] format
|
||||||
|
# The format requested for discovery.
|
||||||
|
# @param [Array<String>, String] labels
|
||||||
|
# A list of labels (like visibility) influencing the scope of the requested doc.
|
||||||
|
# @param [String] version
|
||||||
|
# The API version of the requested discovery doc.
|
||||||
|
# @param [Array<String>, String] args
|
||||||
|
# Any additional arguments.
|
||||||
|
# @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 [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @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_discovery(format: nil, labels: nil, version: nil, args: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/discovery', options)
|
||||||
|
command.query['format'] = format unless format.nil?
|
||||||
|
command.query['labels'] = labels unless labels.nil?
|
||||||
|
command.query['version'] = version unless version.nil?
|
||||||
|
command.query['args'] = args unless args.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
|
|
@ -0,0 +1,43 @@
|
||||||
|
# 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/clouduseraccounts_beta/service.rb'
|
||||||
|
require 'google/apis/clouduseraccounts_beta/classes.rb'
|
||||||
|
require 'google/apis/clouduseraccounts_beta/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Cloud User Accounts API
|
||||||
|
#
|
||||||
|
# API for the Google Cloud User Accounts service.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||||
|
module ClouduseraccountsBeta
|
||||||
|
VERSION = 'Beta'
|
||||||
|
REVISION = '20150924'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# View your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||||
|
|
||||||
|
# Manage your Google Cloud User Accounts
|
||||||
|
AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts'
|
||||||
|
|
||||||
|
# View your Google Cloud User Accounts
|
||||||
|
AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,823 @@
|
||||||
|
# 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 ClouduseraccountsBeta
|
||||||
|
|
||||||
|
# A list of authorized public keys for a user account.
|
||||||
|
class AuthorizedKeysView
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] The list of authorized public keys in SSH format.
|
||||||
|
# Corresponds to the JSON property `keys`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :keys
|
||||||
|
|
||||||
|
# [Output Only] Whether the user has the ability to elevate on the instance that
|
||||||
|
# requested the authorized keys.
|
||||||
|
# Corresponds to the JSON property `sudoer`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :sudoer
|
||||||
|
alias_method :sudoer?, :sudoer
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@keys = args[:keys] unless args[:keys].nil?
|
||||||
|
@sudoer = args[:sudoer] unless args[:sudoer].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A Group resource.
|
||||||
|
class Group
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||||
|
# Corresponds to the JSON property `creationTimestamp`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :creation_timestamp
|
||||||
|
|
||||||
|
# An optional textual description of the resource; provided by the client when
|
||||||
|
# the resource is created.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# [Output Only] Type of the resource. Always clouduseraccounts#group for groups.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# [Output Only] A list of URLs to User resources who belong to the group. Users
|
||||||
|
# may only be members of groups in the same project.
|
||||||
|
# Corresponds to the JSON property `members`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :members
|
||||||
|
|
||||||
|
# Name of the resource; provided by the client when the resource is created.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# [Output Only] Server defined URL for the resource.
|
||||||
|
# Corresponds to the JSON property `selfLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :self_link
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
||||||
|
@description = args[:description] unless args[:description].nil?
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@members = args[:members] unless args[:members].nil?
|
||||||
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class GroupList
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# [Output Only] A list of Group resources.
|
||||||
|
# Corresponds to the JSON property `items`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Group>]
|
||||||
|
attr_accessor :items
|
||||||
|
|
||||||
|
# [Output Only] Type of resource. Always clouduseraccounts#groupList for lists
|
||||||
|
# of groups.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# [Output Only] A token used to continue a truncated list request.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# [Output Only] Server defined URL for this resource.
|
||||||
|
# Corresponds to the JSON property `selfLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :self_link
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@items = args[:items] unless args[:items].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class GroupsAddMemberRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Fully-qualified URLs of the User resources to add.
|
||||||
|
# Corresponds to the JSON property `users`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :users
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@users = args[:users] unless args[:users].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class GroupsRemoveMemberRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Fully-qualified URLs of the User resources to remove.
|
||||||
|
# Corresponds to the JSON property `users`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :users
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@users = args[:users] unless args[:users].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A list of all Linux accounts for this project. This API is only used by
|
||||||
|
# Compute Engine virtual machines to get information about user accounts for a
|
||||||
|
# project or instance. Linux resources are read-only views into users and groups
|
||||||
|
# managed by the Compute Engine Accounts API.
|
||||||
|
class LinuxAccountViews
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] A list of all groups within a project.
|
||||||
|
# Corresponds to the JSON property `groupViews`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxGroupView>]
|
||||||
|
attr_accessor :group_views
|
||||||
|
|
||||||
|
# [Output Only] Type of the resource. Always clouduseraccounts#linuxAccountViews
|
||||||
|
# for Linux resources.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# [Output Only] A list of all users within a project.
|
||||||
|
# Corresponds to the JSON property `userViews`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxUserView>]
|
||||||
|
attr_accessor :user_views
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@group_views = args[:group_views] unless args[:group_views].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@user_views = args[:user_views] unless args[:user_views].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class LinuxGetAuthorizedKeysViewResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of authorized public keys for a user account.
|
||||||
|
# Corresponds to the JSON property `resource`
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView]
|
||||||
|
attr_accessor :resource
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@resource = args[:resource] unless args[:resource].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class LinuxGetLinuxAccountViewsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of all Linux accounts for this project. This API is only used by
|
||||||
|
# Compute Engine virtual machines to get information about user accounts for a
|
||||||
|
# project or instance. Linux resources are read-only views into users and groups
|
||||||
|
# managed by the Compute Engine Accounts API.
|
||||||
|
# Corresponds to the JSON property `resource`
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::LinuxAccountViews]
|
||||||
|
attr_accessor :resource
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@resource = args[:resource] unless args[:resource].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A detailed view of a Linux group.
|
||||||
|
class LinuxGroupView
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] The Group ID.
|
||||||
|
# Corresponds to the JSON property `gid`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :gid
|
||||||
|
|
||||||
|
# [Output Only] Group name.
|
||||||
|
# Corresponds to the JSON property `groupName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :group_name
|
||||||
|
|
||||||
|
# [Output Only] List of user accounts that belong to the group.
|
||||||
|
# Corresponds to the JSON property `members`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :members
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@gid = args[:gid] unless args[:gid].nil?
|
||||||
|
@group_name = args[:group_name] unless args[:group_name].nil?
|
||||||
|
@members = args[:members] unless args[:members].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A detailed view of a Linux user account.
|
||||||
|
class LinuxUserView
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] The GECOS (user information) entry for this account.
|
||||||
|
# Corresponds to the JSON property `gecos`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :gecos
|
||||||
|
|
||||||
|
# [Output Only] User's default group ID.
|
||||||
|
# Corresponds to the JSON property `gid`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :gid
|
||||||
|
|
||||||
|
# [Output Only] The path to the home directory for this account.
|
||||||
|
# Corresponds to the JSON property `homeDirectory`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :home_directory
|
||||||
|
|
||||||
|
# [Output Only] The path to the login shell for this account.
|
||||||
|
# Corresponds to the JSON property `shell`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :shell
|
||||||
|
|
||||||
|
# [Output Only] User ID.
|
||||||
|
# Corresponds to the JSON property `uid`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :uid
|
||||||
|
|
||||||
|
# [Output Only] The username of the account.
|
||||||
|
# Corresponds to the JSON property `username`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :username
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@gecos = args[:gecos] unless args[:gecos].nil?
|
||||||
|
@gid = args[:gid] unless args[:gid].nil?
|
||||||
|
@home_directory = args[:home_directory] unless args[:home_directory].nil?
|
||||||
|
@shell = args[:shell] unless args[:shell].nil?
|
||||||
|
@uid = args[:uid] unless args[:uid].nil?
|
||||||
|
@username = args[:username] unless args[:username].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
# Corresponds to the JSON property `clientOperationId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_operation_id
|
||||||
|
|
||||||
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||||
|
# Corresponds to the JSON property `creationTimestamp`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :creation_timestamp
|
||||||
|
|
||||||
|
# [Output Only] The time that this operation was completed. This is in RFC3339
|
||||||
|
# text format.
|
||||||
|
# Corresponds to the JSON property `endTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :end_time
|
||||||
|
|
||||||
|
# [Output Only] If errors are generated during processing of the operation, this
|
||||||
|
# field will be populated.
|
||||||
|
# Corresponds to the JSON property `error`
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::Operation::Error]
|
||||||
|
attr_accessor :error
|
||||||
|
|
||||||
|
# [Output Only] If the operation fails, this field contains the HTTP error
|
||||||
|
# message that was returned, such as NOT FOUND.
|
||||||
|
# Corresponds to the JSON property `httpErrorMessage`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :http_error_message
|
||||||
|
|
||||||
|
# [Output Only] If the operation fails, this field contains the HTTP error
|
||||||
|
# message that was returned, such as 404.
|
||||||
|
# Corresponds to the JSON property `httpErrorStatusCode`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :http_error_status_code
|
||||||
|
|
||||||
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# [Output Only] The time that this operation was requested. This is in RFC3339
|
||||||
|
# text format.
|
||||||
|
# Corresponds to the JSON property `insertTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :insert_time
|
||||||
|
|
||||||
|
# [Output Only] Type of the resource. Always compute#operation for Operation
|
||||||
|
# resources.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# [Output Only] Name of the resource.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# [Output Only] Type of the operation, such as insert, compute.instanceGroups.
|
||||||
|
# update, or compute.instanceGroups.delete.
|
||||||
|
# Corresponds to the JSON property `operationType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :operation_type
|
||||||
|
|
||||||
|
# [Output Only] An optional progress indicator that ranges from 0 to 100. There
|
||||||
|
# is no requirement that this be linear or support any granularity of operations.
|
||||||
|
# This should not be used to guess at when the operation will be complete. This
|
||||||
|
# number should monotonically increase as the operation progresses.
|
||||||
|
# Corresponds to the JSON property `progress`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :progress
|
||||||
|
|
||||||
|
# [Output Only] URL of the region where the operation resides. Only applicable
|
||||||
|
# for regional resources.
|
||||||
|
# Corresponds to the JSON property `region`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :region
|
||||||
|
|
||||||
|
# [Output Only] Server-defined URL for the resource.
|
||||||
|
# Corresponds to the JSON property `selfLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :self_link
|
||||||
|
|
||||||
|
# [Output Only] The time that this operation was started by the server. This is
|
||||||
|
# in RFC3339 text format.
|
||||||
|
# Corresponds to the JSON property `startTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_time
|
||||||
|
|
||||||
|
# [Output Only] Status of the operation. Can be one of the following: PENDING,
|
||||||
|
# RUNNING, or DONE.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
|
# [Output Only] An optional textual description of the current status of the
|
||||||
|
# operation.
|
||||||
|
# Corresponds to the JSON property `statusMessage`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status_message
|
||||||
|
|
||||||
|
# [Output Only] Unique target ID which identifies a particular incarnation of
|
||||||
|
# the target.
|
||||||
|
# Corresponds to the JSON property `targetId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :target_id
|
||||||
|
|
||||||
|
# [Output Only] URL of the resource the operation is mutating.
|
||||||
|
# Corresponds to the JSON property `targetLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :target_link
|
||||||
|
|
||||||
|
# [Output Only] User who requested the operation, for example: user@example.com.
|
||||||
|
# Corresponds to the JSON property `user`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :user
|
||||||
|
|
||||||
|
# [Output Only] If warning messages are generated during processing of the
|
||||||
|
# operation, this field will be populated.
|
||||||
|
# Corresponds to the JSON property `warnings`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning>]
|
||||||
|
attr_accessor :warnings
|
||||||
|
|
||||||
|
# [Output Only] URL of the zone where the operation resides.
|
||||||
|
# Corresponds to the JSON property `zone`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :zone
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
|
||||||
|
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
||||||
|
@end_time = args[:end_time] unless args[:end_time].nil?
|
||||||
|
@error = args[:error] unless args[:error].nil?
|
||||||
|
@http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
|
||||||
|
@http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@insert_time = args[:insert_time] unless args[:insert_time].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@operation_type = args[:operation_type] unless args[:operation_type].nil?
|
||||||
|
@progress = args[:progress] unless args[:progress].nil?
|
||||||
|
@region = args[:region] unless args[:region].nil?
|
||||||
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||||
|
@start_time = args[:start_time] unless args[:start_time].nil?
|
||||||
|
@status = args[:status] unless args[:status].nil?
|
||||||
|
@status_message = args[:status_message] unless args[:status_message].nil?
|
||||||
|
@target_id = args[:target_id] unless args[:target_id].nil?
|
||||||
|
@target_link = args[:target_link] unless args[:target_link].nil?
|
||||||
|
@user = args[:user] unless args[:user].nil?
|
||||||
|
@warnings = args[:warnings] unless args[:warnings].nil?
|
||||||
|
@zone = args[:zone] unless args[:zone].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
# [Output Only] If errors are generated during processing of the operation, this
|
||||||
|
# field will be populated.
|
||||||
|
class Error
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] The array of errors encountered while processing this operation.
|
||||||
|
# Corresponds to the JSON property `errors`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Error::Error>]
|
||||||
|
attr_accessor :errors
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@errors = args[:errors] unless args[:errors].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Error
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] The error type identifier for this error.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# [Output Only] Indicates the field in the request which caused the error. This
|
||||||
|
# property is optional.
|
||||||
|
# Corresponds to the JSON property `location`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location
|
||||||
|
|
||||||
|
# [Output Only] An optional, human-readable error message.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@code = args[:code] unless args[:code].nil?
|
||||||
|
@location = args[:location] unless args[:location].nil?
|
||||||
|
@message = args[:message] unless args[:message].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Warning
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] The warning type identifier for this warning.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# [Output Only] Metadata for this warning in key: value format.
|
||||||
|
# Corresponds to the JSON property `data`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum>]
|
||||||
|
attr_accessor :data
|
||||||
|
|
||||||
|
# [Output Only] Optional human-readable details for this warning.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@code = args[:code] unless args[:code].nil?
|
||||||
|
@data = args[:data] unless args[:data].nil?
|
||||||
|
@message = args[:message] unless args[:message].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Datum
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] A key for the warning data.
|
||||||
|
# Corresponds to the JSON property `key`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# [Output Only] A warning data value corresponding to the key.
|
||||||
|
# Corresponds to the JSON property `value`
|
||||||
|
# @return [String]
|
||||||
|
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
|
||||||
|
end
|
||||||
|
|
||||||
|
# Contains a list of Operation resources.
|
||||||
|
class OperationList
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# [Output Only] The Operation resources.
|
||||||
|
# Corresponds to the JSON property `items`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation>]
|
||||||
|
attr_accessor :items
|
||||||
|
|
||||||
|
# [Output Only] Type of resource. Always compute#operations for Operations
|
||||||
|
# resource.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# [Output Only] A token used to continue a truncate.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# [Output Only] Server-defined URL for this resource.
|
||||||
|
# Corresponds to the JSON property `selfLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :self_link
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@items = args[:items] unless args[:items].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A public key for authenticating to guests.
|
||||||
|
class PublicKey
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||||
|
# Corresponds to the JSON property `creationTimestamp`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :creation_timestamp
|
||||||
|
|
||||||
|
# An optional textual description of the resource; provided by the client when
|
||||||
|
# the resource is created.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Optional expiration timestamp. If provided, the timestamp must be in RFC3339
|
||||||
|
# text format. If not provided, the public key never expires.
|
||||||
|
# Corresponds to the JSON property `expirationTimestamp`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :expiration_timestamp
|
||||||
|
|
||||||
|
# [Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5
|
||||||
|
# digest of the public key.
|
||||||
|
# Corresponds to the JSON property `fingerprint`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :fingerprint
|
||||||
|
|
||||||
|
# Public key text in SSH format, defined by RFC4253 section 6.6.
|
||||||
|
# Corresponds to the JSON property `key`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
||||||
|
@description = args[:description] unless args[:description].nil?
|
||||||
|
@expiration_timestamp = args[:expiration_timestamp] unless args[:expiration_timestamp].nil?
|
||||||
|
@fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
|
||||||
|
@key = args[:key] unless args[:key].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A User resource.
|
||||||
|
class User
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||||
|
# Corresponds to the JSON property `creationTimestamp`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :creation_timestamp
|
||||||
|
|
||||||
|
# An optional textual description of the resource; provided by the client when
|
||||||
|
# the resource is created.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# [Output Only] A list of URLs to Group resources who contain the user. Users
|
||||||
|
# are only members of groups in the same project.
|
||||||
|
# Corresponds to the JSON property `groups`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :groups
|
||||||
|
|
||||||
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# [Output Only] Type of the resource. Always clouduseraccounts#user for users.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# Name of the resource; provided by the client when the resource is created.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Email address of account's owner. This account will be validated to make sure
|
||||||
|
# it exists. The email can belong to any domain, but it must be tied to a Google
|
||||||
|
# account.
|
||||||
|
# Corresponds to the JSON property `owner`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :owner
|
||||||
|
|
||||||
|
# [Output Only] Public keys that this user may use to login.
|
||||||
|
# Corresponds to the JSON property `publicKeys`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::PublicKey>]
|
||||||
|
attr_accessor :public_keys
|
||||||
|
|
||||||
|
# [Output Only] Server defined URL for the resource.
|
||||||
|
# Corresponds to the JSON property `selfLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :self_link
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
||||||
|
@description = args[:description] unless args[:description].nil?
|
||||||
|
@groups = args[:groups] unless args[:groups].nil?
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@name = args[:name] unless args[:name].nil?
|
||||||
|
@owner = args[:owner] unless args[:owner].nil?
|
||||||
|
@public_keys = args[:public_keys] unless args[:public_keys].nil?
|
||||||
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class UserList
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# [Output Only] A list of User resources.
|
||||||
|
# Corresponds to the JSON property `items`
|
||||||
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::User>]
|
||||||
|
attr_accessor :items
|
||||||
|
|
||||||
|
# [Output Only] Type of resource. Always clouduseraccounts#userList for lists of
|
||||||
|
# users.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# [Output Only] A token used to continue a truncated list request.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# [Output Only] Server defined URL for this resource.
|
||||||
|
# Corresponds to the JSON property `selfLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :self_link
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@id = args[:id] unless args[:id].nil?
|
||||||
|
@items = args[:items] unless args[:items].nil?
|
||||||
|
@kind = args[:kind] unless args[:kind].nil?
|
||||||
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
||||||
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,313 @@
|
||||||
|
# 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 ClouduseraccountsBeta
|
||||||
|
|
||||||
|
class AuthorizedKeysView
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Group
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupsAddMemberRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupsRemoveMemberRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxAccountViews
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGetAuthorizedKeysViewResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGetLinuxAccountViewsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGroupView
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxUserView
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Error
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Error
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PublicKey
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class User
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UserList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AuthorizedKeysView
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :keys, as: 'keys'
|
||||||
|
property :sudoer, as: 'sudoer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Group
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :members, as: 'members'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::Group, decorator: Google::Apis::ClouduseraccountsBeta::Group::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupsAddMemberRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :users, as: 'users'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupsRemoveMemberRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :users, as: 'users'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxAccountViews
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :group_views, as: 'groupViews', class: Google::Apis::ClouduseraccountsBeta::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsBeta::LinuxGroupView::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsBeta::LinuxUserView, decorator: Google::Apis::ClouduseraccountsBeta::LinuxUserView::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGetAuthorizedKeysViewResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGetLinuxAccountViewsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsBeta::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsBeta::LinuxAccountViews::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGroupView
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :gid, as: 'gid'
|
||||||
|
property :group_name, as: 'groupName'
|
||||||
|
collection :members, as: 'members'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxUserView
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :gecos, as: 'gecos'
|
||||||
|
property :gid, as: 'gid'
|
||||||
|
property :home_directory, as: 'homeDirectory'
|
||||||
|
property :shell, as: 'shell'
|
||||||
|
property :uid, as: 'uid'
|
||||||
|
property :username, as: 'username'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :client_operation_id, as: 'clientOperationId'
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :error, as: 'error', class: Google::Apis::ClouduseraccountsBeta::Operation::Error, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Error::Representation
|
||||||
|
|
||||||
|
property :http_error_message, as: 'httpErrorMessage'
|
||||||
|
property :http_error_status_code, as: 'httpErrorStatusCode'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :operation_type, as: 'operationType'
|
||||||
|
property :progress, as: 'progress'
|
||||||
|
property :region, as: 'region'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :status_message, as: 'statusMessage'
|
||||||
|
property :target_id, as: 'targetId'
|
||||||
|
property :target_link, as: 'targetLink'
|
||||||
|
property :user, as: 'user'
|
||||||
|
collection :warnings, as: 'warnings', class: Google::Apis::ClouduseraccountsBeta::Operation::Warning, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Warning::Representation
|
||||||
|
|
||||||
|
property :zone, as: 'zone'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Error
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :errors, as: 'errors', class: Google::Apis::ClouduseraccountsBeta::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Error::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
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsBeta::Operation::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 OperationList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::Operation, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PublicKey
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :expiration_timestamp, as: 'expirationTimestamp'
|
||||||
|
property :fingerprint, as: 'fingerprint'
|
||||||
|
property :key, as: 'key'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class User
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :groups, as: 'groups'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :owner, as: 'owner'
|
||||||
|
collection :public_keys, as: 'publicKeys', class: Google::Apis::ClouduseraccountsBeta::PublicKey, decorator: Google::Apis::ClouduseraccountsBeta::PublicKey::Representation
|
||||||
|
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UserList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::User, decorator: Google::Apis::ClouduseraccountsBeta::User::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,854 @@
|
||||||
|
# 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 ClouduseraccountsBeta
|
||||||
|
# Cloud User Accounts API
|
||||||
|
#
|
||||||
|
# API for the Google Cloud User Accounts service.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/clouduseraccounts_beta'
|
||||||
|
#
|
||||||
|
# Clouduseraccounts = Google::Apis::ClouduseraccountsBeta # Alias the module
|
||||||
|
# service = Clouduseraccounts::CloudUserAccountsService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||||
|
class CloudUserAccountsService < 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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
# @return [String]
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
attr_accessor :user_ip
|
||||||
|
|
||||||
|
def initialize
|
||||||
|
super('https://www.googleapis.com/', 'clouduseraccounts/beta/projects/')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes the specified operation resource.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] operation
|
||||||
|
# Name of the Operations resource 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.
|
||||||
|
# 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 [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @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_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, '{project}/global/operations/{operation}', options)
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['operation'] = operation unless operation.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
|
||||||
|
|
||||||
|
# Retrieves the specified operation resource.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] operation
|
||||||
|
# Name of the Operations resource to return.
|
||||||
|
# @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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/operations/{operation}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['operation'] = operation unless operation.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
|
||||||
|
|
||||||
|
# Retrieves the list of operation resources contained within the specified
|
||||||
|
# project.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] filter
|
||||||
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||||
|
# expression`. Your `expression` must be in the format: FIELD_NAME
|
||||||
|
# COMPARISON_STRING LITERAL_STRING.
|
||||||
|
# The FIELD_NAME is the name of the field you want to compare. Only atomic field
|
||||||
|
# types are supported (string, number, boolean). The COMPARISON_STRING must be
|
||||||
|
# either eq (equals) or ne (not equals). The LITERAL_STRING is the 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, filter=name ne example-instance.
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# Maximum count of results to be returned.
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# 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
|
||||||
|
# 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::ClouduseraccountsBeta::OperationList] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::OperationList]
|
||||||
|
#
|
||||||
|
# @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_global_accounts_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/operations', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::OperationList::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::OperationList
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Adds users to the specified group.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] group_name
|
||||||
|
# Name of the group for this request.
|
||||||
|
# @param [Google::Apis::ClouduseraccountsBeta::GroupsAddMemberRequest] groups_add_member_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.
|
||||||
|
# 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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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 add_group_member(project, group_name, groups_add_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/groups/{groupName}/addMember', options)
|
||||||
|
command.request_representation = Google::Apis::ClouduseraccountsBeta::GroupsAddMemberRequest::Representation
|
||||||
|
command.request_object = groups_add_member_request_object
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['groupName'] = group_name unless group_name.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
|
||||||
|
|
||||||
|
# Deletes the specified Group resource.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] group_name
|
||||||
|
# Name of the Group resource 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.
|
||||||
|
# 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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, '{project}/global/groups/{groupName}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['groupName'] = group_name unless group_name.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
|
||||||
|
|
||||||
|
# Returns the specified Group resource.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] group_name
|
||||||
|
# Name of the Group resource to return.
|
||||||
|
# @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::ClouduseraccountsBeta::Group] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::Group]
|
||||||
|
#
|
||||||
|
# @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_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/groups/{groupName}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Group::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Group
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['groupName'] = group_name unless group_name.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
|
||||||
|
|
||||||
|
# Creates a Group resource in the specified project using the data included in
|
||||||
|
# the request.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [Google::Apis::ClouduseraccountsBeta::Group] group_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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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 insert_group(project, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/groups', options)
|
||||||
|
command.request_representation = Google::Apis::ClouduseraccountsBeta::Group::Representation
|
||||||
|
command.request_object = group_object
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.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
|
||||||
|
|
||||||
|
# Retrieves the list of groups contained within the specified project.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] filter
|
||||||
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||||
|
# expression`. Your `expression` must be in the format: FIELD_NAME
|
||||||
|
# COMPARISON_STRING LITERAL_STRING.
|
||||||
|
# The FIELD_NAME is the name of the field you want to compare. Only atomic field
|
||||||
|
# types are supported (string, number, boolean). The COMPARISON_STRING must be
|
||||||
|
# either eq (equals) or ne (not equals). The LITERAL_STRING is the 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, filter=name ne example-instance.
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# Maximum count of results to be returned.
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# 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
|
||||||
|
# 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::ClouduseraccountsBeta::GroupList] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::GroupList]
|
||||||
|
#
|
||||||
|
# @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_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/groups', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::GroupList::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::GroupList
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Removes users from the specified group.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] group_name
|
||||||
|
# Name of the group for this request.
|
||||||
|
# @param [Google::Apis::ClouduseraccountsBeta::GroupsRemoveMemberRequest] groups_remove_member_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.
|
||||||
|
# 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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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 remove_group_member(project, group_name, groups_remove_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/groups/{groupName}/removeMember', options)
|
||||||
|
command.request_representation = Google::Apis::ClouduseraccountsBeta::GroupsRemoveMemberRequest::Representation
|
||||||
|
command.request_object = groups_remove_member_request_object
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['groupName'] = group_name unless group_name.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
|
||||||
|
|
||||||
|
# Returns a list of authorized public keys for a specific user account.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# Name of the zone for this request.
|
||||||
|
# @param [String] user
|
||||||
|
# The user account for which you want to get a list of authorized public keys.
|
||||||
|
# @param [String] instance
|
||||||
|
# The fully-qualified URL of the virtual machine requesting the view.
|
||||||
|
# @param [Boolean] login
|
||||||
|
# Whether the view was requested as part of a user-initiated login.
|
||||||
|
# @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::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse]
|
||||||
|
#
|
||||||
|
# @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_linux_authorized_keys_view(project, zone, user, instance, login: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/zones/{zone}/authorizedKeysView/{user}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['user'] = user unless user.nil?
|
||||||
|
command.query['instance'] = instance unless instance.nil?
|
||||||
|
command.query['login'] = login unless login.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
|
||||||
|
|
||||||
|
# Retrieves a list of user accounts for an instance within a specific project.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# Name of the zone for this request.
|
||||||
|
# @param [String] instance
|
||||||
|
# The fully-qualified URL of the virtual machine requesting the views.
|
||||||
|
# @param [String] filter
|
||||||
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||||
|
# expression`. Your `expression` must be in the format: FIELD_NAME
|
||||||
|
# COMPARISON_STRING LITERAL_STRING.
|
||||||
|
# The FIELD_NAME is the name of the field you want to compare. Only atomic field
|
||||||
|
# types are supported (string, number, boolean). The COMPARISON_STRING must be
|
||||||
|
# either eq (equals) or ne (not equals). The LITERAL_STRING is the 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, filter=name ne example-instance.
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# Maximum count of results to be returned.
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# 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
|
||||||
|
# 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::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse]
|
||||||
|
#
|
||||||
|
# @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_linux_linux_account_views(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/zones/{zone}/linuxAccountViews', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['instance'] = instance unless instance.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Adds a public key to the specified User resource with the data included in the
|
||||||
|
# request.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] user
|
||||||
|
# Name of the user for this request.
|
||||||
|
# @param [Google::Apis::ClouduseraccountsBeta::PublicKey] public_key_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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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 add_user_public_key(project, user, public_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/users/{user}/addPublicKey', options)
|
||||||
|
command.request_representation = Google::Apis::ClouduseraccountsBeta::PublicKey::Representation
|
||||||
|
command.request_object = public_key_object
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['user'] = user unless user.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
|
||||||
|
|
||||||
|
# Deletes the specified User resource.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] user
|
||||||
|
# Name of the user resource 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.
|
||||||
|
# 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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, '{project}/global/users/{user}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['user'] = user unless user.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
|
||||||
|
|
||||||
|
# Returns the specified User resource.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] user
|
||||||
|
# Name of the user resource to return.
|
||||||
|
# @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::ClouduseraccountsBeta::User] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::User]
|
||||||
|
#
|
||||||
|
# @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(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/users/{user}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::User::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::User
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['user'] = user unless user.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
|
||||||
|
|
||||||
|
# Creates a User resource in the specified project using the data included in
|
||||||
|
# the request.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [Google::Apis::ClouduseraccountsBeta::User] user_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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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 insert_user(project, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/users', options)
|
||||||
|
command.request_representation = Google::Apis::ClouduseraccountsBeta::User::Representation
|
||||||
|
command.request_object = user_object
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.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
|
||||||
|
|
||||||
|
# Retrieves a list of users contained within the specified project.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] filter
|
||||||
|
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||||
|
# expression`. Your `expression` must be in the format: FIELD_NAME
|
||||||
|
# COMPARISON_STRING LITERAL_STRING.
|
||||||
|
# The FIELD_NAME is the name of the field you want to compare. Only atomic field
|
||||||
|
# types are supported (string, number, boolean). The COMPARISON_STRING must be
|
||||||
|
# either eq (equals) or ne (not equals). The LITERAL_STRING is the 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, filter=name ne example-instance.
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# Maximum count of results to be returned.
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# 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
|
||||||
|
# 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::ClouduseraccountsBeta::UserList] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::UserList]
|
||||||
|
#
|
||||||
|
# @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_users(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/users', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::UserList::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::UserList
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.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?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Removes the specified public key from the user.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] user
|
||||||
|
# Name of the user for this request.
|
||||||
|
# @param [String] fingerprint
|
||||||
|
# The fingerprint of the public key to delete. Public keys are identified by
|
||||||
|
# their fingerprint, which is defined by RFC4716 to be the MD5 digest of the
|
||||||
|
# public key.
|
||||||
|
# @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::ClouduseraccountsBeta::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouduseraccountsBeta::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 remove_user_public_key(project, user, fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/users/{user}/removePublicKey', options)
|
||||||
|
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['user'] = user unless user.nil?
|
||||||
|
command.query['fingerprint'] = fingerprint unless fingerprint.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
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeV1
|
module ComputeV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20150723'
|
REVISION = '20151116'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -226,6 +226,14 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class HttpsHealthCheck
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HttpsHealthCheckList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Image
|
class Image
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -270,10 +278,6 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
class InstanceGroupManagerAutoHealingPolicy
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class InstanceGroupManagerList
|
class InstanceGroupManagerList
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -562,6 +566,14 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SslCertificate
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SslCertificateList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Tags
|
class Tags
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -574,6 +586,18 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TargetHttpsProxiesSetSslCertificatesRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TargetHttpsProxy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TargetHttpsProxyList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class TargetInstance
|
class TargetInstance
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -1337,6 +1361,37 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class HttpsHealthCheck
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :check_interval_sec, as: 'checkIntervalSec'
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :healthy_threshold, as: 'healthyThreshold'
|
||||||
|
property :host, as: 'host'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :port, as: 'port'
|
||||||
|
property :request_path, as: 'requestPath'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
property :timeout_sec, as: 'timeoutSec'
|
||||||
|
property :unhealthy_threshold, as: 'unhealthyThreshold'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HttpsHealthCheckList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeV1::HttpsHealthCheck, decorator: Google::Apis::ComputeV1::HttpsHealthCheck::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Image
|
class Image
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1468,8 +1523,6 @@ module Google
|
||||||
class InstanceGroupManager
|
class InstanceGroupManager
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
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 :base_instance_name, as: 'baseInstanceName'
|
||||||
property :creation_timestamp, as: 'creationTimestamp'
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
property :current_actions, as: 'currentActions', class: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary, decorator: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary::Representation
|
property :current_actions, as: 'currentActions', class: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary, decorator: Google::Apis::ComputeV1::InstanceGroupManagerActionsSummary::Representation
|
||||||
|
@ -1481,6 +1534,8 @@ module Google
|
||||||
property :instance_template, as: 'instanceTemplate'
|
property :instance_template, as: 'instanceTemplate'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation
|
||||||
|
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
collection :target_pools, as: 'targetPools'
|
collection :target_pools, as: 'targetPools'
|
||||||
property :target_size, as: 'targetSize'
|
property :target_size, as: 'targetSize'
|
||||||
|
@ -1513,14 +1568,6 @@ module Google
|
||||||
end
|
end
|
||||||
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
|
class InstanceGroupManagerList
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1629,7 +1676,6 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :instance_state, as: 'instanceState'
|
property :instance_state, as: 'instanceState'
|
||||||
property :port_name, as: 'portName'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2124,6 +2170,7 @@ module Google
|
||||||
|
|
||||||
property :creation_timestamp, as: 'creationTimestamp'
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
|
collection :enabled_features, as: 'enabledFeatures'
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
@ -2291,6 +2338,32 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SslCertificate
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :certificate, as: 'certificate'
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :private_key, as: 'privateKey'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SslCertificateList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeV1::SslCertificate, decorator: Google::Apis::ComputeV1::SslCertificate::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Tags
|
class Tags
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -2324,6 +2397,39 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TargetHttpsProxiesSetSslCertificatesRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :ssl_certificates, as: 'sslCertificates'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TargetHttpsProxy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
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'
|
||||||
|
collection :ssl_certificates, as: 'sslCertificates'
|
||||||
|
property :url_map, as: 'urlMap'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TargetHttpsProxyList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeV1::TargetHttpsProxy, decorator: Google::Apis::ComputeV1::TargetHttpsProxy::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class TargetInstance
|
class TargetInstance
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-engine/
|
# @see https://cloud.google.com/container-engine/
|
||||||
module ContainerV1
|
module ContainerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20150605'
|
REVISION = '20150603'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -103,69 +103,67 @@ module Google
|
||||||
# The IP address range of the container pods in this cluster, in [CIDR](http://
|
# 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.
|
# 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
|
# 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`.
|
# in `10.0.0.0/8`.
|
||||||
# Corresponds to the JSON property `clusterIpv4Cidr`
|
# Corresponds to the JSON property `clusterIpv4Cidr`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :cluster_ipv4_cidr
|
attr_accessor :cluster_ipv4_cidr
|
||||||
|
|
||||||
# [Output only] Server-defined URL for the resource. @OutputOnly.
|
# [Output only] Server-defined URL for the resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
|
||||||
# [Output only] The name of the Google Compute Engine [zone](/compute/docs/zones#
|
# [Output only] The name of the Google Compute Engine [zone](/compute/docs/zones#
|
||||||
# available) in which the cluster resides. @OutputOnly.
|
# available) in which the cluster resides.
|
||||||
# Corresponds to the JSON property `zone`
|
# Corresponds to the JSON property `zone`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :zone
|
attr_accessor :zone
|
||||||
|
|
||||||
# [Output only] The IP address of this cluster's Kubernetes master endpoint. The
|
# [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 can be accessed from the internet at `https://username:password@
|
||||||
# endpoint/`. @OutputOnly. See the `masterAuth` property of this resource for
|
# endpoint/`. See the `masterAuth` property of this resource for username and
|
||||||
# username and password information.
|
# password information.
|
||||||
# Corresponds to the JSON property `endpoint`
|
# Corresponds to the JSON property `endpoint`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :endpoint
|
attr_accessor :endpoint
|
||||||
|
|
||||||
# [Output only] The software version of Kubernetes master and kubelets used in
|
# [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. @
|
# the cluster when it was first created. The version can be upgraded over time.
|
||||||
# OutputOnly.
|
|
||||||
# Corresponds to the JSON property `initialClusterVersion`
|
# Corresponds to the JSON property `initialClusterVersion`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :initial_cluster_version
|
attr_accessor :initial_cluster_version
|
||||||
|
|
||||||
# [Output only] The current software version of the master endpoint. @OutputOnly.
|
# [Output only] The current software version of the master endpoint.
|
||||||
# Corresponds to the JSON property `currentMasterVersion`
|
# Corresponds to the JSON property `currentMasterVersion`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :current_master_version
|
attr_accessor :current_master_version
|
||||||
|
|
||||||
# [Output only] The current version of the node software components. If they are
|
# [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
|
# currently at different versions because they're in the process of being
|
||||||
# upgraded, this reflects the minimum version of any of them. @OutputOnly.
|
# upgraded, this reflects the minimum version of any of them.
|
||||||
# Corresponds to the JSON property `currentNodeVersion`
|
# Corresponds to the JSON property `currentNodeVersion`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :current_node_version
|
attr_accessor :current_node_version
|
||||||
|
|
||||||
# [Output only] The time the cluster was created, in [RFC3339](href='https://www.
|
# [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.
|
||||||
# ietf.org/rfc/rfc3339.txt) text format. @OutputOnly.
|
# org/rfc/rfc3339.txt) text format.
|
||||||
# Corresponds to the JSON property `createTime`
|
# Corresponds to the JSON property `createTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :create_time
|
attr_accessor :create_time
|
||||||
|
|
||||||
# [Output only] The current status of this cluster. @OutputOnly.
|
# [Output only] The current status of this cluster.
|
||||||
# Corresponds to the JSON property `status`
|
# Corresponds to the JSON property `status`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
# [Output only] Additional information about the current status of this cluster,
|
# [Output only] Additional information about the current status of this cluster,
|
||||||
# if available. @OutputOnly.
|
# if available.
|
||||||
# Corresponds to the JSON property `statusMessage`
|
# Corresponds to the JSON property `statusMessage`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status_message
|
attr_accessor :status_message
|
||||||
|
|
||||||
# [Output only] The size of the address space on each node for hosting
|
# [Output only] The size of the address space on each node for hosting
|
||||||
# containers. This is provisioned from within the container_ipv4_cidr range. @
|
# containers. This is provisioned from within the container_ipv4_cidr range.
|
||||||
# OutputOnly.
|
|
||||||
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :node_ipv4_cidr_size
|
attr_accessor :node_ipv4_cidr_size
|
||||||
|
@ -173,13 +171,13 @@ module Google
|
||||||
# [Output only] The IP address range of the Kubernetes services in this cluster,
|
# [Output only] The IP address range of the Kubernetes services in this cluster,
|
||||||
# in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
# 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 /
|
# notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last /
|
||||||
# 16 from the container CIDR. @OutputOnly.
|
# 16 from the container CIDR.
|
||||||
# Corresponds to the JSON property `servicesIpv4Cidr`
|
# Corresponds to the JSON property `servicesIpv4Cidr`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :services_ipv4_cidr
|
attr_accessor :services_ipv4_cidr
|
||||||
|
|
||||||
# [Output only] The resource URLs of [instance groups](/compute/docs/instance-
|
# [Output only] The resource URLs of [instance groups](/compute/docs/instance-
|
||||||
# groups/) associated with this cluster. @OutputOnly.
|
# groups/) associated with this cluster.
|
||||||
# Corresponds to the JSON property `instanceGroupUrls`
|
# Corresponds to the JSON property `instanceGroupUrls`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :instance_group_urls
|
attr_accessor :instance_group_urls
|
||||||
|
@ -226,15 +224,17 @@ module Google
|
||||||
attr_accessor :machine_type
|
attr_accessor :machine_type
|
||||||
|
|
||||||
# Size of the disk attached to each node, specified in GB. The smallest allowed
|
# Size of the disk attached to each node, specified in GB. The smallest allowed
|
||||||
# disk size is 10GB, and the default is 100GB.
|
# disk size is 10GB. If unspecified, the default disk size is 100GB.
|
||||||
# Corresponds to the JSON property `diskSizeGb`
|
# Corresponds to the JSON property `diskSizeGb`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :disk_size_gb
|
attr_accessor :disk_size_gb
|
||||||
|
|
||||||
# The set of Google API scopes to be made available on all of the node VMs under
|
# 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
|
# the "default" service account. The following scopes are recommended, but not
|
||||||
# to ensure the correct functioning of the cluster: * "https://www.googleapis.
|
# required, and by default are not included: * `https://www.googleapis.com/auth/
|
||||||
# com/auth/compute" * "https://www.googleapis.com/auth/devstorage.read_only"
|
# compute` is required for mounting persistent storage on your nodes. * `https://
|
||||||
|
# www.googleapis.com/auth/devstorage.read_only` is required for communicating
|
||||||
|
# with *gcr.io*. If unspecified, no scopes are added.
|
||||||
# Corresponds to the JSON property `oauthScopes`
|
# Corresponds to the JSON property `oauthScopes`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :oauth_scopes
|
attr_accessor :oauth_scopes
|
||||||
|
@ -270,19 +270,19 @@ module Google
|
||||||
attr_accessor :password
|
attr_accessor :password
|
||||||
|
|
||||||
# [Output only] Base64 encoded public certificate that is the root of trust for
|
# [Output only] Base64 encoded public certificate that is the root of trust for
|
||||||
# the cluster. @OutputOnly.
|
# the cluster.
|
||||||
# Corresponds to the JSON property `clusterCaCertificate`
|
# Corresponds to the JSON property `clusterCaCertificate`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :cluster_ca_certificate
|
attr_accessor :cluster_ca_certificate
|
||||||
|
|
||||||
# [Output only] Base64 encoded public certificate used by clients to
|
# [Output only] Base64 encoded public certificate used by clients to
|
||||||
# authenticate to the cluster endpoint. @OutputOnly.
|
# authenticate to the cluster endpoint.
|
||||||
# Corresponds to the JSON property `clientCertificate`
|
# Corresponds to the JSON property `clientCertificate`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :client_certificate
|
attr_accessor :client_certificate
|
||||||
|
|
||||||
# [Output only] Base64 encoded private key used by clients to authenticate to
|
# [Output only] Base64 encoded private key used by clients to authenticate to
|
||||||
# the cluster endpoint. @OutputOnly.
|
# the cluster endpoint.
|
||||||
# Corresponds to the JSON property `clientKey`
|
# Corresponds to the JSON property `clientKey`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :client_key
|
attr_accessor :client_key
|
||||||
|
@ -324,38 +324,38 @@ module Google
|
||||||
class Operation
|
class Operation
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The server-assigned ID for the operation. @OutputOnly.
|
# The server-assigned ID for the operation.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||||
# which the operation is taking place. @OutputOnly.
|
# which the operation is taking place.
|
||||||
# Corresponds to the JSON property `zone`
|
# Corresponds to the JSON property `zone`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :zone
|
attr_accessor :zone
|
||||||
|
|
||||||
# The operation type. @OutputOnly.
|
# The operation type.
|
||||||
# Corresponds to the JSON property `operationType`
|
# Corresponds to the JSON property `operationType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :operation_type
|
attr_accessor :operation_type
|
||||||
|
|
||||||
# The current status of the operation. @OutputOnly.
|
# The current status of the operation.
|
||||||
# Corresponds to the JSON property `status`
|
# Corresponds to the JSON property `status`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
# If an error has occurred, a textual description of the error. @OutputOnly.
|
# If an error has occurred, a textual description of the error.
|
||||||
# Corresponds to the JSON property `statusMessage`
|
# Corresponds to the JSON property `statusMessage`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status_message
|
attr_accessor :status_message
|
||||||
|
|
||||||
# Server-defined URL for the resource. @OutputOnly.
|
# Server-defined URL for the resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
|
||||||
# Server-defined URL for the target of the operation. @OutputOnly.
|
# Server-defined URL for the target of the operation.
|
||||||
# Corresponds to the JSON property `targetLink`
|
# Corresponds to the JSON property `targetLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :target_link
|
attr_accessor :target_link
|
||||||
|
@ -433,6 +433,31 @@ module Google
|
||||||
@operations = args[:operations] unless args[:operations].nil?
|
@operations = args[:operations] unless args[:operations].nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Container Engine Server configuration.
|
||||||
|
class ServerConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# What version this server deploys by default.
|
||||||
|
# Corresponds to the JSON property `defaultClusterVersion`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :default_cluster_version
|
||||||
|
|
||||||
|
# List of valid node upgrade target versions.
|
||||||
|
# Corresponds to the JSON property `validNodeVersions`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :valid_node_versions
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@default_cluster_version = args[:default_cluster_version] unless args[:default_cluster_version].nil?
|
||||||
|
@valid_node_versions = args[:valid_node_versions] unless args[:valid_node_versions].nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -58,6 +58,10 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ServerConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class ListClustersResponse
|
class ListClustersResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -158,6 +162,14 @@ module Google
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ServerConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :default_cluster_version, as: 'defaultClusterVersion'
|
||||||
|
collection :valid_node_versions, as: 'validNodeVersions'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,12 +47,46 @@ module Google
|
||||||
super('https://container.googleapis.com/', '')
|
super('https://container.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns configuration info about the Container Engine service.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The Google Developers Console [project ID or project number](https://
|
||||||
|
# developers.google.com/console/help/new/#projectnumber).
|
||||||
|
# @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::ServerConfig] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ContainerV1::ServerConfig]
|
||||||
|
#
|
||||||
|
# @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_project_zone_serverconfig(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/serverconfig', options)
|
||||||
|
command.response_representation = Google::Apis::ContainerV1::ServerConfig::Representation
|
||||||
|
command.response_class = Google::Apis::ContainerV1::ServerConfig
|
||||||
|
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
|
||||||
|
|
||||||
# Lists all clusters owned by a project in either the specified zone or all
|
# Lists all clusters owned by a project in either the specified zone or all
|
||||||
# zones.
|
# zones.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Google Developers Console [project ID](https://console.developers.google.
|
# The Google Developers Console [project ID or project number](https://
|
||||||
# com/project) or [project number](https://developers.google.com/console/help/
|
# developers.google.com/console/help/new/#projectnumber).
|
||||||
# project-number)
|
|
||||||
# @param [String] zone
|
# @param [String] zone
|
||||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||||
# which the cluster resides, or "-" for all zones.
|
# which the cluster resides, or "-" for all zones.
|
||||||
|
@ -74,8 +108,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
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, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
|
command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
|
||||||
command.response_class = Google::Apis::ContainerV1::ListClustersResponse
|
command.response_class = Google::Apis::ContainerV1::ListClustersResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -87,9 +120,8 @@ module Google
|
||||||
|
|
||||||
# Gets a specific cluster.
|
# Gets a specific cluster.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Google Developers Console A [project ID](https://console.developers.google.
|
# The Google Developers Console [project ID or project number](https://
|
||||||
# com/project) or [project number](https://developers.google.com/console/help/
|
# developers.google.com/console/help/new/#projectnumber).
|
||||||
# project-number)
|
|
||||||
# @param [String] zone
|
# @param [String] zone
|
||||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||||
# which the cluster resides.
|
# which the cluster resides.
|
||||||
|
@ -113,8 +145,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
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, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
|
command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
|
||||||
command.response_class = Google::Apis::ContainerV1::Cluster
|
command.response_class = Google::Apis::ContainerV1::Cluster
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -127,16 +158,15 @@ module Google
|
||||||
|
|
||||||
# Creates a cluster, consisting of the specified number and type of Google
|
# Creates a cluster, consisting of the specified number and type of Google
|
||||||
# Compute Engine instances, plus a Kubernetes master endpoint. By default, the
|
# Compute Engine instances, plus a Kubernetes master endpoint. By default, the
|
||||||
# cluster is created in the project's [default network]('/compute/docs/
|
# cluster is created in the project's [default network](/compute/docs/networking#
|
||||||
# networking#networks_1'). One firewall is added for the cluster. After cluster
|
# networks_1). One firewall is added for the cluster. After cluster creation,
|
||||||
# creation, the cluster creates routes for each node to allow the containers on
|
# the cluster creates routes for each node to allow the containers on that node
|
||||||
# that node to communicate with all other instances in the cluster. Finally, an
|
# to communicate with all other instances in the cluster. Finally, an entry is
|
||||||
# entry is added to the project's global metadata indicating which CIDR range is
|
# added to the project's global metadata indicating which CIDR range is being
|
||||||
# being used by the cluster.
|
# used by the cluster.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Google Developers Console [project ID](https://console.developers.google.
|
# The Google Developers Console [project ID or project number](https://
|
||||||
# com/project) or [project number](https://developers.google.com/console/help/
|
# developers.google.com/console/help/new/#projectnumber).
|
||||||
# project-number)
|
|
||||||
# @param [String] zone
|
# @param [String] zone
|
||||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||||
# which the cluster resides.
|
# which the cluster resides.
|
||||||
|
@ -159,8 +189,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
|
command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
|
||||||
command.request_object = create_cluster_request_object
|
command.request_object = create_cluster_request_object
|
||||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||||
|
@ -174,9 +203,8 @@ module Google
|
||||||
|
|
||||||
# Update settings of a specific cluster.
|
# Update settings of a specific cluster.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Google Developers Console [project ID](https://console.developers.google.
|
# The Google Developers Console [project ID or project number](https://
|
||||||
# com/project) or [project number](https://developers.google.com/console/help/
|
# developers.google.com/console/help/new/#projectnumber).
|
||||||
# project-number)
|
|
||||||
# @param [String] zone
|
# @param [String] zone
|
||||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||||
# which the cluster resides.
|
# which the cluster resides.
|
||||||
|
@ -201,8 +229,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
|
command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
|
||||||
command.request_object = update_cluster_request_object
|
command.request_object = update_cluster_request_object
|
||||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||||
|
@ -219,9 +246,8 @@ module Google
|
||||||
# Firewalls and routes that were configured during cluster creation are also
|
# Firewalls and routes that were configured during cluster creation are also
|
||||||
# deleted.
|
# deleted.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Google Developers Console [project ID](https://console.developers.google.
|
# The Google Developers Console [project ID or project number](https://
|
||||||
# com/project) or [project number](https://developers.google.com/console/help/
|
# developers.google.com/console/help/new/#projectnumber).
|
||||||
# project-number)
|
|
||||||
# @param [String] zone
|
# @param [String] zone
|
||||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||||
# which the cluster resides.
|
# which the cluster resides.
|
||||||
|
@ -245,8 +271,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
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, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
||||||
command = make_simple_command(:delete, path, options)
|
|
||||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||||
command.response_class = Google::Apis::ContainerV1::Operation
|
command.response_class = Google::Apis::ContainerV1::Operation
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -259,9 +284,8 @@ module Google
|
||||||
|
|
||||||
# Lists all operations in a project in a specific zone or all zones.
|
# Lists all operations in a project in a specific zone or all zones.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Google Developers Console [project ID](https://console.developers.google.
|
# The Google Developers Console [project ID or project number](https://
|
||||||
# com/project) or [project number](https://developers.google.com/console/help/
|
# developers.google.com/console/help/new/#projectnumber).
|
||||||
# project-number)
|
|
||||||
# @param [String] zone
|
# @param [String] zone
|
||||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) to
|
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) to
|
||||||
# return operations for, or "-" for all zones.
|
# return operations for, or "-" for all zones.
|
||||||
|
@ -283,8 +307,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
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, 'v1/projects/{projectId}/zones/{zone}/operations', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
||||||
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -296,9 +319,8 @@ module Google
|
||||||
|
|
||||||
# Gets the specified operation.
|
# Gets the specified operation.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Google Developers Console [project ID](https://console.developers.google.
|
# The Google Developers Console [project ID or project number](https://
|
||||||
# com/project) or [project number](https://developers.google.com/console/help/
|
# developers.google.com/console/help/new/#projectnumber).
|
||||||
# project-number)
|
|
||||||
# @param [String] zone
|
# @param [String] zone
|
||||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||||
# which the cluster resides.
|
# which the cluster resides.
|
||||||
|
@ -322,8 +344,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
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, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||||
command.response_class = Google::Apis::ContainerV1::Operation
|
command.response_class = Google::Apis::ContainerV1::Operation
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
|
|
@ -23,10 +23,10 @@ module Google
|
||||||
# Manage product items, inventory, and Merchant Center accounts for Google
|
# Manage product items, inventory, and Merchant Center accounts for Google
|
||||||
# Shopping.
|
# Shopping.
|
||||||
#
|
#
|
||||||
# @see https://developers.google.com/shopping-content/v2/
|
# @see https://developers.google.com/shopping-content
|
||||||
module ContentV2
|
module ContentV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20150729'
|
REVISION = '20151112'
|
||||||
|
|
||||||
# Manage your product listings and accounts for Google Shopping
|
# Manage your product listings and accounts for Google Shopping
|
||||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -254,6 +254,10 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Installment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Inventory
|
class Inventory
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -286,6 +290,198 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Order
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderAddress
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderCancellation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderCustomer
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderDeliveryDetails
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItem
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemProduct
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemProductVariantAttribute
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemReturnInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemShippingDetails
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemShippingDetailsMethod
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderPaymentMethod
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderRefund
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderReturn
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderShipment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderShipmentLineItemShipment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersAcknowledgeRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersAcknowledgeResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersAdvanceTestOrderResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCancelLineItemRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCancelLineItemResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCancelRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCancelResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCreateTestOrderRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCreateTestOrderResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntry
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryCancel
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryCancelLineItem
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryRefund
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryReturnLineItem
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryShipLineItems
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryUpdateShipment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchResponseEntry
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersGetByMerchantOrderIdResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersGetTestOrderTemplateResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersListResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersRefundRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersRefundResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersReturnLineItemRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersReturnLineItemResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersShipLineItemsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersShipLineItemsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersUpdateMerchantOrderIdRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersUpdateMerchantOrderIdResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersUpdateShipmentRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersUpdateShipmentResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Price
|
class Price
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -310,10 +506,6 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ProductInstallment
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ProductShipping
|
class ProductShipping
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -390,6 +582,26 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TestOrder
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestOrderCustomer
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestOrderLineItem
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestOrderLineItemProduct
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestOrderPaymentMethod
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
end
|
||||||
|
|
||||||
class Weight
|
class Weight
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
end
|
end
|
||||||
|
@ -1019,11 +1231,24 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Installment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :months, as: 'months'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Inventory
|
class Inventory
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :availability, as: 'availability'
|
property :availability, as: 'availability'
|
||||||
|
property :installment, as: 'installment', class: Google::Apis::ContentV2::Installment, decorator: Google::Apis::ContentV2::Installment::Representation
|
||||||
|
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation
|
||||||
|
|
||||||
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
property :quantity, as: 'quantity'
|
property :quantity, as: 'quantity'
|
||||||
|
@ -1077,6 +1302,10 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :availability, as: 'availability'
|
property :availability, as: 'availability'
|
||||||
|
property :installment, as: 'installment', class: Google::Apis::ContentV2::Installment, decorator: Google::Apis::ContentV2::Installment::Representation
|
||||||
|
|
||||||
|
property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation
|
||||||
|
|
||||||
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
property :quantity, as: 'quantity'
|
property :quantity, as: 'quantity'
|
||||||
|
@ -1103,6 +1332,536 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Order
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :acknowledged, as: 'acknowledged'
|
||||||
|
property :customer, as: 'customer', class: Google::Apis::ContentV2::OrderCustomer, decorator: Google::Apis::ContentV2::OrderCustomer::Representation
|
||||||
|
|
||||||
|
property :delivery_details, as: 'deliveryDetails', class: Google::Apis::ContentV2::OrderDeliveryDetails, decorator: Google::Apis::ContentV2::OrderDeliveryDetails::Representation
|
||||||
|
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderLineItem, decorator: Google::Apis::ContentV2::OrderLineItem::Representation
|
||||||
|
|
||||||
|
property :merchant_id, as: 'merchantId'
|
||||||
|
property :merchant_order_id, as: 'merchantOrderId'
|
||||||
|
property :net_amount, as: 'netAmount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::OrderPaymentMethod, decorator: Google::Apis::ContentV2::OrderPaymentMethod::Representation
|
||||||
|
|
||||||
|
property :payment_status, as: 'paymentStatus'
|
||||||
|
property :placed_date, as: 'placedDate'
|
||||||
|
collection :refunds, as: 'refunds', class: Google::Apis::ContentV2::OrderRefund, decorator: Google::Apis::ContentV2::OrderRefund::Representation
|
||||||
|
|
||||||
|
collection :shipments, as: 'shipments', class: Google::Apis::ContentV2::OrderShipment, decorator: Google::Apis::ContentV2::OrderShipment::Representation
|
||||||
|
|
||||||
|
property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :shipping_option, as: 'shippingOption'
|
||||||
|
property :status, as: 'status'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderAddress
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :country, as: 'country'
|
||||||
|
collection :full_address, as: 'fullAddress'
|
||||||
|
property :is_post_office_box, as: 'isPostOfficeBox'
|
||||||
|
property :locality, as: 'locality'
|
||||||
|
property :postal_code, as: 'postalCode'
|
||||||
|
property :recipient_name, as: 'recipientName'
|
||||||
|
property :region, as: 'region'
|
||||||
|
collection :street_address, as: 'streetAddress'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderCancellation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :actor, as: 'actor'
|
||||||
|
property :creation_date, as: 'creationDate'
|
||||||
|
property :quantity, as: 'quantity'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderCustomer
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :email, as: 'email'
|
||||||
|
property :explicit_marketing_preference, as: 'explicitMarketingPreference'
|
||||||
|
property :full_name, as: 'fullName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderDeliveryDetails
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :address, as: 'address', class: Google::Apis::ContentV2::OrderAddress, decorator: Google::Apis::ContentV2::OrderAddress::Representation
|
||||||
|
|
||||||
|
property :phone_number, as: 'phoneNumber'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItem
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2::OrderCancellation, decorator: Google::Apis::ContentV2::OrderCancellation::Representation
|
||||||
|
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :product, as: 'product', class: Google::Apis::ContentV2::OrderLineItemProduct, decorator: Google::Apis::ContentV2::OrderLineItemProduct::Representation
|
||||||
|
|
||||||
|
property :quantity_canceled, as: 'quantityCanceled'
|
||||||
|
property :quantity_delivered, as: 'quantityDelivered'
|
||||||
|
property :quantity_ordered, as: 'quantityOrdered'
|
||||||
|
property :quantity_pending, as: 'quantityPending'
|
||||||
|
property :quantity_returned, as: 'quantityReturned'
|
||||||
|
property :quantity_shipped, as: 'quantityShipped'
|
||||||
|
property :return_info, as: 'returnInfo', class: Google::Apis::ContentV2::OrderLineItemReturnInfo, decorator: Google::Apis::ContentV2::OrderLineItemReturnInfo::Representation
|
||||||
|
|
||||||
|
collection :returns, as: 'returns', class: Google::Apis::ContentV2::OrderReturn, decorator: Google::Apis::ContentV2::OrderReturn::Representation
|
||||||
|
|
||||||
|
property :shipping_details, as: 'shippingDetails', class: Google::Apis::ContentV2::OrderLineItemShippingDetails, decorator: Google::Apis::ContentV2::OrderLineItemShippingDetails::Representation
|
||||||
|
|
||||||
|
property :tax, as: 'tax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemProduct
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :brand, as: 'brand'
|
||||||
|
property :channel, as: 'channel'
|
||||||
|
property :condition, as: 'condition'
|
||||||
|
property :content_language, as: 'contentLanguage'
|
||||||
|
property :gtin, as: 'gtin'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :image_link, as: 'imageLink'
|
||||||
|
property :item_group_id, as: 'itemGroupId'
|
||||||
|
property :mpn, as: 'mpn'
|
||||||
|
property :offer_id, as: 'offerId'
|
||||||
|
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :shown_image, as: 'shownImage'
|
||||||
|
property :target_country, as: 'targetCountry'
|
||||||
|
property :title, as: 'title'
|
||||||
|
collection :variant_attributes, as: 'variantAttributes', class: Google::Apis::ContentV2::OrderLineItemProductVariantAttribute, decorator: Google::Apis::ContentV2::OrderLineItemProductVariantAttribute::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemProductVariantAttribute
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dimension, as: 'dimension'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemReturnInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :days_to_return, as: 'daysToReturn'
|
||||||
|
property :is_returnable, as: 'isReturnable'
|
||||||
|
property :policy_url, as: 'policyUrl'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemShippingDetails
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :deliver_by_date, as: 'deliverByDate'
|
||||||
|
property :method_prop, as: 'method', class: Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod, decorator: Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod::Representation
|
||||||
|
|
||||||
|
property :ship_by_date, as: 'shipByDate'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderLineItemShippingDetailsMethod
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :carrier, as: 'carrier'
|
||||||
|
property :max_days_in_transit, as: 'maxDaysInTransit'
|
||||||
|
property :method_name, as: 'methodName'
|
||||||
|
property :min_days_in_transit, as: 'minDaysInTransit'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderPaymentMethod
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :billing_address, as: 'billingAddress', class: Google::Apis::ContentV2::OrderAddress, decorator: Google::Apis::ContentV2::OrderAddress::Representation
|
||||||
|
|
||||||
|
property :expiration_month, as: 'expirationMonth'
|
||||||
|
property :expiration_year, as: 'expirationYear'
|
||||||
|
property :last_four_digits, as: 'lastFourDigits'
|
||||||
|
property :phone_number, as: 'phoneNumber'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderRefund
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :actor, as: 'actor'
|
||||||
|
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :creation_date, as: 'creationDate'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderReturn
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :actor, as: 'actor'
|
||||||
|
property :creation_date, as: 'creationDate'
|
||||||
|
property :quantity, as: 'quantity'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderShipment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :carrier, as: 'carrier'
|
||||||
|
property :creation_date, as: 'creationDate'
|
||||||
|
property :delivery_date, as: 'deliveryDate'
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation
|
||||||
|
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :tracking_id, as: 'trackingId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderShipmentLineItemShipment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :line_item_id, as: 'lineItemId'
|
||||||
|
property :quantity, as: 'quantity'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersAcknowledgeRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersAcknowledgeResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersAdvanceTestOrderResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCancelLineItemRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :line_item_id, as: 'lineItemId'
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
property :quantity, as: 'quantity'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCancelLineItemResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCancelRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCancelResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCreateTestOrderRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :template_name, as: 'templateName'
|
||||||
|
property :test_order, as: 'testOrder', class: Google::Apis::ContentV2::TestOrder, decorator: Google::Apis::ContentV2::TestOrder::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCreateTestOrderResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :order_id, as: 'orderId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :entries, as: 'entries', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntry::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :batch_id, as: 'batchId'
|
||||||
|
property :cancel, as: 'cancel', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel::Representation
|
||||||
|
|
||||||
|
property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem::Representation
|
||||||
|
|
||||||
|
property :merchant_id, as: 'merchantId'
|
||||||
|
property :merchant_order_id, as: 'merchantOrderId'
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
property :order_id, as: 'orderId'
|
||||||
|
property :refund, as: 'refund', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund::Representation
|
||||||
|
|
||||||
|
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem::Representation
|
||||||
|
|
||||||
|
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems::Representation
|
||||||
|
|
||||||
|
property :update_shipment, as: 'updateShipment', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryCancel
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryCancelLineItem
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :line_item_id, as: 'lineItemId'
|
||||||
|
property :quantity, as: 'quantity'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryRefund
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryReturnLineItem
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :line_item_id, as: 'lineItemId'
|
||||||
|
property :quantity, as: 'quantity'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryShipLineItems
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :carrier, as: 'carrier'
|
||||||
|
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation
|
||||||
|
|
||||||
|
property :shipment_id, as: 'shipmentId'
|
||||||
|
property :tracking_id, as: 'trackingId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchRequestEntryUpdateShipment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :carrier, as: 'carrier'
|
||||||
|
property :shipment_id, as: 'shipmentId'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :tracking_id, as: 'trackingId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :entries, as: 'entries', class: Google::Apis::ContentV2::OrdersCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::OrdersCustomBatchResponseEntry::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersCustomBatchResponseEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :batch_id, as: 'batchId'
|
||||||
|
property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
|
||||||
|
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :order, as: 'order', class: Google::Apis::ContentV2::Order, decorator: Google::Apis::ContentV2::Order::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersGetByMerchantOrderIdResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :order, as: 'order', class: Google::Apis::ContentV2::Order, decorator: Google::Apis::ContentV2::Order::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersGetTestOrderTemplateResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :template, as: 'template', class: Google::Apis::ContentV2::TestOrder, decorator: Google::Apis::ContentV2::TestOrder::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersListResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :resources, as: 'resources', class: Google::Apis::ContentV2::Order, decorator: Google::Apis::ContentV2::Order::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersRefundRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersRefundResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersReturnLineItemRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :line_item_id, as: 'lineItemId'
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
property :quantity, as: 'quantity'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
property :reason_text, as: 'reasonText'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersReturnLineItemResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersShipLineItemsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :carrier, as: 'carrier'
|
||||||
|
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation
|
||||||
|
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
property :shipment_id, as: 'shipmentId'
|
||||||
|
property :tracking_id, as: 'trackingId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersShipLineItemsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersUpdateMerchantOrderIdRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :merchant_order_id, as: 'merchantOrderId'
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersUpdateMerchantOrderIdResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersUpdateShipmentRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :carrier, as: 'carrier'
|
||||||
|
property :operation_id, as: 'operationId'
|
||||||
|
property :shipment_id, as: 'shipmentId'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :tracking_id, as: 'trackingId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrdersUpdateShipmentResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :execution_status, as: 'executionStatus'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Price
|
class Price
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1154,7 +1913,7 @@ module Google
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
property :identifier_exists, as: 'identifierExists'
|
property :identifier_exists, as: 'identifierExists'
|
||||||
property :image_link, as: 'imageLink'
|
property :image_link, as: 'imageLink'
|
||||||
property :installment, as: 'installment', class: Google::Apis::ContentV2::ProductInstallment, decorator: Google::Apis::ContentV2::ProductInstallment::Representation
|
property :installment, as: 'installment', class: Google::Apis::ContentV2::Installment, decorator: Google::Apis::ContentV2::Installment::Representation
|
||||||
|
|
||||||
property :is_bundle, as: 'isBundle'
|
property :is_bundle, as: 'isBundle'
|
||||||
property :item_group_id, as: 'itemGroupId'
|
property :item_group_id, as: 'itemGroupId'
|
||||||
|
@ -1175,6 +1934,7 @@ module Google
|
||||||
property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
property :sale_price_effective_date, as: 'salePriceEffectiveDate'
|
property :sale_price_effective_date, as: 'salePriceEffectiveDate'
|
||||||
|
property :sell_on_google_quantity, as: 'sellOnGoogleQuantity'
|
||||||
collection :shipping, as: 'shipping', class: Google::Apis::ContentV2::ProductShipping, decorator: Google::Apis::ContentV2::ProductShipping::Representation
|
collection :shipping, as: 'shipping', class: Google::Apis::ContentV2::ProductShipping, decorator: Google::Apis::ContentV2::ProductShipping::Representation
|
||||||
|
|
||||||
property :shipping_height, as: 'shippingHeight', class: Google::Apis::ContentV2::ProductShippingDimension, decorator: Google::Apis::ContentV2::ProductShippingDimension::Representation
|
property :shipping_height, as: 'shippingHeight', class: Google::Apis::ContentV2::ProductShippingDimension, decorator: Google::Apis::ContentV2::ProductShippingDimension::Representation
|
||||||
|
@ -1239,15 +1999,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ProductInstallment
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
|
||||||
|
|
||||||
property :months, as: 'months'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ProductShipping
|
class ProductShipping
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1446,6 +2197,81 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TestOrder
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer, as: 'customer', class: Google::Apis::ContentV2::TestOrderCustomer, decorator: Google::Apis::ContentV2::TestOrderCustomer::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::TestOrderLineItem, decorator: Google::Apis::ContentV2::TestOrderLineItem::Representation
|
||||||
|
|
||||||
|
property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2::TestOrderPaymentMethod::Representation
|
||||||
|
|
||||||
|
property :predefined_delivery_address, as: 'predefinedDeliveryAddress'
|
||||||
|
property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :shipping_option, as: 'shippingOption'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestOrderCustomer
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :email, as: 'email'
|
||||||
|
property :explicit_marketing_preference, as: 'explicitMarketingPreference'
|
||||||
|
property :full_name, as: 'fullName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestOrderLineItem
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :product, as: 'product', class: Google::Apis::ContentV2::TestOrderLineItemProduct, decorator: Google::Apis::ContentV2::TestOrderLineItemProduct::Representation
|
||||||
|
|
||||||
|
property :quantity_ordered, as: 'quantityOrdered'
|
||||||
|
property :return_info, as: 'returnInfo', class: Google::Apis::ContentV2::OrderLineItemReturnInfo, decorator: Google::Apis::ContentV2::OrderLineItemReturnInfo::Representation
|
||||||
|
|
||||||
|
property :shipping_details, as: 'shippingDetails', class: Google::Apis::ContentV2::OrderLineItemShippingDetails, decorator: Google::Apis::ContentV2::OrderLineItemShippingDetails::Representation
|
||||||
|
|
||||||
|
property :unit_tax, as: 'unitTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestOrderLineItemProduct
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :brand, as: 'brand'
|
||||||
|
property :channel, as: 'channel'
|
||||||
|
property :condition, as: 'condition'
|
||||||
|
property :content_language, as: 'contentLanguage'
|
||||||
|
property :gtin, as: 'gtin'
|
||||||
|
property :image_link, as: 'imageLink'
|
||||||
|
property :item_group_id, as: 'itemGroupId'
|
||||||
|
property :mpn, as: 'mpn'
|
||||||
|
property :offer_id, as: 'offerId'
|
||||||
|
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||||
|
|
||||||
|
property :target_country, as: 'targetCountry'
|
||||||
|
property :title, as: 'title'
|
||||||
|
collection :variant_attributes, as: 'variantAttributes', class: Google::Apis::ContentV2::OrderLineItemProductVariantAttribute, decorator: Google::Apis::ContentV2::OrderLineItemProductVariantAttribute::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestOrderPaymentMethod
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :expiration_month, as: 'expirationMonth'
|
||||||
|
property :expiration_year, as: 'expirationYear'
|
||||||
|
property :last_four_digits, as: 'lastFourDigits'
|
||||||
|
property :predefined_billing_address, as: 'predefinedBillingAddress'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Weight
|
class Weight
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/coordinate/
|
# @see https://developers.google.com/coordinate/
|
||||||
module CoordinateV1
|
module CoordinateV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20141215'
|
REVISION = '20150811'
|
||||||
|
|
||||||
# View and manage your Google Maps Coordinate jobs
|
# View and manage your Google Maps Coordinate jobs
|
||||||
AUTH_COORDINATE = 'https://www.googleapis.com/auth/coordinate'
|
AUTH_COORDINATE = 'https://www.googleapis.com/auth/coordinate'
|
||||||
|
|
|
@ -77,8 +77,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_custom_field_defs(team_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_custom_field_defs(team_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/custom_fields'
|
command = make_simple_command(:get, 'teams/{teamId}/custom_fields', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CoordinateV1::ListCustomFieldDefResponse::Representation
|
command.response_representation = Google::Apis::CoordinateV1::ListCustomFieldDefResponse::Representation
|
||||||
command.response_class = Google::Apis::CoordinateV1::ListCustomFieldDefResponse
|
command.response_class = Google::Apis::CoordinateV1::ListCustomFieldDefResponse
|
||||||
command.params['teamId'] = team_id unless team_id.nil?
|
command.params['teamId'] = team_id unless team_id.nil?
|
||||||
|
@ -115,8 +114,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_job(team_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_job(team_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/jobs/{jobId}'
|
command = make_simple_command(:get, 'teams/{teamId}/jobs/{jobId}', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CoordinateV1::Job::Representation
|
command.response_representation = Google::Apis::CoordinateV1::Job::Representation
|
||||||
command.response_class = Google::Apis::CoordinateV1::Job
|
command.response_class = Google::Apis::CoordinateV1::Job
|
||||||
command.params['teamId'] = team_id unless team_id.nil?
|
command.params['teamId'] = team_id unless team_id.nil?
|
||||||
|
@ -176,8 +174,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_job(team_id, address, lat, lng, title, job_object = nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, note: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_job(team_id, address, lat, lng, title, job_object = nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, note: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/jobs'
|
command = make_simple_command(:post, 'teams/{teamId}/jobs', options)
|
||||||
command = make_simple_command(:post, path, options)
|
|
||||||
command.request_representation = Google::Apis::CoordinateV1::Job::Representation
|
command.request_representation = Google::Apis::CoordinateV1::Job::Representation
|
||||||
command.request_object = job_object
|
command.request_object = job_object
|
||||||
command.response_representation = Google::Apis::CoordinateV1::Job::Representation
|
command.response_representation = Google::Apis::CoordinateV1::Job::Representation
|
||||||
|
@ -205,6 +202,8 @@ module Google
|
||||||
# Maximum number of results to return in one page.
|
# Maximum number of results to return in one page.
|
||||||
# @param [String] min_modified_timestamp_ms
|
# @param [String] min_modified_timestamp_ms
|
||||||
# Minimum time a job was modified in milliseconds since epoch.
|
# Minimum time a job was modified in milliseconds since epoch.
|
||||||
|
# @param [Boolean] omit_job_changes
|
||||||
|
# Whether to omit detail job history information.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Continuation token
|
# Continuation token
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -228,14 +227,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_jobs(team_id, max_results: nil, min_modified_timestamp_ms: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_jobs(team_id, max_results: nil, min_modified_timestamp_ms: nil, omit_job_changes: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/jobs'
|
command = make_simple_command(:get, 'teams/{teamId}/jobs', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CoordinateV1::ListJobResponse::Representation
|
command.response_representation = Google::Apis::CoordinateV1::ListJobResponse::Representation
|
||||||
command.response_class = Google::Apis::CoordinateV1::ListJobResponse
|
command.response_class = Google::Apis::CoordinateV1::ListJobResponse
|
||||||
command.params['teamId'] = team_id unless team_id.nil?
|
command.params['teamId'] = team_id unless team_id.nil?
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
command.query['minModifiedTimestampMs'] = min_modified_timestamp_ms unless min_modified_timestamp_ms.nil?
|
command.query['minModifiedTimestampMs'] = min_modified_timestamp_ms unless min_modified_timestamp_ms.nil?
|
||||||
|
command.query['omitJobChanges'] = omit_job_changes unless omit_job_changes.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -297,8 +296,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_job(team_id, job_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, progress: nil, title: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_job(team_id, job_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, progress: nil, title: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/jobs/{jobId}'
|
command = make_simple_command(:patch, 'teams/{teamId}/jobs/{jobId}', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::CoordinateV1::Job::Representation
|
command.request_representation = Google::Apis::CoordinateV1::Job::Representation
|
||||||
command.request_object = job_object
|
command.request_object = job_object
|
||||||
command.response_representation = Google::Apis::CoordinateV1::Job::Representation
|
command.response_representation = Google::Apis::CoordinateV1::Job::Representation
|
||||||
|
@ -374,8 +372,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_job(team_id, job_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, progress: nil, title: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_job(team_id, job_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, progress: nil, title: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/jobs/{jobId}'
|
command = make_simple_command(:put, 'teams/{teamId}/jobs/{jobId}', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::CoordinateV1::Job::Representation
|
command.request_representation = Google::Apis::CoordinateV1::Job::Representation
|
||||||
command.request_object = job_object
|
command.request_object = job_object
|
||||||
command.response_representation = Google::Apis::CoordinateV1::Job::Representation
|
command.response_representation = Google::Apis::CoordinateV1::Job::Representation
|
||||||
|
@ -431,8 +428,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_locations(team_id, worker_email, start_timestamp_ms, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_locations(team_id, worker_email, start_timestamp_ms, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/workers/{workerEmail}/locations'
|
command = make_simple_command(:get, 'teams/{teamId}/workers/{workerEmail}/locations', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CoordinateV1::ListLocationResponse::Representation
|
command.response_representation = Google::Apis::CoordinateV1::ListLocationResponse::Representation
|
||||||
command.response_class = Google::Apis::CoordinateV1::ListLocationResponse
|
command.response_class = Google::Apis::CoordinateV1::ListLocationResponse
|
||||||
command.params['teamId'] = team_id unless team_id.nil?
|
command.params['teamId'] = team_id unless team_id.nil?
|
||||||
|
@ -473,8 +469,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_schedule(team_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_schedule(team_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/jobs/{jobId}/schedule'
|
command = make_simple_command(:get, 'teams/{teamId}/jobs/{jobId}/schedule', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
||||||
command.response_class = Google::Apis::CoordinateV1::Schedule
|
command.response_class = Google::Apis::CoordinateV1::Schedule
|
||||||
command.params['teamId'] = team_id unless team_id.nil?
|
command.params['teamId'] = team_id unless team_id.nil?
|
||||||
|
@ -523,8 +518,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def patch_schedule(team_id, job_id, schedule_object = nil, all_day: nil, duration: nil, end_time: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def patch_schedule(team_id, job_id, schedule_object = nil, all_day: nil, duration: nil, end_time: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/jobs/{jobId}/schedule'
|
command = make_simple_command(:patch, 'teams/{teamId}/jobs/{jobId}/schedule', options)
|
||||||
command = make_simple_command(:patch, path, options)
|
|
||||||
command.request_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
command.request_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
||||||
command.request_object = schedule_object
|
command.request_object = schedule_object
|
||||||
command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
||||||
|
@ -578,8 +572,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_schedule(team_id, job_id, schedule_object = nil, all_day: nil, duration: nil, end_time: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def update_schedule(team_id, job_id, schedule_object = nil, all_day: nil, duration: nil, end_time: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/jobs/{jobId}/schedule'
|
command = make_simple_command(:put, 'teams/{teamId}/jobs/{jobId}/schedule', options)
|
||||||
command = make_simple_command(:put, path, options)
|
|
||||||
command.request_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
command.request_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
||||||
command.request_object = schedule_object
|
command.request_object = schedule_object
|
||||||
command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
|
||||||
|
@ -625,8 +618,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_teams(admin: nil, dispatcher: nil, worker: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_teams(admin: nil, dispatcher: nil, worker: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams'
|
command = make_simple_command(:get, 'teams', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CoordinateV1::ListTeamResponse::Representation
|
command.response_representation = Google::Apis::CoordinateV1::ListTeamResponse::Representation
|
||||||
command.response_class = Google::Apis::CoordinateV1::ListTeamResponse
|
command.response_class = Google::Apis::CoordinateV1::ListTeamResponse
|
||||||
command.query['admin'] = admin unless admin.nil?
|
command.query['admin'] = admin unless admin.nil?
|
||||||
|
@ -663,8 +655,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_workers(team_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_workers(team_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'teams/{teamId}/workers'
|
command = make_simple_command(:get, 'teams/{teamId}/workers', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CoordinateV1::ListWorkerResponse::Representation
|
command.response_representation = Google::Apis::CoordinateV1::ListWorkerResponse::Representation
|
||||||
command.response_class = Google::Apis::CoordinateV1::ListWorkerResponse
|
command.response_class = Google::Apis::CoordinateV1::ListWorkerResponse
|
||||||
command.params['teamId'] = team_id unless team_id.nil?
|
command.params['teamId'] = team_id unless team_id.nil?
|
||||||
|
|
|
@ -153,8 +153,7 @@ module Google
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_cses(q, c2coff: nil, cr: nil, cref: nil, cx: nil, date_restrict: nil, exact_terms: nil, exclude_terms: nil, file_type: nil, filter: nil, gl: nil, googlehost: nil, high_range: nil, hl: nil, hq: nil, img_color_type: nil, img_dominant_color: nil, img_size: nil, img_type: nil, link_site: nil, low_range: nil, lr: nil, num: nil, or_terms: nil, related_site: nil, rights: nil, safe: nil, search_type: nil, site_search: nil, site_search_filter: nil, sort: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_cses(q, c2coff: nil, cr: nil, cref: nil, cx: nil, date_restrict: nil, exact_terms: nil, exclude_terms: nil, file_type: nil, filter: nil, gl: nil, googlehost: nil, high_range: nil, hl: nil, hq: nil, img_color_type: nil, img_dominant_color: nil, img_size: nil, img_type: nil, link_site: nil, low_range: nil, lr: nil, num: nil, or_terms: nil, related_site: nil, rights: nil, safe: nil, search_type: nil, site_search: nil, site_search_filter: nil, sort: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
path = 'v1'
|
command = make_simple_command(:get, 'v1', options)
|
||||||
command = make_simple_command(:get, path, options)
|
|
||||||
command.response_representation = Google::Apis::CustomsearchV1::Search::Representation
|
command.response_representation = Google::Apis::CustomsearchV1::Search::Representation
|
||||||
command.response_class = Google::Apis::CustomsearchV1::Search
|
command.response_class = Google::Apis::CustomsearchV1::Search
|
||||||
command.query['c2coff'] = c2coff unless c2coff.nil?
|
command.query['c2coff'] = c2coff unless c2coff.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/datastore/
|
# @see https://developers.google.com/datastore/
|
||||||
module DatastoreV1beta2
|
module DatastoreV1beta2
|
||||||
VERSION = 'V1beta2'
|
VERSION = 'V1beta2'
|
||||||
REVISION = '20150402'
|
REVISION = '20151008'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue