From b3daed447deabce28cf7965f8a47ffdd634b5e66 Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Thu, 30 Jul 2015 17:05:47 -0700 Subject: [PATCH] regenerate APIs --- api_names_out.yaml | 73 +- .../apis/adexchangebuyer_v1_3/service.rb | 6 +- .../google/apis/adexchangeseller_v2_0.rb | 2 +- .../apis/adexchangeseller_v2_0/service.rb | 10 +- generated/google/apis/admin_directory_v1.rb | 2 +- .../google/apis/admin_directory_v1/classes.rb | 34 + .../admin_directory_v1/representations.rb | 5 + generated/google/apis/adsense_v1_4.rb | 2 +- generated/google/apis/adsense_v1_4/service.rb | 20 +- generated/google/apis/adsensehost_v4_1.rb | 2 +- .../google/apis/adsensehost_v4_1/service.rb | 38 +- generated/google/apis/analytics_v3/service.rb | 76 +- .../apis/androidenterprise_v1/service.rb | 12 +- generated/google/apis/appstate_v1.rb | 2 +- generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 22 +- .../apis/bigquery_v2/representations.rb | 2 + generated/google/apis/bigquery_v2/service.rb | 8 +- generated/google/apis/blogger_v3/service.rb | 14 +- generated/google/apis/books_v1/service.rb | 94 +- generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/calendar_v3/classes.rb | 70 +- generated/google/apis/calendar_v3/service.rb | 30 +- generated/google/apis/civicinfo_v2/service.rb | 2 +- .../google/apis/cloudmonitoring_v2beta2.rb | 2 +- .../apis/cloudmonitoring_v2beta2/service.rb | 16 +- .../apis/cloudresourcemanager_v1beta1.rb | 2 +- .../cloudresourcemanager_v1beta1/classes.rb | 372 +++++ .../representations.rb | 155 ++ .../cloudresourcemanager_v1beta1/service.rb | 109 ++ generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 39 +- .../google/apis/compute_v1/representations.rb | 1 - generated/google/apis/compute_v1/service.rb | 1278 ++++++----------- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 40 +- .../google/apis/content_v2/representations.rb | 2 + generated/google/apis/content_v2/service.rb | 3 +- .../google/apis/coordinate_v1/service.rb | 22 +- .../google/apis/customsearch_v1/service.rb | 6 +- .../google/apis/deploymentmanager_v2beta2.rb | 2 +- .../apis/deploymentmanager_v2beta2/classes.rb | 2 +- .../apis/deploymentmanager_v2beta2/service.rb | 140 +- generated/google/apis/dfareporting_v2_1.rb | 2 +- .../google/apis/dfareporting_v2_1/classes.rb | 8 +- .../google/apis/dfareporting_v2_1/service.rb | 127 +- generated/google/apis/doubleclicksearch_v2.rb | 2 +- .../apis/doubleclicksearch_v2/service.rb | 22 +- generated/google/apis/drive_v2.rb | 5 +- generated/google/apis/drive_v2/classes.rb | 4 +- generated/google/apis/drive_v2/service.rb | 24 +- generated/google/apis/fitness_v1.rb | 2 +- generated/google/apis/fitness_v1/classes.rb | 75 +- .../google/apis/fitness_v1/representations.rb | 2 - generated/google/apis/fitness_v1/service.rb | 6 +- .../google/apis/fusiontables_v2/service.rb | 18 +- .../games_configuration_v1configuration.rb | 2 +- generated/google/apis/games_v1.rb | 2 +- generated/google/apis/games_v1/service.rb | 36 +- generated/google/apis/genomics_v1.rb | 2 +- generated/google/apis/genomics_v1/classes.rb | 109 +- generated/google/apis/genomics_v1/service.rb | 2 +- generated/google/apis/licensing_v1/service.rb | 4 +- .../google/apis/mapsengine_v1/service.rb | 16 +- generated/google/apis/mirror_v1.rb | 2 +- .../google/apis/pagespeedonline_v2/service.rb | 6 +- generated/google/apis/plus_domains_v1.rb | 2 +- generated/google/apis/plus_v1.rb | 2 +- generated/google/apis/plus_v1/service.rb | 12 +- generated/google/apis/pubsub_v1beta2.rb | 2 +- .../google/apis/pubsub_v1beta2/classes.rb | 41 +- .../google/apis/pubsub_v1beta2/service.rb | 26 +- .../apis/replicapool_v1beta2/service.rb | 6 +- .../google/apis/replicapoolupdater_v1beta1.rb | 2 +- .../replicapoolupdater_v1beta1/classes.rb | 9 +- .../representations.rb | 1 + .../replicapoolupdater_v1beta1/service.rb | 6 +- generated/google/apis/reseller_v1/service.rb | 2 +- .../apis/site_verification_v1/service.rb | 4 +- .../google/apis/sqladmin_v1beta4/service.rb | 8 +- generated/google/apis/storage_v1/service.rb | 12 +- .../google/apis/taskqueue_v1beta2/service.rb | 18 +- generated/google/apis/translate_v2/service.rb | 12 +- .../google/apis/urlshortener_v1/service.rb | 6 +- generated/google/apis/webmasters_v3.rb | 2 +- .../google/apis/webmasters_v3/classes.rb | 22 +- .../google/apis/webmasters_v3/service.rb | 6 +- .../apis/youtube_analytics_v1/service.rb | 50 +- generated/google/apis/youtube_v3/service.rb | 610 ++++---- 89 files changed, 2245 insertions(+), 1819 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 3872069da..b0f289919 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -1603,6 +1603,7 @@ "/admin:directory_v1/Members/members/member": member "/admin:directory_v1/Members/nextPageToken": next_page_token "/admin:directory_v1/MobileDevice": mobile_device +"/admin:directory_v1/MobileDevice/adbStatus": adb_status "/admin:directory_v1/MobileDevice/applications": applications "/admin:directory_v1/MobileDevice/applications/application": application "/admin:directory_v1/MobileDevice/applications/application/displayName": display_name @@ -1614,6 +1615,7 @@ "/admin:directory_v1/MobileDevice/basebandVersion": baseband_version "/admin:directory_v1/MobileDevice/buildNumber": build_number "/admin:directory_v1/MobileDevice/defaultLanguage": default_language +"/admin:directory_v1/MobileDevice/developerOptionsStatus": developer_options_status "/admin:directory_v1/MobileDevice/deviceCompromisedStatus": device_compromised_status "/admin:directory_v1/MobileDevice/deviceId": device_id "/admin:directory_v1/MobileDevice/email": email @@ -1632,10 +1634,14 @@ "/admin:directory_v1/MobileDevice/name/name": name "/admin:directory_v1/MobileDevice/networkOperator": network_operator "/admin:directory_v1/MobileDevice/os": os +"/admin:directory_v1/MobileDevice/otherAccountsInfo": other_accounts_info +"/admin:directory_v1/MobileDevice/otherAccountsInfo/other_accounts_info": other_accounts_info "/admin:directory_v1/MobileDevice/resourceId": resource_id "/admin:directory_v1/MobileDevice/serialNumber": serial_number "/admin:directory_v1/MobileDevice/status": status +"/admin:directory_v1/MobileDevice/supportsWorkProfile": supports_work_profile "/admin:directory_v1/MobileDevice/type": type +"/admin:directory_v1/MobileDevice/unknownSourcesStatus": unknown_sources_status "/admin:directory_v1/MobileDevice/userAgent": user_agent "/admin:directory_v1/MobileDevice/wifiMacAddress": wifi_mac_address "/admin:directory_v1/MobileDeviceAction": mobile_device_action @@ -4566,6 +4572,7 @@ "/bigquery:v2/Table/description": description "/bigquery:v2/Table/etag": etag "/bigquery:v2/Table/expirationTime": expiration_time +"/bigquery:v2/Table/externalDataConfiguration": external_data_configuration "/bigquery:v2/Table/friendlyName": friendly_name "/bigquery:v2/Table/id": id "/bigquery:v2/Table/kind": kind @@ -7985,8 +7992,6 @@ "/compute:v1/VpnTunnel/description": description "/compute:v1/VpnTunnel/detailedStatus": detailed_status "/compute:v1/VpnTunnel/id": id -"/compute:v1/VpnTunnel/ikeNetworks": ike_networks -"/compute:v1/VpnTunnel/ikeNetworks/ike_network": ike_network "/compute:v1/VpnTunnel/ikeVersion": ike_version "/compute:v1/VpnTunnel/kind": kind "/compute:v1/VpnTunnel/name": name @@ -8432,6 +8437,7 @@ "/content:v2/Inventory/quantity": quantity "/content:v2/Inventory/salePrice": sale_price "/content:v2/Inventory/salePriceEffectiveDate": sale_price_effective_date +"/content:v2/Inventory/sellOnGoogleQuantity": sell_on_google_quantity "/content:v2/InventoryCustomBatchRequest/entries": entries "/content:v2/InventoryCustomBatchRequest/entries/entry": entry "/content:v2/InventoryCustomBatchRequestEntry/batchId": batch_id @@ -8450,6 +8456,7 @@ "/content:v2/InventorySetRequest/quantity": quantity "/content:v2/InventorySetRequest/salePrice": sale_price "/content:v2/InventorySetRequest/salePriceEffectiveDate": sale_price_effective_date +"/content:v2/InventorySetRequest/sellOnGoogleQuantity": sell_on_google_quantity "/content:v2/InventorySetResponse/kind": kind "/content:v2/LoyaltyPoints": loyalty_points "/content:v2/LoyaltyPoints/name": name @@ -12207,6 +12214,7 @@ "/drive:v2/drive.files.patch/addParents": add_parents "/drive:v2/drive.files.patch/convert": convert "/drive:v2/drive.files.patch/fileId": file_id +"/drive:v2/drive.files.patch/modifiedDateBehavior": modified_date_behavior "/drive:v2/drive.files.patch/newRevision": new_revision "/drive:v2/drive.files.patch/ocr": ocr "/drive:v2/drive.files.patch/ocrLanguage": ocr_language @@ -12227,6 +12235,7 @@ "/drive:v2/drive.files.update/addParents": add_parents "/drive:v2/drive.files.update/convert": convert "/drive:v2/drive.files.update/fileId": file_id +"/drive:v2/drive.files.update/modifiedDateBehavior": modified_date_behavior "/drive:v2/drive.files.update/newRevision": new_revision "/drive:v2/drive.files.update/ocr": ocr "/drive:v2/drive.files.update/ocrLanguage": ocr_language @@ -12772,8 +12781,6 @@ "/fitness:v1/AggregateBy": aggregate_by "/fitness:v1/AggregateBy/dataSourceId": data_source_id "/fitness:v1/AggregateBy/dataTypeName": data_type_name -"/fitness:v1/AggregateBy/outputDataSourceId": output_data_source_id -"/fitness:v1/AggregateBy/outputDataTypeName": output_data_type_name "/fitness:v1/AggregateRequest": aggregate_request "/fitness:v1/AggregateRequest/aggregateBy": aggregate_by "/fitness:v1/AggregateRequest/aggregateBy/aggregate_by": aggregate_by @@ -14704,6 +14711,12 @@ "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.delete/projectId": project_id "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete": undelete_project "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete/projectId": project_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy": get_iam_policy +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy/resource": resource +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy": set_iam_policy +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy/resource": resource +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions": test_iam_permissions +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.testIamPermissions/resource": resource "/cloudresourcemanager:v1beta1/Project": project "/cloudresourcemanager:v1beta1/Project/projectNumber": project_number "/cloudresourcemanager:v1beta1/Project/projectId": project_id @@ -14717,6 +14730,56 @@ "/cloudresourcemanager:v1beta1/ListProjectsResponse/projects/project": project "/cloudresourcemanager:v1beta1/ListProjectsResponse/nextPageToken": next_page_token "/cloudresourcemanager:v1beta1/Empty": empty +"/cloudresourcemanager:v1beta1/GetIamPolicyRequest": get_iam_policy_request +"/cloudresourcemanager:v1beta1/Policy": policy +"/cloudresourcemanager:v1beta1/Policy/version": version +"/cloudresourcemanager:v1beta1/Policy/bindings": bindings +"/cloudresourcemanager:v1beta1/Policy/bindings/binding": binding +"/cloudresourcemanager:v1beta1/Policy/rules": rules +"/cloudresourcemanager:v1beta1/Policy/rules/rule": rule +"/cloudresourcemanager:v1beta1/Policy/etag": etag +"/cloudresourcemanager:v1beta1/Binding": binding +"/cloudresourcemanager:v1beta1/Binding/role": role +"/cloudresourcemanager:v1beta1/Binding/members": members +"/cloudresourcemanager:v1beta1/Binding/members/member": member +"/cloudresourcemanager:v1beta1/Rule": rule +"/cloudresourcemanager:v1beta1/Rule/description": description +"/cloudresourcemanager:v1beta1/Rule/permissions": permissions +"/cloudresourcemanager:v1beta1/Rule/permissions/permission": permission +"/cloudresourcemanager:v1beta1/Rule/action": action +"/cloudresourcemanager:v1beta1/Rule/in": in +"/cloudresourcemanager:v1beta1/Rule/in/in": in +"/cloudresourcemanager:v1beta1/Rule/notIn": not_in +"/cloudresourcemanager:v1beta1/Rule/notIn/not_in": not_in +"/cloudresourcemanager:v1beta1/Rule/conditions": conditions +"/cloudresourcemanager:v1beta1/Rule/conditions/condition": condition +"/cloudresourcemanager:v1beta1/Rule/logConfig": log_config +"/cloudresourcemanager:v1beta1/Rule/logConfig/log_config": log_config +"/cloudresourcemanager:v1beta1/Condition": condition +"/cloudresourcemanager:v1beta1/Condition/iam": iam +"/cloudresourcemanager:v1beta1/Condition/sys": sys +"/cloudresourcemanager:v1beta1/Condition/svc": svc +"/cloudresourcemanager:v1beta1/Condition/op": op +"/cloudresourcemanager:v1beta1/Condition/value": value +"/cloudresourcemanager:v1beta1/Condition/values": values +"/cloudresourcemanager:v1beta1/Condition/values/value": value +"/cloudresourcemanager:v1beta1/LogConfig": log_config +"/cloudresourcemanager:v1beta1/LogConfig/counter": counter +"/cloudresourcemanager:v1beta1/LogConfig/dataAccess": data_access +"/cloudresourcemanager:v1beta1/LogConfig/cloudAudit": cloud_audit +"/cloudresourcemanager:v1beta1/CounterOptions": counter_options +"/cloudresourcemanager:v1beta1/CounterOptions/metric": metric +"/cloudresourcemanager:v1beta1/CounterOptions/field": field +"/cloudresourcemanager:v1beta1/DataAccessOptions": data_access_options +"/cloudresourcemanager:v1beta1/CloudAuditOptions": cloud_audit_options +"/cloudresourcemanager:v1beta1/SetIamPolicyRequest": set_iam_policy_request +"/cloudresourcemanager:v1beta1/SetIamPolicyRequest/policy": policy +"/cloudresourcemanager:v1beta1/TestIamPermissionsRequest": test_iam_permissions_request +"/cloudresourcemanager:v1beta1/TestIamPermissionsRequest/permissions": permissions +"/cloudresourcemanager:v1beta1/TestIamPermissionsRequest/permissions/permission": permission +"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse": test_iam_permissions_response +"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse/permissions": permissions +"/cloudresourcemanager:v1beta1/TestIamPermissionsResponse/permissions/permission": permission "/container:v1/fields": fields "/container:v1/key": key "/container:v1/quotaUser": quota_user @@ -18002,7 +18065,6 @@ "/replicapoolupdater:v1beta1/replicapoolupdater.rollingUpdates.insert/zone": zone "/replicapoolupdater:v1beta1/replicapoolupdater.rollingUpdates.list": list_rolling_updates "/replicapoolupdater:v1beta1/replicapoolupdater.rollingUpdates.list/filter": filter -"/replicapoolupdater:v1beta1/replicapoolupdater.rollingUpdates.list/instanceGroupManager": instance_group_manager "/replicapoolupdater:v1beta1/replicapoolupdater.rollingUpdates.list/maxResults": max_results "/replicapoolupdater:v1beta1/replicapoolupdater.rollingUpdates.list/pageToken": page_token "/replicapoolupdater:v1beta1/replicapoolupdater.rollingUpdates.list/project": project @@ -18094,6 +18156,7 @@ "/replicapoolupdater:v1beta1/RollingUpdate/instanceGroupManager": instance_group_manager "/replicapoolupdater:v1beta1/RollingUpdate/instanceTemplate": instance_template "/replicapoolupdater:v1beta1/RollingUpdate/kind": kind +"/replicapoolupdater:v1beta1/RollingUpdate/oldInstanceTemplate": old_instance_template "/replicapoolupdater:v1beta1/RollingUpdate/policy": policy "/replicapoolupdater:v1beta1/RollingUpdate/policy/autoPauseAfterInstances": auto_pause_after_instances "/replicapoolupdater:v1beta1/RollingUpdate/policy/instanceStartupTimeoutSec": instance_startup_timeout_sec diff --git a/generated/google/apis/adexchangebuyer_v1_3/service.rb b/generated/google/apis/adexchangebuyer_v1_3/service.rb index 44b938747..a28e8ddab 100644 --- a/generated/google/apis/adexchangebuyer_v1_3/service.rb +++ b/generated/google/apis/adexchangebuyer_v1_3/service.rb @@ -599,6 +599,8 @@ module Google # The account id to get the reports. # @param [String] end_date_time # The end time of the report in ISO 8601 timestamp format using UTC. + # @param [String] start_date_time + # The start time of the report in ISO 8601 timestamp format using UTC. # @param [Fixnum] max_results # Maximum number of entries returned on one result page. If not set, the default # is 100. Optional. @@ -606,8 +608,6 @@ module Google # A continuation token, used to page through performance reports. To retrieve # the next page, set this parameter to the value of "nextPageToken" from the # previous response. Optional. - # @param [String] start_date_time - # The start time of the report in ISO 8601 timestamp format using UTC. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -629,7 +629,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_performance_reports(account_id: nil, end_date_time: nil, max_results: nil, page_token: nil, start_date_time: 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, path, options) command.response_representation = Google::Apis::AdexchangebuyerV1_3::PerformanceReportList::Representation diff --git a/generated/google/apis/adexchangeseller_v2_0.rb b/generated/google/apis/adexchangeseller_v2_0.rb index 83cd86d70..a614382df 100644 --- a/generated/google/apis/adexchangeseller_v2_0.rb +++ b/generated/google/apis/adexchangeseller_v2_0.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/seller-rest/ module AdexchangesellerV2_0 VERSION = 'V2_0' - REVISION = '20150719' + REVISION = '20150726' # View and manage your Ad Exchange data AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' diff --git a/generated/google/apis/adexchangeseller_v2_0/service.rb b/generated/google/apis/adexchangeseller_v2_0/service.rb index 9b64189ac..a8e7535ae 100644 --- a/generated/google/apis/adexchangeseller_v2_0/service.rb +++ b/generated/google/apis/adexchangeseller_v2_0/service.rb @@ -457,10 +457,12 @@ module Google # specify "alt=csv" as a query parameter. # @param [String] account_id # Account which owns the generated report. - # @param [Array, String] dimension - # Dimensions to base the report on. + # @param [String] start_date + # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [String] end_date # End of the date range to report on in "YYYY-MM-DD" format, inclusive. + # @param [Array, String] dimension + # Dimensions to base the report on. # @param [Array, String] filter # Filters to be run on the report. # @param [String] locale @@ -474,8 +476,6 @@ module Google # The name of a dimension or metric to sort the resulting report on, optionally # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is # specified, the column is sorted ascending. - # @param [String] start_date - # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [Fixnum] start_index # Index of the first row of report data to return. # @param [String] fields @@ -501,7 +501,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def generate_account_report(account_id, dimension: nil, end_date: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_date: 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? command = make_simple_command(:get, path, options) diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index 374940427..7cbb8d39a 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/directory/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '20150326' + REVISION = '20150720' # View and manage your Chrome OS devices' metadata AUTH_ADMIN_DIRECTORY_DEVICE_CHROMEOS = 'https://www.googleapis.com/auth/admin.directory.device.chromeos' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 6a1530450..db51ccd05 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -716,6 +716,12 @@ module Google class MobileDevice include Google::Apis::Core::Hashable + # Adb (USB debugging) enabled or disabled on device (Read-only) + # Corresponds to the JSON property `adbStatus` + # @return [Boolean] + attr_accessor :adb_status + alias_method :adb_status?, :adb_status + # List of applications installed on Mobile Device # Corresponds to the JSON property `applications` # @return [Array] @@ -736,6 +742,12 @@ module Google # @return [String] attr_accessor :default_language + # Developer options enabled or disabled on device (Read-only) + # Corresponds to the JSON property `developerOptionsStatus` + # @return [Boolean] + attr_accessor :developer_options_status + alias_method :developer_options_status?, :developer_options_status + # Mobile Device compromised status (Read-only) # Corresponds to the JSON property `deviceCompromisedStatus` # @return [String] @@ -820,6 +832,11 @@ module Google # @return [String] attr_accessor :os + # List of accounts added on device (Read-only) + # Corresponds to the JSON property `otherAccountsInfo` + # @return [Array] + attr_accessor :other_accounts_info + # Unique identifier of Mobile Device (Read-only) # Corresponds to the JSON property `resourceId` # @return [String] @@ -835,11 +852,23 @@ module Google # @return [String] attr_accessor :status + # Work profile supported on device (Read-only) + # Corresponds to the JSON property `supportsWorkProfile` + # @return [Boolean] + attr_accessor :supports_work_profile + alias_method :supports_work_profile?, :supports_work_profile + # The type of device (Read-only) # Corresponds to the JSON property `type` # @return [String] attr_accessor :type + # Unknown sources enabled or disabled on device (Read-only) + # Corresponds to the JSON property `unknownSourcesStatus` + # @return [Boolean] + attr_accessor :unknown_sources_status + alias_method :unknown_sources_status?, :unknown_sources_status + # Mobile Device user agent # Corresponds to the JSON property `userAgent` # @return [String] @@ -856,10 +885,12 @@ module Google # Update properties of this object def update!(**args) + @adb_status = args[:adb_status] unless args[:adb_status].nil? @applications = args[:applications] unless args[:applications].nil? @baseband_version = args[:baseband_version] unless args[:baseband_version].nil? @build_number = args[:build_number] unless args[:build_number].nil? @default_language = args[:default_language] unless args[:default_language].nil? + @developer_options_status = args[:developer_options_status] unless args[:developer_options_status].nil? @device_compromised_status = args[:device_compromised_status] unless args[:device_compromised_status].nil? @device_id = args[:device_id] unless args[:device_id].nil? @email = args[:email] unless args[:email].nil? @@ -876,10 +907,13 @@ module Google @name = args[:name] unless args[:name].nil? @network_operator = args[:network_operator] unless args[:network_operator].nil? @os = args[:os] unless args[:os].nil? + @other_accounts_info = args[:other_accounts_info] unless args[:other_accounts_info].nil? @resource_id = args[:resource_id] unless args[:resource_id].nil? @serial_number = args[:serial_number] unless args[:serial_number].nil? @status = args[:status] unless args[:status].nil? + @supports_work_profile = args[:supports_work_profile] unless args[:supports_work_profile].nil? @type = args[:type] unless args[:type].nil? + @unknown_sources_status = args[:unknown_sources_status] unless args[:unknown_sources_status].nil? @user_agent = args[:user_agent] unless args[:user_agent].nil? @wifi_mac_address = args[:wifi_mac_address] unless args[:wifi_mac_address].nil? end diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index 3db247334..62ff832bf 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -375,11 +375,13 @@ module Google class MobileDevice # @private class Representation < Google::Apis::Core::JsonRepresentation + property :adb_status, as: 'adbStatus' collection :applications, as: 'applications', class: Google::Apis::AdminDirectoryV1::MobileDevice::Application, decorator: Google::Apis::AdminDirectoryV1::MobileDevice::Application::Representation property :baseband_version, as: 'basebandVersion' property :build_number, as: 'buildNumber' property :default_language, as: 'defaultLanguage' + property :developer_options_status, as: 'developerOptionsStatus' property :device_compromised_status, as: 'deviceCompromisedStatus' property :device_id, as: 'deviceId' collection :email, as: 'email' @@ -398,10 +400,13 @@ module Google collection :name, as: 'name' property :network_operator, as: 'networkOperator' property :os, as: 'os' + collection :other_accounts_info, as: 'otherAccountsInfo' property :resource_id, as: 'resourceId' property :serial_number, as: 'serialNumber' property :status, as: 'status' + property :supports_work_profile, as: 'supportsWorkProfile' property :type, as: 'type' + property :unknown_sources_status, as: 'unknownSourcesStatus' property :user_agent, as: 'userAgent' property :wifi_mac_address, as: 'wifiMacAddress' end diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 6d03d6384..9731f27f9 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20150719' + REVISION = '20150726' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsense_v1_4/service.rb b/generated/google/apis/adsense_v1_4/service.rb index 0b1b3d62b..27158cdba 100644 --- a/generated/google/apis/adsense_v1_4/service.rb +++ b/generated/google/apis/adsense_v1_4/service.rb @@ -624,13 +624,15 @@ module Google # specify "alt=csv" as a query parameter. # @param [String] account_id # Account upon which to report. + # @param [String] start_date + # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + # @param [String] end_date + # End of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [String] currency # Optional currency to use when reporting on monetary metrics. Defaults to the # account's currency if not set. # @param [Array, String] dimension # Dimensions to base the report on. - # @param [String] end_date - # End of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [Array, String] filter # Filters to be run on the report. # @param [String] locale @@ -644,8 +646,6 @@ module Google # The name of a dimension or metric to sort the resulting report on, optionally # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is # specified, the column is sorted ascending. - # @param [String] start_date - # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [Fixnum] start_index # Index of the first row of report data to return. # @param [Boolean] use_timezone_reporting @@ -674,7 +674,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def generate_account_report(account_id, currency: nil, dimension: nil, end_date: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_date: 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? command = make_simple_command(:get, path, options) @@ -1448,6 +1448,10 @@ module Google # Generate an AdSense report based on the report request sent in the query # parameters. Returns the result as JSON; to retrieve output in CSV format # specify "alt=csv" as a query parameter. + # @param [String] start_date + # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + # @param [String] end_date + # End of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [Array, String] account_id # Accounts upon which to report. # @param [String] currency @@ -1455,8 +1459,6 @@ module Google # account's currency if not set. # @param [Array, String] dimension # Dimensions to base the report on. - # @param [String] end_date - # End of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [Array, String] filter # Filters to be run on the report. # @param [String] locale @@ -1470,8 +1472,6 @@ module Google # The name of a dimension or metric to sort the resulting report on, optionally # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is # specified, the column is sorted ascending. - # @param [String] start_date - # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [Fixnum] start_index # Index of the first row of report data to return. # @param [Boolean] use_timezone_reporting @@ -1500,7 +1500,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def generate_report(account_id: nil, currency: nil, dimension: nil, end_date: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_date: 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? command = make_simple_command(:get, path, options) diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 2788ca74f..ba01db724 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '20150719' + REVISION = '20150726' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/adsensehost_v4_1/service.rb b/generated/google/apis/adsensehost_v4_1/service.rb index eb8a4f2f0..cc8c56621 100644 --- a/generated/google/apis/adsensehost_v4_1/service.rb +++ b/generated/google/apis/adsensehost_v4_1/service.rb @@ -113,7 +113,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_accounts(filter_ad_client_id: nil, 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, path, options) command.response_representation = Google::Apis::AdsensehostV4_1::Accounts::Representation @@ -436,9 +436,9 @@ module Google # Account which contains the ad client. # @param [String] ad_client_id # Ad client which contains the ad unit. - # @param [Google::Apis::AdsensehostV4_1::AdUnit] ad_unit_object # @param [String] ad_unit_id # Ad unit to get. + # @param [Google::Apis::AdsensehostV4_1::AdUnit] ad_unit_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -460,7 +460,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_account_ad_unit(account_id, ad_client_id, ad_unit_object = nil, ad_unit_id: 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, path, options) command.request_representation = Google::Apis::AdsensehostV4_1::AdUnit::Representation @@ -523,10 +523,12 @@ module Google # specify "alt=csv" as a query parameter. # @param [String] account_id # Hosted account upon which to report. - # @param [Array, String] dimension - # Dimensions to base the report on. + # @param [String] start_date + # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [String] end_date # End of the date range to report on in "YYYY-MM-DD" format, inclusive. + # @param [Array, String] dimension + # Dimensions to base the report on. # @param [Array, String] filter # Filters to be run on the report. # @param [String] locale @@ -540,8 +542,6 @@ module Google # The name of a dimension or metric to sort the resulting report on, optionally # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is # specified, the column is sorted ascending. - # @param [String] start_date - # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [Fixnum] start_index # Index of the first row of report data to return. # @param [String] fields @@ -565,7 +565,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def generate_account_report(account_id, dimension: nil, end_date: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_date: 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, path, options) command.response_representation = Google::Apis::AdsensehostV4_1::Report::Representation @@ -667,12 +667,12 @@ module Google # user. # @param [Array, String] product_code # Products to associate with the user. + # @param [String] website_url + # The URL of the user's hosted website. # @param [String] user_locale # The preferred locale of the user. # @param [String] website_locale # The locale of the user's hosted website. - # @param [String] website_url - # The URL of the user's hosted website. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -694,7 +694,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def start_association_session(product_code: nil, user_locale: nil, website_locale: nil, website_url: 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, path, options) command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation @@ -734,7 +734,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def verify_association_session(token: nil, 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, path, options) command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation @@ -912,9 +912,9 @@ module Google # patch semantics. # @param [String] ad_client_id # Ad client in which the custom channel will be updated. - # @param [Google::Apis::AdsensehostV4_1::CustomChannel] custom_channel_object # @param [String] custom_channel_id # Custom channel to get. + # @param [Google::Apis::AdsensehostV4_1::CustomChannel] custom_channel_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -936,7 +936,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_custom_channel(ad_client_id, custom_channel_object = nil, custom_channel_id: 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, path, options) command.request_representation = Google::Apis::AdsensehostV4_1::CustomChannel::Representation @@ -993,10 +993,12 @@ module Google # Generate an AdSense report based on the report request sent in the query # parameters. Returns the result as JSON; to retrieve output in CSV format # specify "alt=csv" as a query parameter. - # @param [Array, String] dimension - # Dimensions to base the report on. + # @param [String] start_date + # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [String] end_date # End of the date range to report on in "YYYY-MM-DD" format, inclusive. + # @param [Array, String] dimension + # Dimensions to base the report on. # @param [Array, String] filter # Filters to be run on the report. # @param [String] locale @@ -1010,8 +1012,6 @@ module Google # The name of a dimension or metric to sort the resulting report on, optionally # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is # specified, the column is sorted ascending. - # @param [String] start_date - # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. # @param [Fixnum] start_index # Index of the first row of report data to return. # @param [String] fields @@ -1035,7 +1035,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def generate_report(dimension: nil, end_date: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_date: 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, path, options) command.response_representation = Google::Apis::AdsensehostV4_1::Report::Representation diff --git a/generated/google/apis/analytics_v3/service.rb b/generated/google/apis/analytics_v3/service.rb index 281990ff8..43bc60e47 100644 --- a/generated/google/apis/analytics_v3/service.rb +++ b/generated/google/apis/analytics_v3/service.rb @@ -53,23 +53,27 @@ module Google end # Returns Analytics data for a view (profile). - # @param [String] dimensions - # A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'. + # @param [String] ids + # Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, + # where XXXX is the Analytics view (profile) ID. + # @param [String] start_date + # Start date for fetching Analytics data. Requests can specify a start date + # formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or + # 7daysAgo). The default value is 7daysAgo. # @param [String] end_date # End date for fetching Analytics data. Request can should specify an end date # formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or # 7daysAgo). The default value is yesterday. - # @param [String] filters - # A comma-separated list of dimension or metric filters to be applied to - # Analytics data. - # @param [String] ids - # Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, - # where XXXX is the Analytics view (profile) ID. - # @param [Fixnum] max_results - # The maximum number of entries to include in this feed. # @param [String] metrics # A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. # At least one metric must be specified. + # @param [String] dimensions + # A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'. + # @param [String] filters + # A comma-separated list of dimension or metric filters to be applied to + # Analytics data. + # @param [Fixnum] max_results + # The maximum number of entries to include in this feed. # @param [String] output # The selected format for the response. Default format is JSON. # @param [String] sampling_level @@ -79,10 +83,6 @@ module Google # @param [String] sort # A comma-separated list of dimensions or metrics that determine the sort order # for Analytics data. - # @param [String] start_date - # Start date for fetching Analytics data. Requests can specify a start date - # formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or - # 7daysAgo). The default value is 7daysAgo. # @param [Fixnum] start_index # An index of the first entity to retrieve. Use this parameter as a pagination # mechanism along with the max-results parameter. @@ -107,7 +107,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_ga_data(dimensions: nil, end_date: nil, filters: nil, ids: nil, max_results: nil, metrics: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_date: 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, 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, path, options) command.response_representation = Google::Apis::AnalyticsV3::GaData::Representation @@ -131,34 +131,34 @@ module Google end # Returns Analytics Multi-Channel Funnels data for a view (profile). - # @param [String] dimensions - # A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source, - # mcf:medium'. + # @param [String] ids + # Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, + # where XXXX is the Analytics view (profile) ID. + # @param [String] start_date + # Start date for fetching Analytics data. Requests can specify a start date + # formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or + # 7daysAgo). The default value is 7daysAgo. # @param [String] end_date # End date for fetching Analytics data. Requests can specify a start date # formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or # 7daysAgo). The default value is 7daysAgo. - # @param [String] filters - # A comma-separated list of dimension or metric filters to be applied to the - # Analytics data. - # @param [String] ids - # Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, - # where XXXX is the Analytics view (profile) ID. - # @param [Fixnum] max_results - # The maximum number of entries to include in this feed. # @param [String] metrics # A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf: # totalConversions,mcf:totalConversionValue'. At least one metric must be # specified. + # @param [String] dimensions + # A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source, + # mcf:medium'. + # @param [String] filters + # A comma-separated list of dimension or metric filters to be applied to the + # Analytics data. + # @param [Fixnum] max_results + # The maximum number of entries to include in this feed. # @param [String] sampling_level # The desired sampling level. # @param [String] sort # A comma-separated list of dimensions or metrics that determine the sort order # for the Analytics data. - # @param [String] start_date - # Start date for fetching Analytics data. Requests can specify a start date - # formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or - # 7daysAgo). The default value is 7daysAgo. # @param [Fixnum] start_index # An index of the first entity to retrieve. Use this parameter as a pagination # mechanism along with the max-results parameter. @@ -183,7 +183,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_mcf_data(dimensions: nil, end_date: nil, filters: nil, ids: nil, max_results: nil, metrics: nil, sampling_level: nil, sort: nil, start_date: 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, path, options) command.response_representation = Google::Apis::AnalyticsV3::McfData::Representation @@ -205,19 +205,19 @@ module Google end # Returns real time data for a view (profile). + # @param [String] ids + # Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, + # where XXXX is the Analytics view (profile) ID. + # @param [String] metrics + # A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least + # one metric must be specified. # @param [String] dimensions # A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'. # @param [String] filters # A comma-separated list of dimension or metric filters to be applied to real # time data. - # @param [String] ids - # Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, - # where XXXX is the Analytics view (profile) ID. # @param [Fixnum] max_results # The maximum number of entries to include in this feed. - # @param [String] metrics - # A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least - # one metric must be specified. # @param [String] sort # A comma-separated list of dimensions or metrics that determine the sort order # for real time data. @@ -242,7 +242,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_realtime_data(dimensions: nil, filters: nil, ids: nil, max_results: nil, metrics: 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, path, options) command.response_representation = Google::Apis::AnalyticsV3::RealtimeData::Representation diff --git a/generated/google/apis/androidenterprise_v1/service.rb b/generated/google/apis/androidenterprise_v1/service.rb index 31f2762ec..5a5cb39e7 100644 --- a/generated/google/apis/androidenterprise_v1/service.rb +++ b/generated/google/apis/androidenterprise_v1/service.rb @@ -720,9 +720,9 @@ module Google end # Enrolls an enterprise with the calling MDM. - # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object # @param [String] token # The token provided by the enterprise to register the MDM. + # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -744,7 +744,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def enroll_enterprise(enterprise_object = nil, token: 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, path, options) command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation @@ -796,9 +796,9 @@ module Google # Establishes the binding between the MDM and an enterprise. This is now # deprecated; use enroll instead. - # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object # @param [String] token # The token provided by the enterprise to register the MDM. + # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -820,7 +820,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_enterprise(enterprise_object = nil, token: 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, path, options) command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation @@ -858,7 +858,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_enterprises(domain: nil, 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, path, options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation @@ -1921,7 +1921,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_users(enterprise_id, email: nil, 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, path, options) command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index e127d4636..e2258d4be 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/appstate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/web/api/states module AppstateV1 VERSION = 'V1' - REVISION = '20150714' + REVISION = '20150728' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 1650a5270..cf97f9807 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20150710' + REVISION = '20150723' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 460f3cdd2..4589d8d56 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -168,8 +168,8 @@ module Google # @return [String] attr_accessor :last_modified_time - # [Experimental] The location where the data resides. If not present, the data - # will be stored in the US. + # [Experimental] The geographic location where the dataset should reside. + # Possible values include EU and US. The default value is US. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -1585,9 +1585,10 @@ module Google # @return [Google::Apis::BigqueryV2::DatasetReference] attr_accessor :default_dataset - # [Optional] If set, don't actually run this job. A valid query will return a - # mostly empty response with some processing statistics, while an invalid query - # will return the same error it would if it wasn't a dry run. + # [Optional] If set to true, BigQuery doesn't run the job. Instead, if the query + # is valid, BigQuery returns statistics about the job such as how many bytes + # would be processed. If the query is invalid, an error returns. The default + # value is false. # Corresponds to the JSON property `dryRun` # @return [Boolean] attr_accessor :dry_run @@ -1760,6 +1761,13 @@ module Google # @return [String] attr_accessor :expiration_time + # [Experimental] Describes the data format, location, and other properties of a + # table stored outside of BigQuery. By defining these properties, the data + # source can then be queried as if it were a standard BigQuery table. + # Corresponds to the JSON property `externalDataConfiguration` + # @return [Google::Apis::BigqueryV2::ExternalDataConfiguration] + attr_accessor :external_data_configuration + # [Optional] A descriptive name for this table. # Corresponds to the JSON property `friendlyName` # @return [String] @@ -1781,7 +1789,8 @@ module Google # @return [String] attr_accessor :last_modified_time - # [Optional] The backing storage location. + # [Output-only] The geographic location where the table resides. This value is + # inherited from the dataset. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -1835,6 +1844,7 @@ module Google @description = args[:description] unless args[:description].nil? @etag = args[:etag] unless args[:etag].nil? @expiration_time = args[:expiration_time] unless args[:expiration_time].nil? + @external_data_configuration = args[:external_data_configuration] unless args[:external_data_configuration].nil? @friendly_name = args[:friendly_name] unless args[:friendly_name].nil? @id = args[:id] unless args[:id].nil? @kind = args[:kind] unless args[:kind].nil? diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index fdf2a3248..254e5a8cc 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -614,6 +614,8 @@ module Google property :description, as: 'description' property :etag, as: 'etag' property :expiration_time, as: 'expirationTime' + property :external_data_configuration, as: 'externalDataConfiguration', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation + property :friendly_name, as: 'friendlyName' property :id, as: 'id' property :kind, as: 'kind' diff --git a/generated/google/apis/bigquery_v2/service.rb b/generated/google/apis/bigquery_v2/service.rb index a063e7ece..b88b44fa3 100644 --- a/generated/google/apis/bigquery_v2/service.rb +++ b/generated/google/apis/bigquery_v2/service.rb @@ -493,10 +493,10 @@ module Google execute_or_queue_command(command, &block) end - # Lists all jobs that you started in the specified project. The job list returns - # in reverse chronological order of when the jobs were created, starting with - # the most recent job created. Requires the Can View project role, or the Is - # Owner project role if you set the allUsers property. + # Lists all jobs that you started in the specified project. Job information is + # available for a six month period after creation. The job list is sorted in + # reverse chronological order, by job creation time. Requires the Can View + # project role, or the Is Owner project role if you set the allUsers property. # @param [String] project_id # Project ID of the jobs to list # @param [Boolean] all_users diff --git a/generated/google/apis/blogger_v3/service.rb b/generated/google/apis/blogger_v3/service.rb index bc89ca8bc..438556978 100644 --- a/generated/google/apis/blogger_v3/service.rb +++ b/generated/google/apis/blogger_v3/service.rb @@ -165,7 +165,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_blog_by_url(url: nil, 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, path, options) command.response_representation = Google::Apis::BloggerV3::Blog::Representation @@ -1157,10 +1157,10 @@ module Google # Retrieve a Post by Path. # @param [String] blog_id # ID of the blog to fetch the post from. - # @param [Fixnum] max_comments - # Maximum number of comments to pull back on a post. # @param [String] path # Path of the Post to retrieve. + # @param [Fixnum] max_comments + # Maximum number of comments to pull back on a post. # @param [String] view # Access level with which to view the returned result. Note that some fields # require elevated access. @@ -1185,7 +1185,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_post_by_path(blog_id, max_comments: nil, path: 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, path, options) command.response_representation = Google::Apis::BloggerV3::Post::Representation @@ -1467,13 +1467,13 @@ module Google # Search for a post. # @param [String] blog_id # ID of the blog to fetch the post from. + # @param [String] q + # Query terms to search this blog for matching posts. # @param [Boolean] fetch_bodies # Whether the body content of posts is included (default: true). This should be # set to false when the post bodies are not required, to help minimize traffic. # @param [String] order_by # Sort search results - # @param [String] q - # Query terms to search this blog for matching posts. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1495,7 +1495,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def search_posts(blog_id, fetch_bodies: nil, order_by: nil, q: 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, path, options) command.response_representation = Google::Apis::BloggerV3::PostList::Representation diff --git a/generated/google/apis/books_v1/service.rb b/generated/google/apis/books_v1/service.rb index ca6a006d1..e44a9a34f 100644 --- a/generated/google/apis/books_v1/service.rb +++ b/generated/google/apis/books_v1/service.rb @@ -252,7 +252,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_book(volume_id: nil, 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, path, options) command.query['volumeId'] = volume_id unless volume_id.nil? @@ -322,7 +322,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_offline_metadata_dictionary(cpksver: nil, 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, path, options) command.response_representation = Google::Apis::BooksV1::Metadata::Representation @@ -434,10 +434,10 @@ module Google # The ID for the layer to get the annotations. # @param [String] annotation_data_id # The ID of the annotation data to retrieve. - # @param [Boolean] allow_web_definitions - # For the dictionary layer. Whether or not to allow web definitions. # @param [String] content_version # The content version for the volume you are trying to retrieve. + # @param [Boolean] allow_web_definitions + # For the dictionary layer. Whether or not to allow web definitions. # @param [Fixnum] h # The requested pixel height for any images. If height is provided width must # also be provided. @@ -472,7 +472,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, allow_web_definitions: nil, content_version: 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, path, options) command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation @@ -498,11 +498,11 @@ module Google # The volume to retrieve annotation data for. # @param [String] layer_id # The ID for the layer to get the annotation data. + # @param [String] content_version + # The content version for the requested volume. # @param [Array, String] annotation_data_id # The list of Annotation Data Ids to retrieve. Pagination is ignored if this is # set. - # @param [String] content_version - # The content version for the requested volume. # @param [Fixnum] h # The requested pixel height for any images. If height is provided width must # also be provided. @@ -547,7 +547,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_layer_annotation_data(volume_id, layer_id, annotation_data_id: nil, content_version: 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, path, options) command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation @@ -676,7 +676,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_layer_volume_annotations(volume_id, layer_id, content_version: nil, 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, path, options) command.response_representation = Google::Apis::BooksV1::Volumeannotations::Representation @@ -736,14 +736,14 @@ module Google end # Release downloaded content access restriction. + # @param [Array, String] volume_ids + # The volume(s) to release restrictions for. # @param [String] cpksver # The device/version ID from which to release the restriction. # @param [String] locale # ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. # @param [String] source # String to identify the originator of this request. - # @param [Array, String] volume_ids - # The volume(s) to release restrictions for. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -765,7 +765,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def release_download_access(cpksver: nil, locale: nil, source: nil, volume_ids: 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, path, options) command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation @@ -781,18 +781,18 @@ module Google end # Request concurrent and download access restrictions. + # @param [String] source + # String to identify the originator of this request. + # @param [String] volume_id + # The volume to request concurrent/download restrictions for. + # @param [String] nonce + # The client nonce value. # @param [String] cpksver # The device/version ID from which to request the restrictions. # @param [String] license_types # The type of access license to request. If not specified, the default is BOTH. # @param [String] locale # ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. - # @param [String] nonce - # The client nonce value. - # @param [String] source - # String to identify the originator of this request. - # @param [String] volume_id - # The volume to request concurrent/download restrictions for. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -814,7 +814,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def request_access(cpksver: nil, license_types: nil, locale: nil, nonce: nil, source: nil, volume_id: 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, path, options) command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation @@ -832,18 +832,18 @@ module Google end # Request downloaded content access for specified volumes on the My eBooks shelf. + # @param [String] source + # String to identify the originator of this request. + # @param [String] nonce + # The client nonce value. # @param [String] cpksver # The device/version ID from which to release the restriction. # @param [Array, String] features # List of features supported by the client, i.e., 'RENTALS' # @param [String] locale # ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. - # @param [String] nonce - # The client nonce value. # @param [Boolean] show_preorders # Set to true to show pre-ordered books. Defaults to false. - # @param [String] source - # String to identify the originator of this request. # @param [Array, String] volume_ids # The volume(s) to request download restrictions for. # @param [String] fields @@ -867,7 +867,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def sync_volume_licenses(cpksver: nil, features: nil, locale: nil, nonce: nil, show_preorders: nil, source: 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, path, options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation @@ -1098,7 +1098,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def summarize_my_library_annotation(layer_ids: nil, volume_id: nil, 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, path, options) command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation @@ -1156,12 +1156,12 @@ module Google # Adds a volume to a bookshelf. # @param [String] shelf # ID of bookshelf to which to add a volume. + # @param [String] volume_id + # ID of volume to add. # @param [String] reason # The reason for which the book is added to the library. # @param [String] source # String to identify the originator of this request. - # @param [String] volume_id - # ID of volume to add. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1183,7 +1183,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def add_my_library_volume(shelf, reason: nil, source: nil, volume_id: 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, path, options) command.params['shelf'] = shelf unless shelf.nil? @@ -1312,13 +1312,13 @@ module Google # Moves a volume within a bookshelf. # @param [String] shelf # ID of bookshelf with the volume. - # @param [String] source - # String to identify the originator of this request. # @param [String] volume_id # ID of volume to move. # @param [Fixnum] volume_position # Position on shelf to move the item (0 puts the item before the current first # item, 1 puts it between the first and the second and so on.) + # @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 @@ -1340,7 +1340,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def move_my_library_volume(shelf, source: nil, volume_id: nil, volume_position: 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, path, options) command.params['shelf'] = shelf unless shelf.nil? @@ -1356,12 +1356,12 @@ module Google # Removes a volume from a bookshelf. # @param [String] shelf # ID of bookshelf from which to remove a volume. + # @param [String] volume_id + # ID of volume to remove. # @param [String] reason # The reason for which the book is removed from the library. # @param [String] source # String to identify the originator of this request. - # @param [String] volume_id - # ID of volume to remove. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1383,7 +1383,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def remove_my_library_volume(shelf, reason: nil, source: nil, volume_id: 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, path, options) command.params['shelf'] = shelf unless shelf.nil? @@ -1498,18 +1498,18 @@ module Google # Sets my reading position information for a volume. # @param [String] volume_id # ID of volume for which to update the reading position. + # @param [String] timestamp + # RFC 3339 UTC format timestamp associated with this reading position. + # @param [String] position + # Position string for the new volume reading position. # @param [String] action # Action that caused this reading position to be set. # @param [String] content_version # Volume content version for which this reading position applies. # @param [String] device_cookie # Random persistent device cookie optional on set position. - # @param [String] position - # Position string for the new volume reading position. # @param [String] source # String to identify the originator of this request. - # @param [String] timestamp - # RFC 3339 UTC format timestamp associated with this reading position. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1531,7 +1531,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_my_library_reading_position(volume_id, action: nil, content_version: nil, device_cookie: nil, position: nil, source: nil, timestamp: 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, path, options) command.params['volumeId'] = volume_id unless volume_id.nil? @@ -1840,6 +1840,8 @@ module Google end # Performs a book search. + # @param [String] q + # Full-text search query string. # @param [String] download # Restrict to volumes by download availability. # @param [String] filter @@ -1858,8 +1860,6 @@ module Google # Restrict to books or magazines. # @param [String] projection # Restrict information returned to a set of selected fields. - # @param [String] q - # Full-text search query string. # @param [Boolean] show_preorders # Set to true to show books available for preorder. Defaults to false. # @param [String] source @@ -1887,7 +1887,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_volumes(download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_results: nil, order_by: nil, partner: nil, print_type: 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_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, path, options) command.response_representation = Google::Apis::BooksV1::Volumes::Representation @@ -2059,15 +2059,15 @@ module Google end # Rate a recommended book for the current user. + # @param [String] rating + # Rating to be given to the volume. + # @param [String] volume_id + # ID of the source volume. # @param [String] locale # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for # generating recommendations. - # @param [String] rating - # Rating to be given to the volume. # @param [String] source # String to identify the originator of this request. - # @param [String] volume_id - # ID of the source volume. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2089,7 +2089,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def rate_recommended_volume(locale: nil, rating: nil, source: nil, volume_id: 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, path, options) command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 04b5a6a4a..fad3ba609 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20150701' + REVISION = '20150720' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/calendar_v3/classes.rb b/generated/google/apis/calendar_v3/classes.rb index b100729c5..1be3c3a22 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -272,13 +272,17 @@ module Google attr_accessor :access_role # The main color of the calendar in the hexadecimal format "#0088aa". This - # property supersedes the index-based colorId property. Optional. + # property supersedes the index-based colorId property. To set or change this + # property, you need to specify colorRgbFormat=true in the parameters of the + # insert, update and patch methods. Optional. # Corresponds to the JSON property `backgroundColor` # @return [String] attr_accessor :background_color # The color of the calendar. This is an ID referring to an entry in the calendar - # section of the colors definition (see the colors endpoint). Optional. + # section of the colors definition (see the colors endpoint). This property is + # superseded by the backgroundColor and foregroundColor properties and can be + # ignored when using these properties. Optional. # Corresponds to the JSON property `colorId` # @return [String] attr_accessor :color_id @@ -306,7 +310,9 @@ module Google attr_accessor :etag # The foreground color of the calendar in the hexadecimal format "#ffffff". This - # property supersedes the index-based colorId property. Optional. + # property supersedes the index-based colorId property. To set or change this + # property, you need to specify colorRgbFormat=true in the parameters of the + # insert, update and patch methods. Optional. # Corresponds to the JSON property `foregroundColor` # @return [String] attr_accessor :foreground_color @@ -420,7 +426,8 @@ module Google # The method used to deliver the notification. Possible values are: # - "email" - Reminders are sent via email. # - "sms" - Reminders are sent via SMS. This value is read-only and is ignored - # on inserts and updates. + # on inserts and updates. SMS reminders are only available for Google Apps for + # Work, Education, and Government customers. # Corresponds to the JSON property `method` # @return [String] attr_accessor :delivery_method @@ -554,15 +561,16 @@ module Google class Colors include Google::Apis::Core::Hashable - # Palette of calendar colors, mapping from the color ID to its definition. A - # calendarListEntry resource refers to one of these color IDs in its color field. - # Read-only. + # A global palette of calendar colors, mapping from the color ID to its + # definition. A calendarListEntry resource refers to one of these color IDs in + # its color field. Read-only. # Corresponds to the JSON property `calendar` # @return [Hash] attr_accessor :calendar - # Palette of event colors, mapping from the color ID to its definition. An event - # resource may refer to one of these color IDs in its color field. Read-only. + # A global palette of event colors, mapping from the color ID to its definition. + # An event resource may refer to one of these color IDs in its color field. Read- + # only. # Corresponds to the JSON property `event` # @return [Hash] attr_accessor :event @@ -644,7 +652,8 @@ module Google # @return [Array] attr_accessor :attachments - # The attendees of the event. + # The attendees of the event. See the Events with attendees guide for more + # information on scheduling events with other calendar users. # Corresponds to the JSON property `attendees` # @return [Array] attr_accessor :attendees @@ -797,8 +806,11 @@ module Google attr_accessor :private_copy alias_method :private_copy?, :private_copy - # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This - # field is omitted for single events or instances of recurring events. + # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as + # specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in + # this field; event start and end times are specified in the start and end + # fields. This field is omitted for single events or instances of recurring + # events. # Corresponds to the JSON property `recurrence` # @return [Array] attr_accessor :recurrence @@ -819,9 +831,9 @@ module Google # @return [Fixnum] attr_accessor :sequence - # Source of an event from which it was created; for example a web page, an email - # message or any document identifiable by an URL using HTTP/HTTPS protocol. - # Accessible only by the creator of the event. + # Source from which the event was created. For example, a web page, an email + # message or any document identifiable by an URL with HTTP or HTTPS scheme. Can + # only be seen or modified by the creator of the event. # Corresponds to the JSON property `source` # @return [Google::Apis::CalendarV3::Event::Source] attr_accessor :source @@ -992,17 +1004,18 @@ module Google # @return [String] attr_accessor :display_mode - # The gadget's height in pixels. Optional. + # The gadget's height in pixels. The height must be an integer greater than 0. + # Optional. # Corresponds to the JSON property `height` # @return [Fixnum] attr_accessor :height - # The gadget's icon URL. + # The gadget's icon URL. The URL scheme must be HTTPS. # Corresponds to the JSON property `iconLink` # @return [String] attr_accessor :icon_link - # The gadget's URL. + # The gadget's URL. The URL scheme must be HTTPS. # Corresponds to the JSON property `link` # @return [String] attr_accessor :link @@ -1022,7 +1035,8 @@ module Google # @return [String] attr_accessor :type - # The gadget's width in pixels. Optional. + # The gadget's width in pixels. The width must be an integer greater than 0. + # Optional. # Corresponds to the JSON property `width` # @return [Fixnum] attr_accessor :width @@ -1092,7 +1106,7 @@ module Google # If the event doesn't use the default reminders, this lists the reminders # specific to the event, or, if not set, indicates that no reminders are set for - # this event. + # this event. The maximum number of override reminders is 5. # Corresponds to the JSON property `overrides` # @return [Array] attr_accessor :overrides @@ -1114,9 +1128,9 @@ module Google end end - # Source of an event from which it was created; for example a web page, an email - # message or any document identifiable by an URL using HTTP/HTTPS protocol. - # Accessible only by the creator of the event. + # Source from which the event was created. For example, a web page, an email + # message or any document identifiable by an URL with HTTP or HTTPS scheme. Can + # only be seen or modified by the creator of the event. class Source include Google::Apis::Core::Hashable @@ -1125,7 +1139,7 @@ module Google # @return [String] attr_accessor :title - # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS. + # URL of the source pointing to a resource. The URL scheme must be HTTP or HTTPS. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -1147,7 +1161,7 @@ module Google include Google::Apis::Core::Hashable # ID of the attached file. Read-only. - # E.g. for Google Drive files this is the ID of the corresponding Files resource + # For Google Drive files, this is the ID of the corresponding Files resource # entry in the Drive API. # Corresponds to the JSON property `fileId` # @return [String] @@ -1316,14 +1330,16 @@ module Google # The method used by this reminder. Possible values are: # - "email" - Reminders are sent via email. - # - "sms" - Reminders are sent via SMS. + # - "sms" - Reminders are sent via SMS. These are only available for Google Apps + # for Work, Education, and Government customers. Requests to set SMS reminders + # for other account types are ignored. # - "popup" - Reminders are sent via a UI popup. # Corresponds to the JSON property `method` # @return [String] attr_accessor :reminder_method # Number of minutes before the start of the event when the reminder should - # trigger. + # trigger. Valid values are between 0 and 40320 (4 weeks in minutes). # Corresponds to the JSON property `minutes` # @return [Fixnum] attr_accessor :minutes diff --git a/generated/google/apis/calendar_v3/service.rb b/generated/google/apis/calendar_v3/service.rb index 7c3aafe8b..d359e32dc 100644 --- a/generated/google/apis/calendar_v3/service.rb +++ b/generated/google/apis/calendar_v3/service.rb @@ -1221,10 +1221,12 @@ module Google # singleEvents is False. Optional. The default is False. # @param [DateTime] time_max # Upper bound (exclusive) for an event's start time to filter by. Optional. The - # default is not to filter by start time. + # default is not to filter by start time. Must be an RFC3339 timestamp with + # mandatory time zone offset. # @param [DateTime] time_min # Lower bound (inclusive) for an event's end time to filter by. Optional. The - # default is not to filter by end time. + # default is not to filter by end time. Must be an RFC3339 timestamp with + # mandatory time zone offset. # @param [String] time_zone # Time zone used in the response. Optional. The default is the time zone of the # calendar. @@ -1343,10 +1345,14 @@ module Google # Optional. The default is to return all entries. # @param [DateTime] time_max # Upper bound (exclusive) for an event's start time to filter by. Optional. The - # default is not to filter by start time. + # default is not to filter by start time. Must be an RFC3339 timestamp with + # mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00: + # 00Z. Milliseconds may be provided but will be ignored. # @param [DateTime] time_min # Lower bound (inclusive) for an event's end time to filter by. Optional. The - # default is not to filter by end time. + # default is not to filter by end time. Must be an RFC3339 timestamp with + # mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00: + # 00Z. Milliseconds may be provided but will be ignored. # @param [String] time_zone # Time zone used in the response. Optional. The default is the time zone of the # calendar. @@ -1436,7 +1442,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def move_event(calendar_id, event_id, destination: nil, 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, path, options) command.response_representation = Google::Apis::CalendarV3::Event::Representation @@ -1516,11 +1522,11 @@ module Google # Creates an event based on a simple text string. # @param [String] calendar_id # Calendar identifier. + # @param [String] text + # The text describing the event to be created. # @param [Boolean] send_notifications # Whether to send notifications about the creation of the event. Optional. The # default is False. - # @param [String] text - # The text describing the event to be created. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1542,7 +1548,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def quick_add_event(calendar_id, send_notifications: nil, text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def quick_add_event(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, path, options) command.response_representation = Google::Apis::CalendarV3::Event::Representation @@ -1691,10 +1697,14 @@ module Google # Optional. The default is to return all entries. # @param [DateTime] time_max # Upper bound (exclusive) for an event's start time to filter by. Optional. The - # default is not to filter by start time. + # default is not to filter by start time. Must be an RFC3339 timestamp with + # mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00: + # 00Z. Milliseconds may be provided but will be ignored. # @param [DateTime] time_min # Lower bound (inclusive) for an event's end time to filter by. Optional. The - # default is not to filter by end time. + # default is not to filter by end time. Must be an RFC3339 timestamp with + # mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00: + # 00Z. Milliseconds may be provided but will be ignored. # @param [String] time_zone # Time zone used in the response. Optional. The default is the time zone of the # calendar. diff --git a/generated/google/apis/civicinfo_v2/service.rb b/generated/google/apis/civicinfo_v2/service.rb index 4c8a158f2..f3d3d5bc3 100644 --- a/generated/google/apis/civicinfo_v2/service.rb +++ b/generated/google/apis/civicinfo_v2/service.rb @@ -154,7 +154,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def query_voter_info(address: nil, 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, path, options) command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation diff --git a/generated/google/apis/cloudmonitoring_v2beta2.rb b/generated/google/apis/cloudmonitoring_v2beta2.rb index 0d9622d1a..fc85c24d8 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/monitoring/v2beta2/ module CloudmonitoringV2beta2 VERSION = 'V2beta2' - REVISION = '20150713' + REVISION = '20150727' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudmonitoring_v2beta2/service.rb b/generated/google/apis/cloudmonitoring_v2beta2/service.rb index 8d4abd94f..19c38583e 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2/service.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2/service.rb @@ -202,6 +202,9 @@ module Google # @param [String] metric # Metric names are protocol-free URLs as listed in the Supported Metrics page. # For example, compute.googleapis.com/instance/disk/read_ops_count. + # @param [String] youngest + # End of the time interval (inclusive), which is expressed as an RFC 3339 + # timestamp. # @param [Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest] list_timeseries_request_object # @param [String] aggregator # The aggregation function that will reduce the data points in each window to a @@ -248,9 +251,6 @@ module Google # - d: day # - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d is # not allowed; you should use 17d instead. - # @param [String] youngest - # End of the time interval (inclusive), which is expressed as an RFC 3339 - # timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -272,7 +272,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_timeseries(project, metric, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, youngest: 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, path, options) command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest::Representation @@ -352,6 +352,9 @@ module Google # @param [String] metric # Metric names are protocol-free URLs as listed in the Supported Metrics page. # For example, compute.googleapis.com/instance/disk/read_ops_count. + # @param [String] youngest + # End of the time interval (inclusive), which is expressed as an RFC 3339 + # timestamp. # @param [Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest] list_timeseries_descriptors_request_object # @param [String] aggregator # The aggregation function that will reduce the data points in each window to a @@ -398,9 +401,6 @@ module Google # - d: day # - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d is # not allowed; you should use 17d instead. - # @param [String] youngest - # End of the time interval (inclusive), which is expressed as an RFC 3339 - # timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -422,7 +422,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_timeseries_descriptors(project, metric, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, youngest: 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, path, options) command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest::Representation diff --git a/generated/google/apis/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index 98bf517d3..0100ba43d 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20150711' + REVISION = '20150729' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 61a364b96..13a58cf25 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -135,6 +135,378 @@ module Google def update!(**args) end end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # # Overview The `Policy` defines an access control policy language. It is used + # to define policies that are attached to resources like files, folders, VMs, + # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding` + # binds a set of members to a role, where the members include user accounts, + # user groups, user domains, and service accounts. A 'role' is a named set of + # permissions, defined by IAM. The definition of a role is outside the policy. A + # permission check first determines the roles that include the specified + # permission, and then determines if the principal specified is a member of a + # binding to at least one of these roles. The membership check is recursive when + # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": " + # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", + # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts. + # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` ` + # `` + class Policy + include Google::Apis::Core::Hashable + + # The policy language version. The version of the policy is represented by the + # etag. The default version is 0. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # It is an error to specify multiple bindings for the same role. It is an error + # to specify a binding with no members. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + # Can be used to perform a read-modify-write. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @version = args[:version] unless args[:version].nil? + @bindings = args[:bindings] unless args[:bindings].nil? + @rules = args[:rules] unless args[:rules].nil? + @etag = args[:etag] unless args[:etag].nil? + end + end + + # Associates members with roles. See below for allowed formats of members. + class Binding + include Google::Apis::Core::Hashable + + # The name of the role to which the members should be bound. Examples: "roles/ + # viewer", "roles/editor", "roles/owner". Required + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Format of member entries: 1. allUsers Matches any requesting principal (users, + # service accounts or anonymous). 2. allAuthenticatedUsers Matches any + # requesting authenticated principal (users or service accounts). 3. user:` + # emailid` A google user account using an email address. For example alice@gmail. + # com, joe@example.com 4. serviceAccount:`emailid` An service account email. 5. + # group:`emailid` A google group with an email address. For example auth-ti- + # cloud@google.com 6. domain:`domain` A Google Apps domain name. For example + # google.com, example.com + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @role = args[:role] unless args[:role].nil? + @members = args[:members] unless args[:members].nil? + 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] + 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] + 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] + attr_accessor :not_in + + # Additional restrictions that must be met + # Corresponds to the JSON property `conditions` + # @return [Array] + 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] + 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] + 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. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # # Overview The `Policy` defines an access control policy language. It is used + # to define policies that are attached to resources like files, folders, VMs, + # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding` + # binds a set of members to a role, where the members include user accounts, + # user groups, user domains, and service accounts. A 'role' is a named set of + # permissions, defined by IAM. The definition of a role is outside the policy. A + # permission check first determines the roles that include the specified + # permission, and then determines if the principal specified is a member of a + # binding to at least one of these roles. The membership check is recursive when + # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": " + # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", + # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts. + # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` ` + # `` + # Corresponds to the JSON property `policy` + # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] unless args[:policy].nil? + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the 'resource'. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] unless args[:permissions].nil? + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] unless args[:permissions].nil? + end + end end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb index c3f316670..c1b8a45f3 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb @@ -34,6 +34,54 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class GetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; 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 Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Project # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -60,6 +108,113 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation end end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :version, as: 'version' + 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' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :role, as: 'role' + collection :members, as: 'members' + 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 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation + + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index 257120d02..820fec84c 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -288,6 +288,115 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Returns the IAM access control policy for specified project. + # @param [String] resource + # REQUIRED: The resource for which policy is being requested. Resource is + # usually specified as a path, such as, projects/`project`. + # @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_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, path, 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 + + # Sets the IAM access control policy for the specified project. We do not + # currently support 'domain:' prefixed members in a Binding of a Policy. Calling + # this method requires enabling the App Engine Admin API. + # @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`. + # @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_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, path, 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 + + # Tests the specified permissions against the IAM access control policy for the + # specified project. + # @param [String] resource + # REQUIRED: The resource for which policy detail is being requested. Resource is + # usually specified as a path, such as, projects/`project`. + # @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_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, 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 protected diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 3351859b1..bb685ea55 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20150713' + REVISION = '20150723' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 868b0d9c5..1f078bd56 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -3095,7 +3095,7 @@ module Google # @return [String] attr_accessor :self_link - # The URL of all TargetPool resources to which new instances in the + # The URLs of all TargetPool resources to which new instances in the # instanceGroup field are added. Updating the target pool values does not affect # existing instances. # Corresponds to the JSON property `targetPools` @@ -3142,37 +3142,48 @@ module Google class InstanceGroupManagerActionsSummary include Google::Apis::Core::Hashable - # + # [Output Only] Total number of instances in the managed instance group that are + # scheduled to be abandoned. Abandoning an instance removes it from the managed + # instance group without deleting it. # Corresponds to the JSON property `abandoning` # @return [Fixnum] attr_accessor :abandoning - # + # [Output Only] The number of instances in the managed instance group that are + # scheduled to be created or are currently being created. # Corresponds to the JSON property `creating` # @return [Fixnum] attr_accessor :creating - # + # [Output Only] The number of instances in the managed instance group that are + # scheduled to be deleted or are currently being deleted. # Corresponds to the JSON property `deleting` # @return [Fixnum] attr_accessor :deleting - # + # [Output Only] The number of instances in the managed instance group that + # currently have no scheduled actions. # Corresponds to the JSON property `none` # @return [Fixnum] attr_accessor :none - # + # [Output Only] The number of instances in the managed instance group that are + # scheduled to be recreated or are currently being being recreated. Recreating + # an instance deletes the existing root persistent disk and creates a new disk + # from the image that is defined in the instance template. # Corresponds to the JSON property `recreating` # @return [Fixnum] attr_accessor :recreating - # + # [Output Only] The number of instances in the managed instance group that are + # being reconfigured with properties that do not require a restart or a recreate + # action. For example, setting or removing target pools for the instance. # Corresponds to the JSON property `refreshing` # @return [Fixnum] attr_accessor :refreshing - # + # [Output Only] The number of instances in the managed instance group that are + # scheduled to be restarted or are currently being restarted. # Corresponds to the JSON property `restarting` # @return [Fixnum] attr_accessor :restarting @@ -4761,8 +4772,8 @@ module Google class NetworkInterface include Google::Apis::Core::Hashable - # An array of configurations for this interface. Currently, ] @@ -7476,13 +7487,6 @@ module Google # @return [String] attr_accessor :id - # IKE networks to use when establishing the VPN tunnel with peer VPN gateway. - # The value should be a CIDR formatted string, for example: 192.168.0.0/16. The - # ranges should be disjoint. - # Corresponds to the JSON property `ikeNetworks` - # @return [Array] - attr_accessor :ike_networks - # IKE protocol version to use when establishing the VPN tunnel with peer VPN # gateway. Acceptable IKE versions are 1 or 2. Default version is 2. # Corresponds to the JSON property `ikeVersion` @@ -7551,7 +7555,6 @@ module Google @description = args[:description] unless args[:description].nil? @detailed_status = args[:detailed_status] unless args[:detailed_status].nil? @id = args[:id] unless args[:id].nil? - @ike_networks = args[:ike_networks] unless args[:ike_networks].nil? @ike_version = args[:ike_version] unless args[:ike_version].nil? @kind = args[:kind] unless args[:kind].nil? @name = args[:name] unless args[:name].nil? diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 2b6d2eaa7..12f4cc728 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -2679,7 +2679,6 @@ module Google property :description, as: 'description' property :detailed_status, as: 'detailedStatus' property :id, as: 'id' - collection :ike_networks, as: 'ikeNetworks' property :ike_version, as: 'ikeVersion' property :kind, as: 'kind' property :name, as: 'name' diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 52f8eded4..6a49efdbd 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -57,24 +57,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -251,24 +243,16 @@ module Google # The name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -317,24 +301,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -511,24 +487,16 @@ module Google # Name of the zone scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -578,9 +546,9 @@ module Google # Name of the project scoping this request. # @param [String] zone # Name of the zone scoping this request. - # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object # @param [String] autoscaler # Name of the autoscaler resource to update. + # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -602,7 +570,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_autoscaler(project, zone, autoscaler_object = nil, autoscaler: 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 = '{project}/zones/{zone}/autoscalers' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation @@ -829,24 +797,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -979,24 +939,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -1088,24 +1040,16 @@ module Google # The name of the zone for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -1154,24 +1098,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -1398,24 +1334,16 @@ module Google # The name of the zone for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -1582,24 +1510,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -1732,24 +1652,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -1927,24 +1839,16 @@ module Google # Name of the region scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -2156,24 +2060,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -2340,24 +2236,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -2447,24 +2335,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -2589,24 +2469,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -2773,24 +2645,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -3085,24 +2949,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -3199,24 +3055,16 @@ module Google # The project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -3442,24 +3290,16 @@ module Google # The URL of the zone where the managed instance group is located. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -3626,7 +3466,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def resize_instance_group_manager(project, zone, instance_group_manager, size: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def resize_instance_group_manager(project, zone, instance_group_manager, size, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -3786,24 +3626,16 @@ module Google # The project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -3981,24 +3813,16 @@ module Google # The URL of the zone where the instance group is located. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -4054,24 +3878,16 @@ module Google # @param [Google::Apis::ComputeV1::InstanceGroupsListInstancesRequest] instance_groups_list_instances_request_object # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -4332,24 +4148,16 @@ module Google # The project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -4399,9 +4207,9 @@ module Google # The name of the zone for this request. # @param [String] instance # The instance name for this request. - # @param [Google::Apis::ComputeV1::AccessConfig] access_config_object # @param [String] network_interface # The name of the network interface to add to this instance. + # @param [Google::Apis::ComputeV1::AccessConfig] access_config_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4423,7 +4231,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def add_instance_access_config(project, zone, instance, access_config_object = nil, network_interface: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def add_instance_access_config(project, zone, instance, network_interface, access_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/zones/{zone}/instances/{instance}/addAccessConfig' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::ComputeV1::AccessConfig::Representation @@ -4445,24 +4253,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -4625,7 +4425,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_instance_access_config(project, zone, instance, access_config: nil, network_interface: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_instance_access_config(project, zone, instance, access_config, network_interface, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4671,7 +4471,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def detach_disk(project, zone, instance, device_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def detach_disk(project, zone, instance, device_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/zones/{zone}/instances/{instance}/detachDisk' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -4690,7 +4490,7 @@ module Google # @param [String] project # Project ID for this request. # @param [String] zone - # The name of the The name of the zone for this request.. + # The name of the zone for this request. # @param [String] instance # Name of the instance resource to return. # @param [String] fields @@ -4823,24 +4623,16 @@ module Google # The name of the zone for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -4958,7 +4750,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_disk_auto_delete(project, zone, instance, auto_delete: nil, device_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_disk_auto_delete(project, zone, instance, auto_delete, device_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::ComputeV1::Operation::Representation @@ -5243,24 +5035,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -5353,24 +5137,16 @@ module Google # The name of the zone for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -5537,24 +5313,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -5882,24 +5650,16 @@ module Google # Name of the region scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -5987,24 +5747,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -6170,24 +5922,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -6318,24 +6062,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -6502,24 +6238,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -6609,24 +6337,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -6804,24 +6524,16 @@ module Google # Name of the zone scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -6958,24 +6670,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -7198,24 +6902,16 @@ module Google # Name of the region scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -7400,24 +7096,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -7595,24 +7283,16 @@ module Google # The name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -7779,24 +7459,16 @@ module Google # Name of the project scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -7972,24 +7644,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -8167,24 +7831,16 @@ module Google # The name of the region for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -8317,24 +7973,16 @@ module Google # Name of the zone scoping this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -8422,24 +8070,16 @@ module Google # Project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 4e73e6832..21b5ccdb4 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content/v2/ module ContentV2 VERSION = 'V2' - REVISION = '20150710' + REVISION = '20150729' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 0c0fbfebb..3bbe890e0 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -235,8 +235,8 @@ module Google # @return [String] attr_accessor :name - # Sale country for which this carrier rate is valid, represented as an ISO 3166- - # 1 Alpha-2 code. + # The sale country for which this carrier rate is valid, represented as a CLDR + # territory code. # Corresponds to the JSON property `saleCountry` # @return [String] attr_accessor :sale_country @@ -329,8 +329,7 @@ module Google class AccountShippingLocationGroup include Google::Apis::Core::Hashable - # The country in which this location group is, represented as ISO 3166-1 Alpha-2 - # code. + # The CLDR territory code of the country in which this location group is. # Corresponds to the JSON property `country` # @return [String] attr_accessor :country @@ -419,8 +418,8 @@ module Google # @return [String] attr_accessor :name - # Sale country for which this table is valid, represented as an ISO 3166-1 Alpha- - # 2 code. + # The sale country for which this table is valid, represented as a CLDR + # territory code. # Corresponds to the JSON property `saleCountry` # @return [String] attr_accessor :sale_country @@ -499,8 +498,7 @@ module Google # @return [String] attr_accessor :name - # Sale country for which this service can be used, represented as an ISO 3166-1 - # Alpha-2 code. + # The CLDR territory code of the sale country for which this service can be used. # Corresponds to the JSON property `saleCountry` # @return [String] attr_accessor :sale_country @@ -1561,8 +1559,8 @@ module Google # @return [String] attr_accessor :name - # The two-letter ISO 3166 country where the items in the feed will be included - # in the search index. + # The country where the items in the feed will be included in the search index, + # represented as a CLDR territory code. # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country @@ -2211,6 +2209,12 @@ module Google # @return [String] attr_accessor :sale_price_effective_date + # The quantity of the product that is reserved for sell-on-google ads. Supported + # only for online products. + # Corresponds to the JSON property `sellOnGoogleQuantity` + # @return [Fixnum] + attr_accessor :sell_on_google_quantity + def initialize(**args) update!(**args) end @@ -2223,6 +2227,7 @@ module Google @quantity = args[:quantity] unless args[:quantity].nil? @sale_price = args[:sale_price] unless args[:sale_price].nil? @sale_price_effective_date = args[:sale_price_effective_date] unless args[:sale_price_effective_date].nil? + @sell_on_google_quantity = args[:sell_on_google_quantity] unless args[:sell_on_google_quantity].nil? end end @@ -2379,6 +2384,12 @@ module Google # @return [String] attr_accessor :sale_price_effective_date + # The quantity of the product that is reserved for sell-on-google ads. Supported + # only for online products. + # Corresponds to the JSON property `sellOnGoogleQuantity` + # @return [Fixnum] + attr_accessor :sell_on_google_quantity + def initialize(**args) update!(**args) end @@ -2390,6 +2401,7 @@ module Google @quantity = args[:quantity] unless args[:quantity].nil? @sale_price = args[:sale_price] unless args[:sale_price].nil? @sale_price_effective_date = args[:sale_price_effective_date] unless args[:sale_price_effective_date].nil? + @sell_on_google_quantity = args[:sell_on_google_quantity] unless args[:sell_on_google_quantity].nil? end end @@ -2802,7 +2814,7 @@ module Google # @return [Array] attr_accessor :sizes - # The two-letter ISO 3166 country code for the item. + # The CLDR territory code for the item. # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country @@ -3064,8 +3076,7 @@ module Google class ProductShipping include Google::Apis::Core::Hashable - # The two-letter ISO 3166 country code for the country to which an item will - # ship. + # The CLDR territory code of the country to which an item will ship. # Corresponds to the JSON property `country` # @return [String] attr_accessor :country @@ -3339,8 +3350,7 @@ module Google class ProductTax include Google::Apis::Core::Hashable - # The country within which the item is taxed, specified with a two-letter ISO - # 3166 country code. + # The country within which the item is taxed, specified as a CLDR territory code. # Corresponds to the JSON property `country` # @return [String] attr_accessor :country diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 04f53f905..375254e5c 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -1030,6 +1030,7 @@ module Google property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :sale_price_effective_date, as: 'salePriceEffectiveDate' + property :sell_on_google_quantity, as: 'sellOnGoogleQuantity' end end @@ -1082,6 +1083,7 @@ module Google property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :sale_price_effective_date, as: 'salePriceEffectiveDate' + property :sell_on_google_quantity, as: 'sellOnGoogleQuantity' end end diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index b546916ef..f55e5c8d8 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -1321,7 +1321,7 @@ module Google end # Updates price and availability for multiple products or stores in a single - # request. + # request. This operation does not update the expiration date of the products. # @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object # @param [Boolean] dry_run # Flag to run the request in dry-run mode. @@ -1361,6 +1361,7 @@ module Google end # Updates price and availability of a product in your Merchant Center account. + # This operation does not update the expiration date of the product. # @param [String] merchant_id # The ID of the managing account. # @param [String] store_code diff --git a/generated/google/apis/coordinate_v1/service.rb b/generated/google/apis/coordinate_v1/service.rb index 531f841d1..8c91c0d82 100644 --- a/generated/google/apis/coordinate_v1/service.rb +++ b/generated/google/apis/coordinate_v1/service.rb @@ -130,9 +130,15 @@ module Google # Inserts a new job. Only the state field of the job should be set. # @param [String] team_id # Team ID - # @param [Google::Apis::CoordinateV1::Job] job_object # @param [String] address # Job address as newline (Unix) separated string + # @param [Float] lat + # The latitude coordinate of this job's location. + # @param [Float] lng + # The longitude coordinate of this job's location. + # @param [String] title + # Job title + # @param [Google::Apis::CoordinateV1::Job] job_object # @param [String] assignee # Assignee email address, or empty string to unassign. # @param [Array, String] custom_field @@ -146,14 +152,8 @@ module Google # Customer name # @param [String] customer_phone_number # Customer phone number - # @param [Float] lat - # The latitude coordinate of this job's location. - # @param [Float] lng - # The longitude coordinate of this job's location. # @param [String] note # Job note as newline (Unix) separated string - # @param [String] title - # Job title # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -175,7 +175,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_job(team_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, title: 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, path, options) command.request_representation = Google::Apis::CoordinateV1::Job::Representation @@ -403,12 +403,12 @@ module Google # Team ID # @param [String] worker_email # Worker email address. + # @param [String] start_timestamp_ms + # Start timestamp in milliseconds since the epoch. # @param [Fixnum] max_results # Maximum number of results to return in one page. # @param [String] page_token # Continuation token - # @param [String] start_timestamp_ms - # Start timestamp in milliseconds since the epoch. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -430,7 +430,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_locations(team_id, worker_email, max_results: nil, page_token: nil, start_timestamp_ms: 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, path, options) command.response_representation = Google::Apis::CoordinateV1::ListLocationResponse::Representation diff --git a/generated/google/apis/customsearch_v1/service.rb b/generated/google/apis/customsearch_v1/service.rb index 0e0decaf6..971de671d 100644 --- a/generated/google/apis/customsearch_v1/service.rb +++ b/generated/google/apis/customsearch_v1/service.rb @@ -54,6 +54,8 @@ module Google # Returns metadata about the search performed, metadata about the custom search # engine used for the search, and the search results. + # @param [String] q + # Query # @param [String] c2coff # Turns off the translation between zh-CN and zh-TW. # @param [String] cr @@ -109,8 +111,6 @@ module Google # Provides additional search terms to check for in a document, where each # document in the search results must contain at least one of the additional # search terms - # @param [String] q - # Query # @param [String] related_site # Specifies that all search results should be pages that are related to the # specified URL @@ -152,7 +152,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_cses(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, q: 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, path, options) command.response_representation = Google::Apis::CustomsearchV1::Search::Representation diff --git a/generated/google/apis/deploymentmanager_v2beta2.rb b/generated/google/apis/deploymentmanager_v2beta2.rb index 517a935e0..400660579 100644 --- a/generated/google/apis/deploymentmanager_v2beta2.rb +++ b/generated/google/apis/deploymentmanager_v2beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta2 VERSION = 'V2beta2' - REVISION = '20150715' + REVISION = '20150728' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2beta2/classes.rb b/generated/google/apis/deploymentmanager_v2beta2/classes.rb index 836074ad8..305ea49c2 100644 --- a/generated/google/apis/deploymentmanager_v2beta2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2beta2/classes.rb @@ -686,7 +686,7 @@ module Google # @return [String] attr_accessor :final_properties - # [Output Only] The intent of the resource, PREVIEW, UPDATE, or CANCEL. + # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. # Corresponds to the JSON property `intent` # @return [String] attr_accessor :intent diff --git a/generated/google/apis/deploymentmanager_v2beta2/service.rb b/generated/google/apis/deploymentmanager_v2beta2/service.rb index 98dff95f6..73fca8c77 100644 --- a/generated/google/apis/deploymentmanager_v2beta2/service.rb +++ b/generated/google/apis/deploymentmanager_v2beta2/service.rb @@ -176,24 +176,16 @@ module Google # The project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -389,24 +381,16 @@ module Google # The name of the deployment for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -494,24 +478,16 @@ module Google # The project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -603,24 +579,16 @@ module Google # The name of the deployment for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token @@ -669,24 +637,16 @@ module Google # The project ID for this request. # @param [String] filter # Sets a filter expression for filtering listed resources, in the form filter=` - # expression`. Your `expression` must contain the following: - # FIELD_NAME COMPARISON_STRING LITERAL_STRING - # - # - FIELD_NAME: The name of the field you want to compare. The field name must - # be valid for the type of resource being filtered. Only atomic field types are - # supported (string, number, boolean). Array and object fields are not currently - # supported. - # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not - # equals). - # - LITERAL_STRING: The literal string value to filter to. The literal value - # must be valid for the type of field (string, number, boolean). For string - # fields, the literal value is interpreted as a regular expression using RE2 - # syntax. The literal value must match the entire field. For example, you can - # filter by the name of a resource: - # filter=name ne example-instance - # The above filter returns only results whose name field does not equal example- - # instance. You can also enclose your literal string in single, double, or no - # quotes. + # 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] page_token diff --git a/generated/google/apis/dfareporting_v2_1.rb b/generated/google/apis/dfareporting_v2_1.rb index 249150f6a..5ecc75864 100644 --- a/generated/google/apis/dfareporting_v2_1.rb +++ b/generated/google/apis/dfareporting_v2_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/reporting/ module DfareportingV2_1 VERSION = 'V2_1' - REVISION = '20150326' + REVISION = '20150717' # View and manage DoubleClick for Advertisers reports AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting' diff --git a/generated/google/apis/dfareporting_v2_1/classes.rb b/generated/google/apis/dfareporting_v2_1/classes.rb index a3330d07f..83214794b 100644 --- a/generated/google/apis/dfareporting_v2_1/classes.rb +++ b/generated/google/apis/dfareporting_v2_1/classes.rb @@ -4715,7 +4715,7 @@ module Google # @return [Array] attr_accessor :site_ids - # Whether this tag is SSL-compliant or not. + # Whether this tag is SSL-compliant or not. This is a read-only field. # Corresponds to the JSON property `sslCompliant` # @return [Boolean] attr_accessor :ssl_compliant @@ -8623,7 +8623,7 @@ module Google # to members of those lists. This resource can be used to manage remarketing # lists that are owned by your advertisers. To see all remarketing lists that # are visible to your advertisers, including those that are shared to your - # advertiser or account, use the TargetableRemarketingList resource. + # advertiser or account, use the TargetableRemarketingLists resource. class RemarketingList include Google::Apis::Core::Hashable @@ -9834,7 +9834,7 @@ module Google # @return [String] attr_accessor :next_page_token - # Site collection + # Site collection. # Corresponds to the JSON property `sites` # @return [Array] attr_accessor :sites @@ -10178,7 +10178,7 @@ module Google # remarketing list to be used to faciliate targeting ads to specific lists. # Remarketing lists that are owned by your advertisers and those that are shared # to your advertisers or account are accessible via this resource. To manage - # remarketing lists that are owned by your advertisers, use the RemarketingList + # remarketing lists that are owned by your advertisers, use the RemarketingLists # resource. class TargetableRemarketingList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dfareporting_v2_1/service.rb b/generated/google/apis/dfareporting_v2_1/service.rb index 675980ebf..a566b9f5d 100644 --- a/generated/google/apis/dfareporting_v2_1/service.rb +++ b/generated/google/apis/dfareporting_v2_1/service.rb @@ -391,9 +391,9 @@ module Google # Updates an existing account user profile. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::AccountUserProfile] account_user_profile_object # @param [String] id # User profile ID. + # @param [Google::Apis::DfareportingV2_1::AccountUserProfile] account_user_profile_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -415,7 +415,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_account_user_profile(profile_id, account_user_profile_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_account_user_profile(profile_id, id, account_user_profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/accountUserProfiles' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::AccountUserProfile::Representation @@ -574,9 +574,9 @@ module Google # Updates an existing account. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Account] account_object # @param [String] id # Account ID. + # @param [Google::Apis::DfareportingV2_1::Account] account_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -598,7 +598,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_account(profile_id, account_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_account(profile_id, id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/accounts' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Account::Representation @@ -852,9 +852,9 @@ module Google # Updates an existing ad. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Ad] ad_object # @param [String] id # Ad ID. + # @param [Google::Apis::DfareportingV2_1::Ad] ad_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -876,7 +876,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_ad(profile_id, ad_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_ad(profile_id, id, ad_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/ads' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Ad::Representation @@ -1108,9 +1108,9 @@ module Google # Updates an existing advertiser group. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::AdvertiserGroup] advertiser_group_object # @param [String] id # Advertiser group ID. + # @param [Google::Apis::DfareportingV2_1::AdvertiserGroup] advertiser_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1132,7 +1132,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_advertiser_group(profile_id, advertiser_group_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_advertiser_group(profile_id, id, advertiser_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/advertiserGroups' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::AdvertiserGroup::Representation @@ -1345,9 +1345,9 @@ module Google # Updates an existing advertiser. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Advertiser] advertiser_object # @param [String] id # Advertiser ID. + # @param [Google::Apis::DfareportingV2_1::Advertiser] advertiser_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1369,7 +1369,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_advertiser(profile_id, advertiser_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_advertiser(profile_id, id, advertiser_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/advertisers' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Advertiser::Representation @@ -1593,12 +1593,12 @@ module Google # Inserts a new campaign. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Campaign] campaign_object # @param [String] default_landing_page_name # Default landing page name for this new campaign. Must be less than 256 # characters long. # @param [String] default_landing_page_url # Default landing page URL for this new campaign. + # @param [Google::Apis::DfareportingV2_1::Campaign] campaign_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1620,7 +1620,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_campaign(profile_id, campaign_object = nil, default_landing_page_name: nil, default_landing_page_url: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_campaign(profile_id, default_landing_page_name, default_landing_page_url, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/campaigns' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Campaign::Representation @@ -1720,9 +1720,9 @@ module Google # Updates an existing campaign. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Campaign] campaign_object # @param [String] id # Campaign ID. + # @param [Google::Apis::DfareportingV2_1::Campaign] campaign_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1744,7 +1744,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_campaign(profile_id, campaign_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_campaign(profile_id, id, campaign_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/campaigns' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Campaign::Representation @@ -2215,9 +2215,9 @@ module Google # Updates an existing content category. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::ContentCategory] content_category_object # @param [String] id # Content category ID. + # @param [Google::Apis::DfareportingV2_1::ContentCategory] content_category_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2239,7 +2239,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_content_category(profile_id, content_category_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_content_category(profile_id, id, content_category_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/contentCategories' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::ContentCategory::Representation @@ -2607,9 +2607,9 @@ module Google # User profile ID associated with this request. # @param [String] creative_field_id # Creative field ID for this creative field value. - # @param [Google::Apis::DfareportingV2_1::CreativeFieldValue] creative_field_value_object # @param [String] id # Creative Field Value ID + # @param [Google::Apis::DfareportingV2_1::CreativeFieldValue] creative_field_value_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2631,7 +2631,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_creative_field_value(profile_id, creative_field_id, creative_field_value_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_creative_field_value(profile_id, creative_field_id, id, creative_field_value_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeFieldValue::Representation @@ -2870,9 +2870,9 @@ module Google # Updates an existing creative field. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::CreativeField] creative_field_object # @param [String] id # Creative Field ID + # @param [Google::Apis::DfareportingV2_1::CreativeField] creative_field_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2894,7 +2894,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_creative_field(profile_id, creative_field_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_creative_field(profile_id, id, creative_field_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/creativeFields' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeField::Representation @@ -3095,9 +3095,9 @@ module Google # Updates an existing creative group. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::CreativeGroup] creative_group_object # @param [String] id # Creative group ID. + # @param [Google::Apis::DfareportingV2_1::CreativeGroup] creative_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3119,7 +3119,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_creative_group(profile_id, creative_group_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_creative_group(profile_id, id, creative_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/creativeGroups' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::CreativeGroup::Representation @@ -3345,9 +3345,9 @@ module Google # Updates an existing creative. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Creative] creative_object # @param [String] id # Creative ID. + # @param [Google::Apis::DfareportingV2_1::Creative] creative_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3369,7 +3369,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_creative(profile_id, creative_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_creative(profile_id, id, creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/creatives' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Creative::Representation @@ -3860,13 +3860,16 @@ module Google # @param [String] campaign_id # Select only event tags that belong to this campaign. # @param [Boolean] definitions_only - # Examine only the specified ad or campaign or advertiser's event tags for - # matching selector criteria. When set to false, the parent advertiser and - # parent campaign is examined as well. In addition, when set to false, the - # status field is examined as well along with the enabledByDefault field. + # Examine only the specified campaign or advertiser's event tags for matching + # selector criteria. When set to false, the parent advertiser and parent + # campaign of the specified ad or campaign is examined as well. In addition, + # when set to false, the status field is examined as well, along with the + # enabledByDefault field. This parameter can not be set to true when adId is + # specified as ads do not define their own even tags. # @param [Boolean] enabled - # Select only enabled event tags. When definitionsOnly is set to true, only the - # specified advertiser or campaign's event tags' enabledByDefault field is + # Select only enabled event tags. What is considered enabled or disabled depends + # on the definitionsOnly parameter. When definitionsOnly is set to true, only + # the specified advertiser or campaign's event tags' enabledByDefault field is # examined. When definitionsOnly is set to false, the specified ad or specified # campaign's parent advertiser's or parent campaign's event tags' # enabledByDefault and status fields are examined as well. @@ -3934,9 +3937,9 @@ module Google # Updates an existing event tag. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::EventTag] event_tag_object # @param [String] id # Event tag ID. + # @param [Google::Apis::DfareportingV2_1::EventTag] event_tag_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3958,7 +3961,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_event_tag(profile_id, event_tag_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_event_tag(profile_id, id, event_tag_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/eventTags' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::EventTag::Representation @@ -4356,9 +4359,9 @@ module Google # Updates an existing floodlight activity. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::FloodlightActivity] floodlight_activity_object # @param [String] id # Floodlight activity ID. + # @param [Google::Apis::DfareportingV2_1::FloodlightActivity] floodlight_activity_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4380,7 +4383,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_floodlight_activity(profile_id, floodlight_activity_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_floodlight_activity(profile_id, id, floodlight_activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/floodlightActivities' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightActivity::Representation @@ -4629,9 +4632,9 @@ module Google # semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::FloodlightActivityGroup] floodlight_activity_group_object # @param [String] id # Floodlight activity Group ID. + # @param [Google::Apis::DfareportingV2_1::FloodlightActivityGroup] floodlight_activity_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4653,7 +4656,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_floodlight_activity_group(profile_id, floodlight_activity_group_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_floodlight_activity_group(profile_id, id, floodlight_activity_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/floodlightActivityGroups' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightActivityGroup::Representation @@ -4790,9 +4793,9 @@ module Google # semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::FloodlightConfiguration] floodlight_configuration_object # @param [String] id # Floodlight configuration ID. + # @param [Google::Apis::DfareportingV2_1::FloodlightConfiguration] floodlight_configuration_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4814,7 +4817,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_floodlight_configuration(profile_id, floodlight_configuration_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_floodlight_configuration(profile_id, id, floodlight_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/floodlightConfigurations' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::FloodlightConfiguration::Representation @@ -5142,9 +5145,9 @@ module Google # User profile ID associated with this request. # @param [String] campaign_id # Landing page campaign ID. - # @param [Google::Apis::DfareportingV2_1::LandingPage] landing_page_object # @param [String] id # Landing page ID. + # @param [Google::Apis::DfareportingV2_1::LandingPage] landing_page_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5166,7 +5169,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_landing_page(profile_id, campaign_id, landing_page_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_landing_page(profile_id, campaign_id, id, landing_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::LandingPage::Representation @@ -5881,9 +5884,9 @@ module Google # Updates an existing placement group. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::PlacementGroup] placement_group_object # @param [String] id # Placement group ID. + # @param [Google::Apis::DfareportingV2_1::PlacementGroup] placement_group_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -5905,7 +5908,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_placement_group(profile_id, placement_group_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_placement_group(profile_id, id, placement_group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/placementGroups' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::PlacementGroup::Representation @@ -6137,9 +6140,9 @@ module Google # Updates an existing placement strategy. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::PlacementStrategy] placement_strategy_object # @param [String] id # Placement strategy ID. + # @param [Google::Apis::DfareportingV2_1::PlacementStrategy] placement_strategy_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6161,7 +6164,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_placement_strategy(profile_id, placement_strategy_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_placement_strategy(profile_id, id, placement_strategy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/placementStrategies' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::PlacementStrategy::Representation @@ -6441,9 +6444,9 @@ module Google # Updates an existing placement. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Placement] placement_object # @param [String] id # Placement ID. + # @param [Google::Apis::DfareportingV2_1::Placement] placement_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6465,7 +6468,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_placement(profile_id, placement_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_placement(profile_id, id, placement_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/placements' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Placement::Representation @@ -6849,9 +6852,9 @@ module Google # semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::RemarketingListShare] remarketing_list_share_object # @param [String] remarketing_list_id # Remarketing list ID. + # @param [Google::Apis::DfareportingV2_1::RemarketingListShare] remarketing_list_share_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6873,7 +6876,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_remarketing_list_share(profile_id, remarketing_list_share_object = nil, remarketing_list_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_remarketing_list_share(profile_id, remarketing_list_id, remarketing_list_share_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/remarketingListShares' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::RemarketingListShare::Representation @@ -7008,10 +7011,10 @@ module Google # Retrieves a list of remarketing lists, possibly filtered. # @param [String] profile_id # User profile ID associated with this request. - # @param [Boolean] active - # Select only active or only inactive remarketing lists. # @param [String] advertiser_id # Select only remarketing lists owned by this advertiser. + # @param [Boolean] active + # Select only active or only inactive remarketing lists. # @param [String] floodlight_activity_id # Select only remarketing lists that have this floodlight activity ID. # @param [Fixnum] max_results @@ -7051,7 +7054,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_remarketing_lists(profile_id, active: nil, advertiser_id: nil, floodlight_activity_id: nil, max_results: nil, name: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_remarketing_lists(profile_id, advertiser_id, active: nil, floodlight_activity_id: nil, max_results: nil, name: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/remarketingLists' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::DfareportingV2_1::ListRemarketingListsResponse::Representation @@ -7074,9 +7077,9 @@ module Google # Updates an existing remarketing list. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::RemarketingList] remarketing_list_object # @param [String] id # Remarketing list ID. + # @param [Google::Apis::DfareportingV2_1::RemarketingList] remarketing_list_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7098,7 +7101,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_remarketing_list(profile_id, remarketing_list_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_remarketing_list(profile_id, id, remarketing_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/remarketingLists' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::RemarketingList::Representation @@ -7754,9 +7757,9 @@ module Google # Updates an existing site. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Site] site_object # @param [String] id # Site ID. + # @param [Google::Apis::DfareportingV2_1::Site] site_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7778,7 +7781,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_site(profile_id, site_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_site(profile_id, id, site_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/sites' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Site::Representation @@ -8098,9 +8101,9 @@ module Google # Updates an existing subaccount. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::Subaccount] subaccount_object # @param [String] id # Subaccount ID. + # @param [Google::Apis::DfareportingV2_1::Subaccount] subaccount_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8122,7 +8125,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_subaccount(profile_id, subaccount_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_subaccount(profile_id, id, subaccount_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/subaccounts' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::Subaccount::Representation @@ -8218,10 +8221,10 @@ module Google # Retrieves a list of targetable remarketing lists, possibly filtered. # @param [String] profile_id # User profile ID associated with this request. - # @param [Boolean] active - # Select only active or only inactive targetable remarketing lists. # @param [String] advertiser_id # Select only targetable remarketing lists targetable by these advertisers. + # @param [Boolean] active + # Select only active or only inactive targetable remarketing lists. # @param [Fixnum] max_results # Maximum number of results to return. # @param [String] name @@ -8259,7 +8262,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_targetable_remarketing_lists(profile_id, active: nil, advertiser_id: nil, max_results: nil, name: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_targetable_remarketing_lists(profile_id, advertiser_id, active: nil, max_results: nil, name: nil, page_token: nil, sort_field: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/targetableRemarketingLists' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::DfareportingV2_1::ListTargetableRemarketingListsResponse::Representation @@ -8684,9 +8687,9 @@ module Google # Updates an existing user role. This method supports patch semantics. # @param [String] profile_id # User profile ID associated with this request. - # @param [Google::Apis::DfareportingV2_1::UserRole] user_role_object # @param [String] id # User role ID. + # @param [Google::Apis::DfareportingV2_1::UserRole] user_role_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8708,7 +8711,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_user_role(profile_id, user_role_object = nil, id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_user_role(profile_id, id, user_role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'userprofiles/{profileId}/userRoles' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DfareportingV2_1::UserRole::Representation diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index 77280b6fa..3cafa0672 100644 --- a/generated/google/apis/doubleclicksearch_v2.rb +++ b/generated/google/apis/doubleclicksearch_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/doubleclick-search/ module DoubleclicksearchV2 VERSION = 'V2' - REVISION = '20150708' + REVISION = '20150722' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/doubleclicksearch_v2/service.rb b/generated/google/apis/doubleclicksearch_v2/service.rb index 6869c21af..4552761cb 100644 --- a/generated/google/apis/doubleclicksearch_v2/service.rb +++ b/generated/google/apis/doubleclicksearch_v2/service.rb @@ -60,14 +60,6 @@ module Google # Numeric ID of the advertiser. # @param [String] engine_account_id # Numeric ID of the engine account. - # @param [String] ad_group_id - # Numeric ID of the ad group. - # @param [String] ad_id - # Numeric ID of the ad. - # @param [String] campaign_id - # Numeric ID of the campaign. - # @param [String] criterion_id - # Numeric ID of the criterion. # @param [Fixnum] end_date # Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. # @param [Fixnum] row_count @@ -76,6 +68,14 @@ module Google # First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. # @param [Fixnum] start_row # The 0-based starting index for retrieving conversions results. + # @param [String] ad_group_id + # Numeric ID of the ad group. + # @param [String] ad_id + # Numeric ID of the ad. + # @param [String] campaign_id + # Numeric ID of the campaign. + # @param [String] criterion_id + # Numeric ID of the criterion. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -97,7 +97,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_conversion(agency_id, advertiser_id, engine_account_id, ad_group_id: nil, ad_id: nil, campaign_id: nil, criterion_id: nil, end_date: nil, row_count: nil, start_date: nil, start_row: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_conversion(agency_id, advertiser_id, engine_account_id, end_date, row_count, start_date, start_row, ad_group_id: nil, ad_id: nil, campaign_id: nil, criterion_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation @@ -157,7 +157,6 @@ module Google # Updates a batch of conversions in DoubleClick Search. This method supports # patch semantics. - # @param [Google::Apis::DoubleclicksearchV2::ConversionList] conversion_list_object # @param [String] advertiser_id # Numeric ID of the advertiser. # @param [String] agency_id @@ -172,6 +171,7 @@ module Google # First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. # @param [Fixnum] start_row # The 0-based starting index for retrieving conversions results. + # @param [Google::Apis::DoubleclicksearchV2::ConversionList] conversion_list_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -193,7 +193,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_conversion(conversion_list_object = nil, advertiser_id: nil, agency_id: nil, end_date: nil, engine_account_id: nil, row_count: nil, start_date: nil, start_row: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_conversion(advertiser_id, agency_id, end_date, engine_account_id, row_count, start_date, start_row, conversion_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'conversion' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DoubleclicksearchV2::ConversionList::Representation diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index c1122cc98..2f144e4f0 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20150702' + REVISION = '20150716' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' @@ -45,6 +45,9 @@ module Google # View metadata for files in your Google Drive AUTH_DRIVE_METADATA_READONLY = 'https://www.googleapis.com/auth/drive.metadata.readonly' + # View the photos, videos and albums in your Google Photos + AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly' + # View the files in your Google Drive AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index 2016ea725..e99bfc353 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -1454,8 +1454,8 @@ module Google # @return [Google::Apis::DriveV2::User] attr_accessor :sharing_user - # The list of spaces which contain the file. Supported values are 'drive' and ' - # appDataFolder'. + # The list of spaces which contain the file. Supported values are 'drive', ' + # appDataFolder' and 'photos'. # Corresponds to the JSON property `spaces` # @return [Array] attr_accessor :spaces diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index 8531aa552..2561041ae 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -231,8 +231,8 @@ module Google # @param [String] page_token # Page token for changes. # @param [String] spaces - # A comma-separated list of spaces to query. Supported values are 'drive' and ' - # appDataFolder'. + # A comma-separated list of spaces to query. Supported values are 'drive', ' + # appDataFolder' and 'photos'. # @param [String] start_change_id # Change ID to start listing changes from. # @param [String] fields @@ -286,8 +286,8 @@ module Google # @param [String] page_token # Page token for changes. # @param [String] spaces - # A comma-separated list of spaces to query. Supported values are 'drive' and ' - # appDataFolder'. + # A comma-separated list of spaces to query. Supported values are 'drive', ' + # appDataFolder' and 'photos'. # @param [String] start_change_id # Change ID to start listing changes from. # @param [String] fields @@ -1048,8 +1048,8 @@ module Google # @param [String] q # Query string for searching files. # @param [String] spaces - # A comma-separated list of spaces to query. Supported values are 'drive' and ' - # appDataFolder'. + # A comma-separated list of spaces to query. Supported values are 'drive', ' + # appDataFolder' and 'photos'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1096,6 +1096,8 @@ module Google # Comma-separated list of parent IDs to add. # @param [Boolean] convert # Whether to convert this file to the corresponding Google Docs format. + # @param [String] modified_date_behavior + # How the modifiedDate field should be updated. This overrides setModifiedDate. # @param [Boolean] new_revision # Whether a blob upload should create a new revision. If false, the blob data in # the current head revision is replaced. If true or not set, a new blob is @@ -1142,7 +1144,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'files/{fileId}' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::DriveV2::File::Representation @@ -1152,6 +1154,7 @@ module Google command.params['fileId'] = file_id unless file_id.nil? command.query['addParents'] = add_parents unless add_parents.nil? command.query['convert'] = convert unless convert.nil? + command.query['modifiedDateBehavior'] = modified_date_behavior unless modified_date_behavior.nil? command.query['newRevision'] = new_revision unless new_revision.nil? command.query['ocr'] = ocr unless ocr.nil? command.query['ocrLanguage'] = ocr_language unless ocr_language.nil? @@ -1204,7 +1207,7 @@ module Google execute_or_queue_command(command, &block) end - # Moves a file to the trash. + # Moves a file to the trash. The currently authenticated user must own the file. # @param [String] file_id # The ID of the file to trash. # @param [String] fields @@ -1284,6 +1287,8 @@ module Google # Comma-separated list of parent IDs to add. # @param [Boolean] convert # Whether to convert this file to the corresponding Google Docs format. + # @param [String] modified_date_behavior + # How the modifiedDate field should be updated. This overrides setModifiedDate. # @param [Boolean] new_revision # Whether a blob upload should create a new revision. If false, the blob data in # the current head revision is replaced. If true or not set, a new blob is @@ -1334,7 +1339,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'files/{fileId}' if upload_source.nil? command = make_simple_command(:put, path, options) @@ -1350,6 +1355,7 @@ module Google command.params['fileId'] = file_id unless file_id.nil? command.query['addParents'] = add_parents unless add_parents.nil? command.query['convert'] = convert unless convert.nil? + command.query['modifiedDateBehavior'] = modified_date_behavior unless modified_date_behavior.nil? command.query['newRevision'] = new_revision unless new_revision.nil? command.query['ocr'] = ocr unless ocr.nil? command.query['ocrLanguage'] = ocr_language unless ocr_language.nil? diff --git a/generated/google/apis/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index 5fa48a5fd..70bcb75d7 100644 --- a/generated/google/apis/fitness_v1.rb +++ b/generated/google/apis/fitness_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fit/rest/ module FitnessV1 VERSION = 'V1' - REVISION = '20150717' + REVISION = '20150720' # View your activity information in Google Fit AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' diff --git a/generated/google/apis/fitness_v1/classes.rb b/generated/google/apis/fitness_v1/classes.rb index 0bd4bf867..f5616e331 100644 --- a/generated/google/apis/fitness_v1/classes.rb +++ b/generated/google/apis/fitness_v1/classes.rb @@ -26,17 +26,17 @@ module Google class AggregateBucket include Google::Apis::Core::Hashable - # available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT + # Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT # Corresponds to the JSON property `activity` # @return [Fixnum] attr_accessor :activity - # There will be one dataset per datatype/datasource + # There will be one dataset per AggregateBy in the request. # Corresponds to the JSON property `dataset` # @return [Array] attr_accessor :dataset - # + # The end time for the aggregated data, in milliseconds since epoch, inclusive. # Corresponds to the JSON property `endTimeMillis` # @return [String] attr_accessor :end_time_millis @@ -47,7 +47,7 @@ module Google # @return [Google::Apis::FitnessV1::Session] attr_accessor :session - # + # The start time for the aggregated data, in milliseconds since epoch, inclusive. # Corresponds to the JSON property `startTimeMillis` # @return [String] attr_accessor :start_time_millis @@ -73,30 +73,25 @@ module Google end end - # + # The specification of which data to aggregate. class AggregateBy include Google::Apis::Core::Hashable - # + # A data source ID to aggregate. Mutually exclusive of dataTypeName. Only data + # from the specified data source ID will be included in the aggregation. The + # dataset in the response will have the same data source ID. # Corresponds to the JSON property `dataSourceId` # @return [String] attr_accessor :data_source_id - # by dataype or by datasource + # The data type to aggregate. All data sources providing this data type will + # contribute data to the aggregation. The response will contain a single dataset + # for this data type name. The dataset will have a data source ID of derived:com. + # google.:com.google.android.gms:aggregated # Corresponds to the JSON property `dataTypeName` # @return [String] attr_accessor :data_type_name - # - # Corresponds to the JSON property `outputDataSourceId` - # @return [String] - attr_accessor :output_data_source_id - - # - # Corresponds to the JSON property `outputDataTypeName` - # @return [String] - attr_accessor :output_data_type_name - def initialize(**args) update!(**args) end @@ -105,8 +100,6 @@ module Google def update!(**args) @data_source_id = args[:data_source_id] unless args[:data_source_id].nil? @data_type_name = args[:data_type_name] unless args[:data_type_name].nil? - @output_data_source_id = args[:output_data_source_id] unless args[:output_data_source_id].nil? - @output_data_type_name = args[:output_data_type_name] unless args[:output_data_type_name].nil? end end @@ -114,37 +107,52 @@ module Google class AggregateRequest include Google::Apis::Core::Hashable - # + # The specification of data to be aggregated. At least one aggregateBy spec must + # be provided. All data that is specified will be aggregated using the same + # bucketing criteria. There will be one dataset in the response for every + # aggregateBy spec. # Corresponds to the JSON property `aggregateBy` # @return [Array] attr_accessor :aggregate_by - # + # Specifies that data be aggregated each activity segment recored for a user. + # Similar to bucketByActivitySegment, but bucketing is done for each activity + # segment rather than all segments of the same type. Mutually exclusive of other + # bucketing specifications. # Corresponds to the JSON property `bucketByActivitySegment` # @return [Google::Apis::FitnessV1::BucketByActivity] attr_accessor :bucket_by_activity_segment - # + # Specifies that data be aggregated by the type of activity being performed when + # the data was recorded. All data that was recorded during a certain activity + # type (for the given time range) will be aggregated into the same bucket. Data + # that was recorded while the user was not active will not be included in the + # response. Mutually exclusive of other bucketing specifications. # Corresponds to the JSON property `bucketByActivityType` # @return [Google::Apis::FitnessV1::BucketByActivity] attr_accessor :bucket_by_activity_type - # + # Specifies that data be aggregated by user sessions. Data that does not fall + # within the time range of a session will not be included in the response. + # Mutually exclusive of other bucketing specifications. # Corresponds to the JSON property `bucketBySession` # @return [Google::Apis::FitnessV1::BucketBySession] attr_accessor :bucket_by_session - # apparently oneof is not supported by reduced_nano_proto + # Specifies that data be aggregated by a single time interval. Mutually + # exclusive of other bucketing specifications. # Corresponds to the JSON property `bucketByTime` # @return [Google::Apis::FitnessV1::BucketByTime] attr_accessor :bucket_by_time - # + # The end of a window of time. Data that intersects with this time window will + # be aggregated. The time is in milliseconds since epoch, inclusive. # Corresponds to the JSON property `endTimeMillis` # @return [String] attr_accessor :end_time_millis - # required time range + # The start of a window of time. Data that intersects with this time window will + # be aggregated. The time is in milliseconds since epoch, inclusive. # Corresponds to the JSON property `startTimeMillis` # @return [String] attr_accessor :start_time_millis @@ -169,7 +177,7 @@ module Google class AggregateResponse include Google::Apis::Core::Hashable - # + # A list of buckets containing the aggregated data. # Corresponds to the JSON property `bucket` # @return [Array] attr_accessor :bucket @@ -232,12 +240,14 @@ module Google class BucketByActivity include Google::Apis::Core::Hashable - # default activity stream will be used if not specified + # The default activity stream will be used if a specific activityDataSourceId is + # not specified. # Corresponds to the JSON property `activityDataSourceId` # @return [String] attr_accessor :activity_data_source_id - # Only activity segments of duration longer than this is used + # Specifies that only activity segments of duration longer than + # minDurationMillis are considered and used as a container for aggregated data. # Corresponds to the JSON property `minDurationMillis` # @return [String] attr_accessor :min_duration_millis @@ -257,7 +267,8 @@ module Google class BucketBySession include Google::Apis::Core::Hashable - # Only sessions of duration longer than this is used + # Specifies that only sessions of duration longer than minDurationMillis are + # considered and used as a container for aggregated data. # Corresponds to the JSON property `minDurationMillis` # @return [String] attr_accessor :min_duration_millis @@ -276,7 +287,9 @@ module Google class BucketByTime include Google::Apis::Core::Hashable - # + # Specifies that result buckets aggregate data by exactly durationMillis time + # frames. Time frames that contain no data will be included in the response with + # an empty dataset. # Corresponds to the JSON property `durationMillis` # @return [String] attr_accessor :duration_millis diff --git a/generated/google/apis/fitness_v1/representations.rb b/generated/google/apis/fitness_v1/representations.rb index 1f1f67776..fa4b7edb5 100644 --- a/generated/google/apis/fitness_v1/representations.rb +++ b/generated/google/apis/fitness_v1/representations.rb @@ -121,8 +121,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :data_source_id, as: 'dataSourceId' property :data_type_name, as: 'dataTypeName' - property :output_data_source_id, as: 'outputDataSourceId' - property :output_data_type_name, as: 'outputDataTypeName' end end diff --git a/generated/google/apis/fitness_v1/service.rb b/generated/google/apis/fitness_v1/service.rb index 8ae5fe66e..2d5d61238 100644 --- a/generated/google/apis/fitness_v1/service.rb +++ b/generated/google/apis/fitness_v1/service.rb @@ -491,8 +491,12 @@ module Google execute_or_queue_command(command, &block) end - # + # Aggregates data of a certain type or stream into buckets divided by a given + # type of boundary. Multiple data sets of multiple types and from multiple + # sources can be aggreated into exactly one bucket type per request. # @param [String] user_id + # Aggregate data for the person identified. Use me to indicate the authenticated + # user. Only me is supported at this time. # @param [Google::Apis::FitnessV1::AggregateRequest] aggregate_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/fusiontables_v2/service.rb b/generated/google/apis/fusiontables_v2/service.rb index 748d3195e..aee6e28a7 100644 --- a/generated/google/apis/fusiontables_v2/service.rb +++ b/generated/google/apis/fusiontables_v2/service.rb @@ -302,8 +302,6 @@ module Google # - SHOW # - DESCRIBE # - CREATE statement. - # @param [Boolean] hdrs - # Whether column names are included in the first row. Default is true. # @param [String] sql # A Fusion Tables SQL statement, which can be any of # - SELECT @@ -313,6 +311,8 @@ module Google # - SHOW # - DESCRIBE # - CREATE + # @param [Boolean] hdrs + # Whether column names are included in the first row. Default is true. # @param [Boolean] typed # Whether typed values are returned in the (JSON) response: numbers for numeric # values and parsed geometries for KML values. Default is true. @@ -339,7 +339,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def sql_query(hdrs: nil, sql: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) + def sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) path = 'query' if download_dest.nil? command = make_simple_command(:post, path, options) @@ -362,13 +362,13 @@ module Google # - SELECT # - SHOW # - DESCRIBE - # @param [Boolean] hdrs - # Whether column names are included (in the first row). Default is true. # @param [String] sql # A SQL statement which can be any of # - SELECT # - SHOW # - DESCRIBE + # @param [Boolean] hdrs + # Whether column names are included (in the first row). Default is true. # @param [Boolean] typed # Whether typed values are returned in the (JSON) response: numbers for numeric # values and parsed geometries for KML values. Default is true. @@ -395,7 +395,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def sql_get_query(hdrs: nil, sql: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) + def sql_get_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) path = 'query' if download_dest.nil? command = make_simple_command(:get, path, options) @@ -833,14 +833,14 @@ module Google end # Imports a new table. + # @param [String] name + # The name to be assigned to the new table. # @param [String] delimiter # The delimiter used to separate cell values. This can only consist of a single # character. Default is ,. # @param [String] encoding # The encoding of the content. Default is UTF-8. Use auto-detect if you are # unsure of the encoding. - # @param [String] name - # The name to be assigned to the new table. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -866,7 +866,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def import_table(delimiter: nil, encoding: nil, name: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def import_table(name, delimiter: nil, encoding: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'tables/import' if upload_source.nil? command = make_simple_command(:post, path, options) diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index fcea1ea6e..5de1ef091 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '20150713' + REVISION = '20150728' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 0eb7abd36..497640350 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20150713' + REVISION = '20150728' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/games_v1/service.rb b/generated/google/apis/games_v1/service.rb index 72e44eefe..35a631235 100644 --- a/generated/google/apis/games_v1/service.rb +++ b/generated/google/apis/games_v1/service.rb @@ -100,12 +100,12 @@ module Google # authenticated player. # @param [String] achievement_id # The ID of the achievement used by this method. + # @param [Fixnum] steps_to_increment + # The number of steps to increment. # @param [String] request_id # A randomly generated numeric ID for each request specified by the caller. This # number is used at the server to ensure that the request is handled correctly # across retries. - # @param [Fixnum] steps_to_increment - # The number of steps to increment. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -127,7 +127,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def increment_achievement(achievement_id, request_id: nil, steps_to_increment: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'achievements/{achievementId}/increment' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::GamesV1::AchievementIncrementResponse::Representation @@ -260,7 +260,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_steps_at_least_achievement(achievement_id, steps: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_steps_at_least_achievement(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'achievements/{achievementId}/setStepsAtLeast' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse::Representation @@ -905,7 +905,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def claim_quest_milestone(quest_id, milestone_id, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def claim_quest_milestone(quest_id, milestone_id, request_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'quests/{questId}/milestones/{milestoneId}/claim' command = make_simple_command(:put, path, options) command.params['questId'] = quest_id unless quest_id.nil? @@ -1035,7 +1035,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def check_revision(client_revision: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def check_revision(client_revision, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'revisions/check' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::GamesV1::CheckRevisionResponse::Representation @@ -1442,6 +1442,8 @@ module Google # The ID of the leaderboard. # @param [String] collection # The collection of scores you're requesting. + # @param [String] time_span + # The time span for the scores and ranks you're requesting. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1450,8 +1452,6 @@ module Google # the specified maxResults. # @param [String] page_token # The token returned by the previous request. - # @param [String] time_span - # The time span for the scores and ranks you're requesting. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1473,7 +1473,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_scores(leaderboard_id, collection, language: nil, max_results: nil, page_token: nil, time_span: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_scores(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'leaderboards/{leaderboardId}/scores/{collection}' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation @@ -1495,6 +1495,8 @@ module Google # The ID of the leaderboard. # @param [String] collection # The collection of scores you're requesting. + # @param [String] time_span + # The time span for the scores and ranks you're requesting. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1511,8 +1513,6 @@ module Google # @param [Boolean] return_top_if_absent # True if the top scores should be returned when the player is not in the # leaderboard. Defaults to true. - # @param [String] time_span - # The time span for the scores and ranks you're requesting. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1534,7 +1534,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_window_score(leaderboard_id, collection, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, time_span: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_window_score(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'leaderboards/{leaderboardId}/window/{collection}' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation @@ -1556,8 +1556,6 @@ module Google # Submits a score to the specified leaderboard. # @param [String] leaderboard_id # The ID of the leaderboard. - # @param [String] language - # The preferred language to use for strings returned by this method. # @param [String] score # The score you're submitting. The submitted score is ignored if it is worse # than a previously submitted score, where worse depends on the leaderboard sort @@ -1565,6 +1563,8 @@ module Google # For fixed-point, the score represents the raw value. For time, the score # represents elapsed time in milliseconds. For currency, the score represents a # value in micro units. + # @param [String] language + # The preferred language to use for strings returned by this method. # @param [String] score_tag # Additional information about the score you're submitting. Values must contain # no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. @@ -1589,7 +1589,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def submit_score(leaderboard_id, language: nil, score: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'leaderboards/{leaderboardId}/scores' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::GamesV1::PlayerScoreResponse::Representation @@ -2047,10 +2047,10 @@ module Google # the match. # @param [String] match_id # The ID of the match. - # @param [String] language - # The preferred language to use for strings returned by this method. # @param [Fixnum] match_version # The version of the match being updated. + # @param [String] language + # The preferred language to use for strings returned by this method. # @param [String] pending_participant_id # The ID of another participant who should take their turn next. If not set, the # match will wait for other player(s) to join via automatching; this is only @@ -2077,7 +2077,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def leave_turn(match_id, language: nil, match_version: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def leave_turn(match_id, match_version, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'turnbasedmatches/{matchId}/leaveTurn' command = make_simple_command(:put, path, options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index f2a528770..84978496f 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -26,7 +26,7 @@ module Google # @see module GenomicsV1 VERSION = 'V1' - REVISION = '20150716' + REVISION = '20150723' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index bfc32988f..99236c417 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -141,38 +141,38 @@ module Google attr_accessor :done alias_method :done?, :done - # The `Status` defines a logical error model that is suitable for different + # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to - # use and understand for most users. - Flexible enough to meet unexpected needs. - # # Overview The `Status` message contains 3 pieces of data: error code, error + # use and understand for most users - Flexible enough to meet unexpected needs # + # Overview The `Status` message contains three pieces of data: error code, error # message, and error details. The error code should be an enum value of [google. # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. # The error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, it can be sent in the error details or localized by - # the client. The optional error details may contain arbitrary information about - # the error. There is a predefined set of error detail types in the package ` - # google.rpc` which can be used for common error conditions. # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. # Other uses The - # error model and the `Status` message can be used in a variety of environments - - # either with or without APIs - to provide consistent developer experience - # across different environments. Example uses of this error model include: - - # Partial errors. If a service needs to return partial errors to the client, it - # may embed the `Status` in the normal response to indicate the partial errors. - - # Workflow errors. A typical workflow has multiple steps. Each step may have a ` - # Status` message for error reporting purpose. - Batch operations. If a client - # uses batch request and batch response, the `Status` message should be used - # directly inside batch response, one for each error sub-response. - - # Asynchronous operations. If an API call embeds asynchronous operation results - # in its response, the status of those operations should be represented directly - # using the `Status` message. - Logging. If some API errors are stored in logs, - # the message `Status` could be used directly after any stripping needed for - # security/privacy reasons. + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. # + # Language mapping The `Status` message is the logical representation of the + # error model, but it is not necessarily the actual wire format. When the ` + # Status` message is exposed in different client libraries and different wire + # protocols, it can be mapped differently. For example, it will likely be mapped + # to some exceptions in Java, but more likely mapped to some error codes in C. # + # Other uses The error model and the `Status` message can be used in a variety + # of environments, either with or without APIs, to provide a consistent + # developer experience across different environments. Example uses of this error + # model include: - Partial errors. If a service needs to return partial errors + # to the client, it may embed the `Status` in the normal response to indicate + # the partial errors. - Workflow errors. A typical workflow has multiple steps. + # Each step may have a `Status` message for error reporting purpose. - Batch + # operations. If a client uses batch request and batch response, the `Status` + # message should be used directly inside batch response, one for each error sub- + # response. - Asynchronous operations. If an API call embeds asynchronous + # operation results in its response, the status of those operations should be + # represented directly using the `Status` message. - Logging. If some API errors + # are stored in logs, the message `Status` could be used directly after any + # stripping needed for security/privacy reasons. # Corresponds to the JSON property `error` # @return [Google::Apis::GenomicsV1::Status] attr_accessor :error @@ -200,38 +200,38 @@ module Google end end - # The `Status` defines a logical error model that is suitable for different + # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to - # use and understand for most users. - Flexible enough to meet unexpected needs. - # # Overview The `Status` message contains 3 pieces of data: error code, error + # use and understand for most users - Flexible enough to meet unexpected needs # + # Overview The `Status` message contains three pieces of data: error code, error # message, and error details. The error code should be an enum value of [google. # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. # The error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, it can be sent in the error details or localized by - # the client. The optional error details may contain arbitrary information about - # the error. There is a predefined set of error detail types in the package ` - # google.rpc` which can be used for common error conditions. # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. # Other uses The - # error model and the `Status` message can be used in a variety of environments - - # either with or without APIs - to provide consistent developer experience - # across different environments. Example uses of this error model include: - - # Partial errors. If a service needs to return partial errors to the client, it - # may embed the `Status` in the normal response to indicate the partial errors. - - # Workflow errors. A typical workflow has multiple steps. Each step may have a ` - # Status` message for error reporting purpose. - Batch operations. If a client - # uses batch request and batch response, the `Status` message should be used - # directly inside batch response, one for each error sub-response. - - # Asynchronous operations. If an API call embeds asynchronous operation results - # in its response, the status of those operations should be represented directly - # using the `Status` message. - Logging. If some API errors are stored in logs, - # the message `Status` could be used directly after any stripping needed for - # security/privacy reasons. + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. # + # Language mapping The `Status` message is the logical representation of the + # error model, but it is not necessarily the actual wire format. When the ` + # Status` message is exposed in different client libraries and different wire + # protocols, it can be mapped differently. For example, it will likely be mapped + # to some exceptions in Java, but more likely mapped to some error codes in C. # + # Other uses The error model and the `Status` message can be used in a variety + # of environments, either with or without APIs, to provide a consistent + # developer experience across different environments. Example uses of this error + # model include: - Partial errors. If a service needs to return partial errors + # to the client, it may embed the `Status` in the normal response to indicate + # the partial errors. - Workflow errors. A typical workflow has multiple steps. + # Each step may have a `Status` message for error reporting purpose. - Batch + # operations. If a client uses batch request and batch response, the `Status` + # message should be used directly inside batch response, one for each error sub- + # response. - Asynchronous operations. If an API call embeds asynchronous + # operation results in its response, the status of those operations should be + # represented directly using the `Status` message. - Logging. If some API errors + # are stored in logs, the message `Status` could be used directly after any + # stripping needed for security/privacy reasons. class Status include Google::Apis::Core::Hashable @@ -2155,7 +2155,10 @@ module Google # @return [String] attr_accessor :sample_id - # The IDs of the variant sets this call set belongs to. + # The IDs of the variant sets this call set belongs to. This field must have + # exactly length one, as a call set belongs to a single variant set. This field + # is repeated for compatibility with the [GA4GH 0.5.1 API](https://github.com/ + # ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variants.avdl#L76). # Corresponds to the JSON property `variantSetIds` # @return [Array] attr_accessor :variant_set_ids diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index 1c25995c4..38834b606 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -301,7 +301,7 @@ module Google # The maximum number of results to return. If unspecified, defaults to 256. The # maximum value is 2048. # @param [String] page_token - # The standard List page token. + # The standard list page token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/licensing_v1/service.rb b/generated/google/apis/licensing_v1/service.rb index 46207cc57..47db2a471 100644 --- a/generated/google/apis/licensing_v1/service.rb +++ b/generated/google/apis/licensing_v1/service.rb @@ -208,7 +208,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_license_assignment_for_product(product_id, customer_id: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_license_assignment_for_product(product_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{productId}/users' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation @@ -257,7 +257,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_license_assignment_for_product_and_sku(product_id, sku_id, customer_id: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_license_assignment_for_product_and_sku(product_id, sku_id, customer_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{productId}/sku/{skuId}/users' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation diff --git a/generated/google/apis/mapsengine_v1/service.rb b/generated/google/apis/mapsengine_v1/service.rb index 3bbcdc03a..72ea04f2c 100644 --- a/generated/google/apis/mapsengine_v1/service.rb +++ b/generated/google/apis/mapsengine_v1/service.rb @@ -2280,6 +2280,11 @@ module Google end # Return all rasters readable by the current user. + # @param [String] project_id + # The ID of a Maps Engine project, used to filter the response. To list all + # available projects with their IDs, send a Projects: list request. You can also + # find your project ID as the value of the DashboardPlace:cid URL parameter when + # signed in to mapsengine.google.com. # @param [String] bbox # A bounding box, expressed as "west,south,east,north". If set, only assets # which intersect this bounding box will be returned. @@ -2306,11 +2311,6 @@ module Google # next page of results, set this parameter to the value of nextPageToken from # the previous response. # @param [String] processing_status - # @param [String] project_id - # The ID of a Maps Engine project, used to filter the response. To list all - # available projects with their IDs, send a Projects: list request. You can also - # find your project ID as the value of the DashboardPlace:cid URL parameter when - # signed in to mapsengine.google.com. # @param [String] role # The role parameter indicates that the response should only contain assets # where the current user has the specified level of access. @@ -2341,7 +2341,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_rasters(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_rasters(project_id, bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'rasters' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::MapsengineV1::ListRastersResponse::Representation @@ -2504,7 +2504,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_raster_file(id, filename: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def insert_raster_file(id, filename, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'rasters/{id}/files' if upload_source.nil? command = make_simple_command(:post, path, options) @@ -3274,7 +3274,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_table_file(id, filename: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def insert_table_file(id, filename, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'tables/{id}/files' if upload_source.nil? command = make_simple_command(:post, path, options) diff --git a/generated/google/apis/mirror_v1.rb b/generated/google/apis/mirror_v1.rb index 1997b0d81..0172f80f4 100644 --- a/generated/google/apis/mirror_v1.rb +++ b/generated/google/apis/mirror_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/glass module MirrorV1 VERSION = 'V1' - REVISION = '20150326' + REVISION = '20150720' # View your location AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location' diff --git a/generated/google/apis/pagespeedonline_v2/service.rb b/generated/google/apis/pagespeedonline_v2/service.rb index 802370964..ccf69c05f 100644 --- a/generated/google/apis/pagespeedonline_v2/service.rb +++ b/generated/google/apis/pagespeedonline_v2/service.rb @@ -56,6 +56,8 @@ module Google # Runs PageSpeed analysis on the page at the specified URL, and returns # PageSpeed scores, a list of suggestions to make that page faster, and other # information. + # @param [String] url + # The URL to fetch and analyze # @param [Boolean] filter_third_party_resources # Indicates if third party resources should be filtered out before PageSpeed # analysis. @@ -67,8 +69,6 @@ module Google # Indicates if binary data containing a screenshot should be included # @param [String] strategy # The analysis strategy to use - # @param [String] url - # The URL to fetch and analyze # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -90,7 +90,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def run_pagespeed(filter_third_party_resources: nil, locale: nil, rule: nil, screenshot: nil, strategy: nil, url: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def run_pagespeed(url, filter_third_party_resources: nil, locale: nil, rule: nil, screenshot: nil, strategy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'runPagespeed' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::PagespeedonlineV2::Result::Representation diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index fc95bb62d..efd333a13 100644 --- a/generated/google/apis/plus_domains_v1.rb +++ b/generated/google/apis/plus_domains_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/domains/ module PlusDomainsV1 VERSION = 'V1' - REVISION = '20150719' + REVISION = '20150729' # View your circles and the people and pages in them AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index 3e4f7785a..0e4a674e3 100644 --- a/generated/google/apis/plus_v1.rb +++ b/generated/google/apis/plus_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/api/ module PlusV1 VERSION = 'V1' - REVISION = '20150719' + REVISION = '20150729' # Know your basic profile info and list of people in your circles. AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/plus_v1/service.rb b/generated/google/apis/plus_v1/service.rb index cda9e6d19..8d15c2670 100644 --- a/generated/google/apis/plus_v1/service.rb +++ b/generated/google/apis/plus_v1/service.rb @@ -139,6 +139,8 @@ module Google end # Search public activities. + # @param [String] query + # Full-text search query string. # @param [String] language # Specify the preferred language to search with. See search language codes for # available values. @@ -152,8 +154,6 @@ module Google # The continuation token, which is used to page through large result sets. To # get the next page of results, set this parameter to the value of " # nextPageToken" from the previous response. This token can be of any length. - # @param [String] query - # Full-text search query string. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -175,7 +175,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def search_activities(language: nil, max_results: nil, order_by: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def search_activities(query, language: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'activities' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation @@ -554,6 +554,8 @@ module Google end # Search all public profiles. + # @param [String] query + # Specify a query string for full text search of public text in all profiles. # @param [String] language # Specify the preferred language to search with. See search language codes for # available values. @@ -565,8 +567,6 @@ module Google # The continuation token, which is used to page through large result sets. To # get the next page of results, set this parameter to the value of " # nextPageToken" from the previous response. This token can be of any length. - # @param [String] query - # Specify a query string for full text search of public text in all profiles. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -588,7 +588,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def search_people(language: nil, max_results: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def search_people(query, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'people' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation diff --git a/generated/google/apis/pubsub_v1beta2.rb b/generated/google/apis/pubsub_v1beta2.rb index 5cc46464c..b3174ec49 100644 --- a/generated/google/apis/pubsub_v1beta2.rb +++ b/generated/google/apis/pubsub_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1beta2 VERSION = 'V1beta2' - REVISION = '20150604' + REVISION = '20150427' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/pubsub_v1beta2/classes.rb b/generated/google/apis/pubsub_v1beta2/classes.rb index d2d4d1d33..0b3d28cde 100644 --- a/generated/google/apis/pubsub_v1beta2/classes.rb +++ b/generated/google/apis/pubsub_v1beta2/classes.rb @@ -385,12 +385,11 @@ module Google class Topic include Google::Apis::Core::Hashable - # The name of the topic. It must have the format "projects/`project`/topics/` - # topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a - # letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), - # underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It - # must be between 3 and 255 characters in length, and it must not start with " - # goog". + # The name of the topic. It must have the format `"projects/`project`/topics/` + # topic`"`. ``topic`` must start with a letter, and contain only letters (`[A-Za- + # z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), + # tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 + # characters in length, and it must not start with `"goog"`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -424,7 +423,8 @@ module Google end end - # A message data and its attributes. + # A message data and its attributes. The message payload must not be empty; it + # must contain either a non-empty data field, or at least one attribute. class Message include Google::Apis::Core::Hashable @@ -553,12 +553,12 @@ module Google class Subscription include Google::Apis::Core::Hashable - # The name of the subscription. It must have the format "projects/`project`/ - # subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. ` - # subscription` must start with a letter, and contain only letters ([A-Za-z]), - # numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+) - # or percent signs (%). It must be between 3 and 255 characters in length, and - # it must not start with "goog". + # The name of the subscription. It must have the format `"projects/`project`/ + # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and + # contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`% + # `). It must be between 3 and 255 characters in length, and it must not start + # with `"goog"`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -579,12 +579,12 @@ module Google # before the ack deadline expires and before the message is acknowledged, it is # an outstanding message and will not be delivered again during that time (on a # best-effort basis). For pull delivery this value is used as the initial value - # for the ack deadline. It may be overridden for each message using its - # corresponding ack_id by calling ModifyAckDeadline. For push delivery, this - # value is also used to set the request timeout for the call to the push - # endpoint. If the subscriber never acknowledges the message, the Pub/Sub system - # will eventually redeliver the message. If this parameter is not set, the - # default value of 60 seconds is used. + # for the ack deadline. To override this value for a given message, call + # ModifyAckDeadline with the corresponding ack_id. For push delivery, this value + # is also used to set the request timeout for the call to the push endpoint. If + # the subscriber never acknowledges the message, the Pub/Sub system will + # eventually redeliver the message. If this parameter is not set, the default + # value of 10 seconds is used. # Corresponds to the JSON property `ackDeadlineSeconds` # @return [Fixnum] attr_accessor :ack_deadline_seconds @@ -785,7 +785,8 @@ module Google # @return [String] attr_accessor :ack_id - # A message data and its attributes. + # A message data and its attributes. The message payload must not be empty; it + # must contain either a non-empty data field, or at least one attribute. # Corresponds to the JSON property `message` # @return [Google::Apis::PubsubV1beta2::Message] attr_accessor :message diff --git a/generated/google/apis/pubsub_v1beta2/service.rb b/generated/google/apis/pubsub_v1beta2/service.rb index 3f5e06fb8..a5f81eef9 100644 --- a/generated/google/apis/pubsub_v1beta2/service.rb +++ b/generated/google/apis/pubsub_v1beta2/service.rb @@ -153,12 +153,11 @@ module Google # Creates the given topic with the given name. # @param [String] name - # The name of the topic. It must have the format "projects/`project`/topics/` - # topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a - # letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), - # underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It - # must be between 3 and 255 characters in length, and it must not start with " - # goog". + # The name of the topic. It must have the format `"projects/`project`/topics/` + # topic`"`. ``topic`` must start with a letter, and contain only letters (`[A-Za- + # z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), + # tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 + # characters in length, and it must not start with `"goog"`. # @param [Google::Apis::PubsubV1beta2::Topic] topic_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -191,7 +190,8 @@ module Google end # Adds one or more messages to the topic. Returns NOT_FOUND if the topic does - # not exist. + # not exist. The message payload must not be empty; it must contain either a non- + # empty data field, or at least one attribute. # @param [String] topic # The messages in the request will be published on this topic. # @param [Google::Apis::PubsubV1beta2::PublishRequest] publish_request_object @@ -480,12 +480,12 @@ module Google # request, the server will assign a random name for this subscription on the # same project as the topic. # @param [String] name - # The name of the subscription. It must have the format "projects/`project`/ - # subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. ` - # subscription` must start with a letter, and contain only letters ([A-Za-z]), - # numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+) - # or percent signs (%). It must be between 3 and 255 characters in length, and - # it must not start with "goog". + # The name of the subscription. It must have the format `"projects/`project`/ + # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and + # contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`% + # `). It must be between 3 and 255 characters in length, and it must not start + # with `"goog"`. # @param [Google::Apis::PubsubV1beta2::Subscription] subscription_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/replicapool_v1beta2/service.rb b/generated/google/apis/replicapool_v1beta2/service.rb index ea37095b8..05073018b 100644 --- a/generated/google/apis/replicapool_v1beta2/service.rb +++ b/generated/google/apis/replicapool_v1beta2/service.rb @@ -239,9 +239,9 @@ module Google # The Google Developers Console project name. # @param [String] zone # The name of the zone in which the instance group manager resides. - # @param [Google::Apis::ReplicapoolV1beta2::InstanceGroupManager] instance_group_manager_object # @param [Fixnum] size # Number of instances that should exist. + # @param [Google::Apis::ReplicapoolV1beta2::InstanceGroupManager] instance_group_manager_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -263,7 +263,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_instance_group_manager(project, zone, instance_group_manager_object = nil, size: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_instance_group_manager(project, zone, size, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/zones/{zone}/instanceGroupManagers' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager::Representation @@ -408,7 +408,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def resize_instance(project, zone, instance_group_manager, size: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def resize_instance(project, zone, instance_group_manager, size, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation diff --git a/generated/google/apis/replicapoolupdater_v1beta1.rb b/generated/google/apis/replicapoolupdater_v1beta1.rb index 601e4a618..ecb83eb05 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service module ReplicapoolupdaterV1beta1 VERSION = 'V1beta1' - REVISION = '20150326' + REVISION = '20150722' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/replicapoolupdater_v1beta1/classes.rb b/generated/google/apis/replicapoolupdater_v1beta1/classes.rb index 1009da504..64c50520a 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1/classes.rb @@ -31,7 +31,7 @@ module Google # @return [Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error] attr_accessor :error - # URL of the instance being updated. + # Fully-qualified URL of the instance being updated. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance @@ -468,6 +468,12 @@ module Google # @return [String] attr_accessor :kind + # Fully-qualified URL of the instance template encountered while starting the + # update. + # Corresponds to the JSON property `oldInstanceTemplate` + # @return [String] + attr_accessor :old_instance_template + # Parameters of the update process. # Corresponds to the JSON property `policy` # @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy] @@ -526,6 +532,7 @@ module Google @instance_group_manager = args[:instance_group_manager] unless args[:instance_group_manager].nil? @instance_template = args[:instance_template] unless args[:instance_template].nil? @kind = args[:kind] unless args[:kind].nil? + @old_instance_template = args[:old_instance_template] unless args[:old_instance_template].nil? @policy = args[:policy] unless args[:policy].nil? @progress = args[:progress] unless args[:progress].nil? @self_link = args[:self_link] unless args[:self_link].nil? diff --git a/generated/google/apis/replicapoolupdater_v1beta1/representations.rb b/generated/google/apis/replicapoolupdater_v1beta1/representations.rb index d5b0de79b..642e0cb5c 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1/representations.rb @@ -194,6 +194,7 @@ module Google property :instance_group_manager, as: 'instanceGroupManager' property :instance_template, as: 'instanceTemplate' property :kind, as: 'kind' + property :old_instance_template, as: 'oldInstanceTemplate' property :policy, as: 'policy', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy::Representation property :progress, as: 'progress' diff --git a/generated/google/apis/replicapoolupdater_v1beta1/service.rb b/generated/google/apis/replicapoolupdater_v1beta1/service.rb index db9d028e1..140aad72d 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1/service.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1/service.rb @@ -188,9 +188,6 @@ module Google # The name of the zone in which the update's target resides. # @param [String] filter # Optional. Filter expression for filtering listed resources. - # @param [String] instance_group_manager - # The name of the instance group manager. Use this parameter to return only - # updates to instances that are part of a specific instance group. # @param [Fixnum] max_results # Optional. Maximum count of results to be returned. Maximum value is 500 and # default value is 500. @@ -218,7 +215,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_rolling_updates(project, zone, filter: nil, instance_group_manager: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_rolling_updates(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}/rollingUpdates' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList::Representation @@ -226,7 +223,6 @@ module Google command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.query['filter'] = filter unless filter.nil? - command.query['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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? diff --git a/generated/google/apis/reseller_v1/service.rb b/generated/google/apis/reseller_v1/service.rb index b1d77af3a..7666901c1 100644 --- a/generated/google/apis/reseller_v1/service.rb +++ b/generated/google/apis/reseller_v1/service.rb @@ -400,7 +400,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_subscription(customer_id, subscription_id, deletion_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_subscription(customer_id, subscription_id, deletion_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'customers/{customerId}/subscriptions/{subscriptionId}' command = make_simple_command(:delete, path, options) command.params['customerId'] = customer_id unless customer_id.nil? diff --git a/generated/google/apis/site_verification_v1/service.rb b/generated/google/apis/site_verification_v1/service.rb index d3c55f759..ef2011711 100644 --- a/generated/google/apis/site_verification_v1/service.rb +++ b/generated/google/apis/site_verification_v1/service.rb @@ -159,9 +159,9 @@ module Google end # Attempt verification of a website or domain. - # @param [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] site_verification_web_resource_resource_object # @param [String] verification_method # The method to use for verifying a site or domain. + # @param [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] site_verification_web_resource_resource_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -183,7 +183,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_web_resource(site_verification_web_resource_resource_object = nil, verification_method: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_web_resource(verification_method, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'webResource' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation diff --git a/generated/google/apis/sqladmin_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb index ac698dc23..32296ba3e 100644 --- a/generated/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -1124,7 +1124,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'projects/{project}/operations' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation @@ -1377,7 +1377,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_user(project, instance, host: nil, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_user(project, instance, host, name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'projects/{project}/instances/{instance}/users' command = make_simple_command(:delete, path, options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation @@ -1478,11 +1478,11 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. - # @param [Google::Apis::SqladminV1beta4::User] user_object # @param [String] host # Host of the user in the instance. # @param [String] name # Name of the user in the instance. + # @param [Google::Apis::SqladminV1beta4::User] user_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1504,7 +1504,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_user(project, instance, user_object = nil, host: nil, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_user(project, instance, host, name, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'projects/{project}/instances/{instance}/users' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::SqladminV1beta4::User::Representation diff --git a/generated/google/apis/storage_v1/service.rb b/generated/google/apis/storage_v1/service.rb index f78862423..a8cc9656b 100644 --- a/generated/google/apis/storage_v1/service.rb +++ b/generated/google/apis/storage_v1/service.rb @@ -382,13 +382,13 @@ module Google end # Creates a new bucket. + # @param [String] project + # A valid API project identifier. # @param [Google::Apis::StorageV1::Bucket] bucket_object # @param [String] predefined_acl # Apply a predefined set of access controls to this bucket. # @param [String] predefined_default_object_acl # Apply a predefined set of default object access controls to this bucket. - # @param [String] project - # A valid API project identifier. # @param [String] projection # Set of properties to return. Defaults to noAcl, unless the bucket resource # specifies acl or defaultObjectAcl properties, when it defaults to full. @@ -413,7 +413,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_bucket(bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, project: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_bucket(project, bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'b' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::StorageV1::Bucket::Representation @@ -431,6 +431,8 @@ module Google end # Retrieves a list of buckets for a given project. + # @param [String] project + # A valid API project identifier. # @param [Fixnum] max_results # Maximum number of buckets to return. # @param [String] page_token @@ -438,8 +440,6 @@ module Google # results to view. # @param [String] prefix # Filter results to buckets whose names begin with this prefix. - # @param [String] project - # A valid API project identifier. # @param [String] projection # Set of properties to return. Defaults to noAcl. # @param [String] fields @@ -463,7 +463,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_buckets(max_results: nil, page_token: nil, prefix: nil, project: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'b' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::StorageV1::Buckets::Representation diff --git a/generated/google/apis/taskqueue_v1beta2/service.rb b/generated/google/apis/taskqueue_v1beta2/service.rb index 33af55ceb..295777db9 100644 --- a/generated/google/apis/taskqueue_v1beta2/service.rb +++ b/generated/google/apis/taskqueue_v1beta2/service.rb @@ -223,12 +223,12 @@ module Google # The project under which the queue lies. # @param [String] taskqueue # The taskqueue to lease a task from. - # @param [Boolean] group_by_tag - # When true, all returned tasks will have the same tag - # @param [Fixnum] lease_secs - # The lease in seconds. # @param [Fixnum] num_tasks # The number of tasks to lease. + # @param [Fixnum] lease_secs + # The lease in seconds. + # @param [Boolean] group_by_tag + # When true, all returned tasks will have the same tag # @param [String] tag # The tag allowed for tasks in the response. Must only be specified if # group_by_tag is true. If group_by_tag is true and tag is not specified the tag @@ -254,7 +254,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def lease_task(project, taskqueue, group_by_tag: nil, lease_secs: nil, num_tasks: nil, tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def lease_task(project, taskqueue, num_tasks, lease_secs, group_by_tag: nil, tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/taskqueues/{taskqueue}/tasks/lease' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::TaskqueueV1beta2::Tasks::Representation @@ -316,9 +316,9 @@ module Google # The project under which the queue lies. # @param [String] taskqueue # @param [String] task - # @param [Google::Apis::TaskqueueV1beta2::Task] task_object # @param [Fixnum] new_lease_seconds # The new lease in seconds. + # @param [Google::Apis::TaskqueueV1beta2::Task] task_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -340,7 +340,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_task(project, taskqueue, task, task_object = nil, new_lease_seconds: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_task(project, taskqueue, task, new_lease_seconds, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/taskqueues/{taskqueue}/tasks/{task}' command = make_simple_command(:patch, path, options) command.request_representation = Google::Apis::TaskqueueV1beta2::Task::Representation @@ -362,9 +362,9 @@ module Google # The project under which the queue lies. # @param [String] taskqueue # @param [String] task - # @param [Google::Apis::TaskqueueV1beta2::Task] task_object # @param [Fixnum] new_lease_seconds # The new lease in seconds. + # @param [Google::Apis::TaskqueueV1beta2::Task] task_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -386,7 +386,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_task(project, taskqueue, task, task_object = nil, new_lease_seconds: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_task(project, taskqueue, task, new_lease_seconds, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = '{project}/taskqueues/{taskqueue}/tasks/{task}' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::TaskqueueV1beta2::Task::Representation diff --git a/generated/google/apis/translate_v2/service.rb b/generated/google/apis/translate_v2/service.rb index c411fc7c8..283a09213 100644 --- a/generated/google/apis/translate_v2/service.rb +++ b/generated/google/apis/translate_v2/service.rb @@ -76,7 +76,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_detections(q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_detections(q, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'v2/detect' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::TranslateV2::ListDetectionsResponse::Representation @@ -125,16 +125,16 @@ module Google end # Returns text translations from one language to another. + # @param [Array, String] q + # The text to translate + # @param [String] target + # The target language into which the text should be translated # @param [Array, String] cid # The customization id for translate # @param [String] format # The format of the text - # @param [Array, String] q - # The text to translate # @param [String] source # The source language of the text - # @param [String] target - # The target language into which the text should be translated # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -156,7 +156,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_translations(cid: nil, format: nil, q: nil, source: nil, target: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_translations(q, target, cid: nil, format: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'v2' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::TranslateV2::ListTranslationsResponse::Representation diff --git a/generated/google/apis/urlshortener_v1/service.rb b/generated/google/apis/urlshortener_v1/service.rb index 68b593069..fe499a9d0 100644 --- a/generated/google/apis/urlshortener_v1/service.rb +++ b/generated/google/apis/urlshortener_v1/service.rb @@ -53,10 +53,10 @@ module Google end # Expands a short URL or gets creation time and analytics. - # @param [String] projection - # Additional information to return. # @param [String] short_url # The short URL, including the protocol. + # @param [String] projection + # Additional information to return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -78,7 +78,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_url(projection: nil, short_url: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_url(short_url, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'url' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation diff --git a/generated/google/apis/webmasters_v3.rb b/generated/google/apis/webmasters_v3.rb index 64ebfc1cf..19571bc9e 100644 --- a/generated/google/apis/webmasters_v3.rb +++ b/generated/google/apis/webmasters_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/webmaster-tools/ module WebmastersV3 VERSION = 'V3' - REVISION = '20150624' + REVISION = '20150715' # View and modify Webmaster Tools data for your verified sites AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters' diff --git a/generated/google/apis/webmasters_v3/classes.rb b/generated/google/apis/webmasters_v3/classes.rb index 900e10cc1..3b0f8c8fa 100644 --- a/generated/google/apis/webmasters_v3/classes.rb +++ b/generated/google/apis/webmasters_v3/classes.rb @@ -125,12 +125,12 @@ module Google class SearchAnalyticsQueryRequest include Google::Apis::Core::Hashable - # [Optional; Default is AUTO] How data is aggregated. If aggregated by property, - # all data for the same property is aggregated; if aggregated by page, all data - # is aggregated by canonical URI. If you filter or group by page, choose AUTO; - # otherwise you can aggregate either by property or by page, depending on how - # you want your data calculated; see the help documentation to learn how data - # is calculated differently by site versus by page. + # [Optional; Default is "auto"] How data is aggregated. If aggregated by + # property, all data for the same property is aggregated; if aggregated by page, + # all data is aggregated by canonical URI. If you filter or group by page, + # choose AUTO; otherwise you can aggregate either by property or by page, + # depending on how you want your data calculated; see the help documentation to + # learn how data is calculated differently by site versus by page. # Note: If you group or filter by page, you cannot aggregate by property. # If you specify any value other than AUTO, the aggregation type in the result # will match the requested type, or if you request an invalid type, you will get @@ -141,9 +141,9 @@ module Google attr_accessor :aggregation_type # [Optional] Zero or more filters to apply to the dimension grouping values; for - # example, 'Country CONTAINS "Guinea"' to see only data where the country - # contains the substring "Guinea". You can filter by a dimension without - # grouping by it. + # example, 'query contains "buy"' to see only data where the query string + # contains the substring "buy" (not case-sensitive). You can filter by a + # dimension without grouping by it. # Corresponds to the JSON property `dimensionFilterGroups` # @return [Array] attr_accessor :dimension_filter_groups @@ -164,12 +164,12 @@ module Google attr_accessor :end_date # [Optional; Default is 1000] The maximum number of rows to return. Must be a - # number from 1 to 1,000 (inclusive). + # number from 1 to 5,000 (inclusive). # Corresponds to the JSON property `rowLimit` # @return [Fixnum] attr_accessor :row_limit - # [Optional; Default is WEB] The search type to filter for. + # [Optional; Default is "web"] The search type to filter for. # Corresponds to the JSON property `searchType` # @return [String] attr_accessor :search_type diff --git a/generated/google/apis/webmasters_v3/service.rb b/generated/google/apis/webmasters_v3/service.rb index 924f8101f..de89c8a7d 100644 --- a/generated/google/apis/webmasters_v3/service.rb +++ b/generated/google/apis/webmasters_v3/service.rb @@ -471,7 +471,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_errors_sample(site_url, url, category: nil, platform: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_errors_sample(site_url, url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::WebmastersV3::UrlCrawlErrorsSample::Representation @@ -514,7 +514,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_errors_samples(site_url, category: nil, platform: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_errors_samples(site_url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'sites/{siteUrl}/urlCrawlErrorsSamples' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::WebmastersV3::ListUrlCrawlErrorsSamplesResponse::Representation @@ -561,7 +561,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def mark_as_fixed(site_url, url, category: nil, platform: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def mark_as_fixed(site_url, url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}' command = make_simple_command(:delete, path, options) command.params['siteUrl'] = site_url unless site_url.nil? diff --git a/generated/google/apis/youtube_analytics_v1/service.rb b/generated/google/apis/youtube_analytics_v1/service.rb index 7455e5d4f..8323513a6 100644 --- a/generated/google/apis/youtube_analytics_v1/service.rb +++ b/generated/google/apis/youtube_analytics_v1/service.rb @@ -77,7 +77,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_batch_report_definitions(on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_batch_report_definitions(on_behalf_of_content_owner, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'batchReportDefinitions' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::BatchReportDefinitionList::Representation @@ -117,7 +117,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_batch_reports(batch_report_definition_id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_batch_reports(batch_report_definition_id, on_behalf_of_content_owner, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'batchReports' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::BatchReportList::Representation @@ -165,7 +165,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_group_item(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_group_item(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'groupItems' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -258,7 +258,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_group_items(group_id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_group_items(group_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'groupItems' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::ListGroupItemResponse::Representation @@ -306,7 +306,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_group(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_group(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'groups' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -467,6 +467,25 @@ module Google end # Retrieve your YouTube Analytics reports. + # @param [String] ids + # Identifies the YouTube channel or content owner for which you are retrieving + # YouTube Analytics data. + # - To request data for a YouTube user, set the ids parameter value to channel== + # CHANNEL_ID, where CHANNEL_ID specifies the unique YouTube channel ID. + # - To request data for a YouTube CMS content owner, set the ids parameter value + # to contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the content + # owner. + # @param [String] start_date + # The start date for fetching YouTube Analytics data. The value should be in + # YYYY-MM-DD format. + # @param [String] end_date + # The end date for fetching YouTube Analytics data. The value should be in YYYY- + # MM-DD format. + # @param [String] metrics + # A comma-separated list of YouTube Analytics metrics, such as views or likes, + # dislikes. See the Available Reports document for a list of the reports that + # you can retrieve and the metrics available in each report, and see the Metrics + # document for definitions of those metrics. # @param [String] currency # The currency to which financial metrics should be converted. The default is US # Dollar (USD). If the result contains no financial metrics, this flag will be @@ -476,9 +495,6 @@ module Google # ageGroup,gender. See the Available Reports document for a list of the reports # that you can retrieve and the dimensions used for those reports. Also see the # Dimensions document for definitions of those dimensions. - # @param [String] end_date - # The end date for fetching YouTube Analytics data. The value should be in YYYY- - # MM-DD format. # @param [String] filters # A list of filters that should be applied when retrieving YouTube Analytics # data. The Available Reports document identifies the dimensions that can be @@ -487,28 +503,12 @@ module Google # semicolon (;), and the returned result table will satisfy both filters. For # example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts # the result set to include data for the given video in Italy. - # @param [String] ids - # Identifies the YouTube channel or content owner for which you are retrieving - # YouTube Analytics data. - # - To request data for a YouTube user, set the ids parameter value to channel== - # CHANNEL_ID, where CHANNEL_ID specifies the unique YouTube channel ID. - # - To request data for a YouTube CMS content owner, set the ids parameter value - # to contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the content - # owner. # @param [Fixnum] max_results # The maximum number of rows to include in the response. - # @param [String] metrics - # A comma-separated list of YouTube Analytics metrics, such as views or likes, - # dislikes. See the Available Reports document for a list of the reports that - # you can retrieve and the metrics available in each report, and see the Metrics - # document for definitions of those metrics. # @param [String] sort # A comma-separated list of dimensions or metrics that determine the sort order # for YouTube Analytics data. By default the sort order is ascending. The '-' # prefix causes descending sort order. - # @param [String] start_date - # The start date for fetching YouTube Analytics data. The value should be in - # YYYY-MM-DD format. # @param [Fixnum] start_index # An index of the first entity to retrieve. Use this parameter as a pagination # mechanism along with the max-results parameter (one-based, inclusive). @@ -533,7 +533,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def query_report(currency: nil, dimensions: nil, end_date: nil, filters: nil, ids: nil, max_results: nil, metrics: nil, sort: nil, start_date: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def query_report(ids, start_date, end_date, metrics, currency: nil, dimensions: nil, filters: nil, max_results: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'reports' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeAnalyticsV1::ResultTable::Representation diff --git a/generated/google/apis/youtube_v3/service.rb b/generated/google/apis/youtube_v3/service.rb index c010ef0bf..17c69339c 100644 --- a/generated/google/apis/youtube_v3/service.rb +++ b/generated/google/apis/youtube_v3/service.rb @@ -59,11 +59,11 @@ module Google # other API methods to generate those activity resources. For example, you would # use the API's videos.rate() method to rate a video and the playlistItems. # insert() method to mark a video as a favorite. - # @param [Google::Apis::YoutubeV3::Activity] activity_object # @param [String] part # The part parameter serves two purposes in this operation. It identifies the # properties that the write operation will set as well as the properties that # the API response will include. + # @param [Google::Apis::YoutubeV3::Activity] activity_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -85,7 +85,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_activity(activity_object = nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_activity(part, activity_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'activities' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::Activity::Representation @@ -103,6 +103,15 @@ module Google # example, you can retrieve events associated with a particular channel, events # associated with the user's subscriptions and Google+ friends, or the YouTube # home page feed, which is customized for each user. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more activity + # resource properties that the API response will include. + # If the parameter identifies a property that contains child properties, the + # child properties will be included in the response. For example, in an activity + # resource, the snippet property contains other properties that identify the + # type of activity, a display title for the activity, and so forth. If you set + # part=snippet, the API response will also contain all of those nested + # properties. # @param [String] channel_id # The channelId parameter specifies a unique YouTube channel ID. The API will # then return a list of that channel's activities. @@ -119,15 +128,6 @@ module Google # The pageToken parameter identifies a specific page in the result set that # should be returned. In an API response, the nextPageToken and prevPageToken # properties identify other pages that could be retrieved. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more activity - # resource properties that the API response will include. - # If the parameter identifies a property that contains child properties, the - # child properties will be included in the response. For example, in an activity - # resource, the snippet property contains other properties that identify the - # type of activity, a display title for the activity, and so forth. If you set - # part=snippet, the API response will also contain all of those nested - # properties. # @param [DateTime] published_after # The publishedAfter parameter specifies the earliest date and time that an # activity could have occurred for that activity to be included in the API @@ -166,7 +166,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_activities(channel_id: nil, home: nil, max_results: nil, mine: nil, page_token: nil, part: nil, published_after: nil, published_before: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_activities(part, channel_id: nil, home: nil, max_results: nil, mine: nil, page_token: nil, published_after: nil, published_before: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'activities' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListActivitiesResponse::Representation @@ -187,12 +187,12 @@ module Google end # Deletes a specified caption track. - # @param [String] debug_project_id_override - # The debugProjectIdOverride parameter should be used for mimicking a request - # for a certain project ID # @param [String] id # The id parameter identifies the caption track that is being deleted. The value # is a caption track ID as identified by the id property in a caption resource. + # @param [String] debug_project_id_override + # The debugProjectIdOverride parameter should be used for mimicking a request + # for a certain project ID # @param [String] on_behalf_of # ID of the Google+ Page for the channel that the request is be on behalf of # @param [String] on_behalf_of_content_owner @@ -226,7 +226,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_caption(debug_project_id_override: nil, id: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_caption(id, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'captions' command = make_simple_command(:delete, path, options) command.query['debugProjectIdOverride'] = debug_project_id_override unless debug_project_id_override.nil? @@ -315,6 +315,9 @@ module Google end # Uploads a caption track. + # @param [String] part + # The part parameter specifies the caption resource parts that the API response + # will include. Set the parameter value to snippet. # @param [Google::Apis::YoutubeV3::Caption] caption_object # @param [String] debug_project_id_override # The debugProjectIdOverride parameter should be used for mimicking a request @@ -331,9 +334,6 @@ module Google # to all their video and channel data, without having to provide authentication # credentials for each individual channel. The actual CMS account that the user # authenticates with must be linked to the specified YouTube content owner. - # @param [String] part - # The part parameter specifies the caption resource parts that the API response - # will include. Set the parameter value to snippet. # @param [Boolean] sync # The sync parameter indicates whether YouTube should automatically synchronize # the caption file with the audio track of the video. If you set the value to @@ -367,7 +367,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_caption(caption_object = nil, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, part: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def insert_caption(part, caption_object = nil, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'captions' if upload_source.nil? command = make_simple_command(:post, path, options) @@ -394,6 +394,13 @@ module Google # Returns a list of caption tracks that are associated with a specified video. # Note that the API response does not contain the actual captions and that the # captions.download method provides the ability to retrieve a caption track. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more caption + # resource parts that the API response will include. The part names that you can + # include in the parameter value are id and snippet. + # @param [String] video_id + # The videoId parameter specifies the YouTube video ID of the video for which + # the API should return caption tracks. # @param [String] debug_project_id_override # The debugProjectIdOverride parameter should be used for mimicking a request # for a certain project ID. @@ -413,13 +420,6 @@ module Google # to all their video and channel data, without having to provide authentication # credentials for each individual channel. The actual CMS account that the user # authenticates with must be linked to the specified YouTube content owner. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more caption - # resource parts that the API response will include. The part names that you can - # include in the parameter value are id and snippet. - # @param [String] video_id - # The videoId parameter specifies the YouTube video ID of the video for which - # the API should return caption tracks. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -441,7 +441,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_captions(debug_project_id_override: nil, id: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, part: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_captions(part, video_id, debug_project_id_override: nil, id: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'captions' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListCaptionsResponse::Representation @@ -460,6 +460,11 @@ module Google # Updates a caption track. When updating a caption track, you can change the # track's draft status, upload a new caption file for the track, or both. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. Set the property value to snippet if you are + # updating the track's draft status. Otherwise, set the property value to id. # @param [Google::Apis::YoutubeV3::Caption] caption_object # @param [String] debug_project_id_override # The debugProjectIdOverride parameter should be used for mimicking a request @@ -476,11 +481,6 @@ module Google # to all their video and channel data, without having to provide authentication # credentials for each individual channel. The actual CMS account that the user # authenticates with must be linked to the specified YouTube content owner. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. Set the property value to snippet if you are - # updating the track's draft status. Otherwise, set the property value to id. # @param [Boolean] sync # Note: The API server only processes the parameter value if the request # contains an updated caption file. @@ -513,7 +513,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_caption(caption_object = nil, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, part: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def update_caption(part, caption_object = nil, debug_project_id_override: nil, on_behalf_of: nil, on_behalf_of_content_owner: nil, sync: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'captions' if upload_source.nil? command = make_simple_command(:put, path, options) @@ -639,7 +639,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_channel_section(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_channel_section(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'channelSections' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -651,6 +651,12 @@ module Google end # Adds a channelSection for the authenticated user's channel. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # The part names that you can include in the parameter value are snippet and + # contentDetails. # @param [Google::Apis::YoutubeV3::ChannelSection] channel_section_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -678,12 +684,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # The part names that you can include in the parameter value are snippet and - # contentDetails. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -705,7 +705,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_channel_section(channel_section_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_channel_section(part, channel_section_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'channelSections' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::ChannelSection::Representation @@ -722,6 +722,16 @@ module Google end # Returns channelSection resources that match the API request criteria. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # channelSection resource properties that the API response will include. The + # part names that you can include in the parameter value are id, snippet, and + # contentDetails. + # If the parameter identifies a property that contains child properties, the + # child properties will be included in the response. For example, in a + # channelSection resource, the snippet property contains other properties, such + # as a display title for the channelSection. If you set part=snippet, the API + # response will also contain all of those nested properties. # @param [String] channel_id # The channelId parameter specifies a YouTube channel ID. The API will only # return that channel's channelSections. @@ -751,16 +761,6 @@ module Google # to all their video and channel data, without having to provide authentication # credentials for each individual channel. The CMS account that the user # authenticates with must be linked to the specified YouTube content owner. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # channelSection resource properties that the API response will include. The - # part names that you can include in the parameter value are id, snippet, and - # contentDetails. - # If the parameter identifies a property that contains child properties, the - # child properties will be included in the response. For example, in a - # channelSection resource, the snippet property contains other properties, such - # as a display title for the channelSection. If you set part=snippet, the API - # response will also contain all of those nested properties. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -782,7 +782,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_channel_sections(channel_id: nil, hl: nil, id: nil, mine: nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_channel_sections(part, channel_id: nil, hl: nil, id: nil, mine: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'channelSections' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListChannelSectionsResponse::Representation @@ -800,6 +800,12 @@ module Google end # Update a channelSection. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # The part names that you can include in the parameter value are snippet and + # contentDetails. # @param [Google::Apis::YoutubeV3::ChannelSection] channel_section_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -811,12 +817,6 @@ module Google # to all their video and channel data, without having to provide authentication # credentials for each individual channel. The CMS account that the user # authenticates with must be linked to the specified YouTube content owner. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # The part names that you can include in the parameter value are snippet and - # contentDetails. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -838,7 +838,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_channel_section(channel_section_object = nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_channel_section(part, channel_section_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'channelSections' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::ChannelSection::Representation @@ -855,6 +855,14 @@ module Google # Returns a collection of zero or more channel resources that match the request # criteria. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more channel + # resource properties that the API response will include. + # If the parameter identifies a property that contains child properties, the + # child properties will be included in the response. For example, in a channel + # resource, the contentDetails property contains other properties, such as the + # uploads properties. As such, if you set part=contentDetails, the API response + # will also contain all of those nested properties. # @param [String] category_id # The categoryId parameter specifies a YouTube guide category, thereby # requesting YouTube channels associated with that category. @@ -897,14 +905,6 @@ module Google # The pageToken parameter identifies a specific page in the result set that # should be returned. In an API response, the nextPageToken and prevPageToken # properties identify other pages that could be retrieved. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more channel - # resource properties that the API response will include. - # If the parameter identifies a property that contains child properties, the - # child properties will be included in the response. For example, in a channel - # resource, the contentDetails property contains other properties, such as the - # uploads properties. As such, if you set part=contentDetails, the API response - # will also contain all of those nested properties. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -926,7 +926,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_channels(category_id: nil, for_username: nil, hl: nil, id: nil, managed_by_me: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, page_token: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_channels(part, category_id: nil, for_username: nil, hl: nil, id: nil, managed_by_me: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'channels' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListChannelsResponse::Representation @@ -951,6 +951,15 @@ module Google # Updates a channel's metadata. Note that this method currently only supports # updates to the channel resource's brandingSettings and invideoPromotion # objects and their child properties. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # The API currently only allows the parameter value to be set to either + # brandingSettings or invideoPromotion. (You cannot update both of those parts + # with a single request.) + # Note that this method overrides the existing values for all of the mutable + # properties that are contained in any parts that the parameter value specifies. # @param [Google::Apis::YoutubeV3::Channel] channel_object # @param [String] on_behalf_of_content_owner # The onBehalfOfContentOwner parameter indicates that the authenticated user is @@ -961,15 +970,6 @@ module Google # authentication credentials for each individual channel. The actual CMS account # that the user authenticates with needs to be linked to the specified YouTube # content owner. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # The API currently only allows the parameter value to be set to either - # brandingSettings or invideoPromotion. (You cannot update both of those parts - # with a single request.) - # Note that this method overrides the existing values for all of the mutable - # properties that are contained in any parts that the parameter value specifies. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -991,7 +991,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_channel(channel_object = nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_channel(part, channel_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'channels' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::Channel::Representation @@ -1008,11 +1008,11 @@ module Google # Creates a new top-level comment. To add a reply to an existing comment, use # the comments.insert method instead. - # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object # @param [String] part # The part parameter identifies the properties that the API response will # include. Set the parameter value to snippet. The snippet part has a quota cost # of 2 units. + # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object # @param [Boolean] share_on_google_plus # The shareOnGooglePlus parameter indicates whether the top-level comment and # any replies that are made to that comment should also be posted to the author' @@ -1038,7 +1038,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_comment_thread(comment_thread_object = nil, part: nil, share_on_google_plus: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_comment_thread(part, comment_thread_object = nil, share_on_google_plus: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'commentThreads' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::CommentThread::Representation @@ -1054,6 +1054,9 @@ module Google end # Returns a list of comment threads that match the API request parameters. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # commentThread resource properties that the API response will include. # @param [String] all_threads_related_to_channel_id # The allThreadsRelatedToChannelId parameter instructs the API to return all # comment threads associated with the specified channel. The response can @@ -1087,9 +1090,6 @@ module Google # the next page of the result that can be retrieved. # Note: This parameter is not supported for use in conjunction with the id # parameter. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # commentThread resource properties that the API response will include. # @param [String] search_terms # The searchTerms parameter instructs the API to limit the API response to only # contain comments that contain the specified search terms. @@ -1122,7 +1122,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_comment_threads(all_threads_related_to_channel_id: nil, channel_id: nil, id: nil, max_results: nil, moderation_status: nil, order: nil, page_token: nil, part: nil, search_terms: nil, text_format: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_comment_threads(part, all_threads_related_to_channel_id: nil, channel_id: nil, id: nil, max_results: nil, moderation_status: nil, order: nil, page_token: nil, search_terms: nil, text_format: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'commentThreads' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListCommentThreadsResponse::Representation @@ -1145,12 +1145,12 @@ module Google end # Modifies the top-level comment in a comment thread. - # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object # @param [String] part # The part parameter specifies a comma-separated list of commentThread resource # properties that the API response will include. You must at least include the # snippet part in the parameter value since that part contains all of the # properties that the API request can update. + # @param [Google::Apis::YoutubeV3::CommentThread] comment_thread_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1172,7 +1172,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_comment_thread(comment_thread_object = nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_comment_thread(part, comment_thread_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'commentThreads' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::CommentThread::Representation @@ -1211,7 +1211,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_comment(id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_comment(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'comments' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -1223,11 +1223,11 @@ module Google # Creates a reply to an existing comment. Note: To create a top-level comment, # use the commentThreads.insert method. - # @param [Google::Apis::YoutubeV3::Comment] comment_object # @param [String] part # The part parameter identifies the properties that the API response will # include. Set the parameter value to snippet. The snippet part has a quota cost # of 2 units. + # @param [Google::Apis::YoutubeV3::Comment] comment_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1249,7 +1249,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_comment(comment_object = nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_comment(part, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'comments' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::Comment::Representation @@ -1264,6 +1264,9 @@ module Google end # Returns a list of comments that match the API request parameters. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more comment + # resource properties that the API response will include. # @param [String] id # The id parameter specifies a comma-separated list of comment IDs for the # resources that are being retrieved. In a comment resource, the id property @@ -1284,9 +1287,6 @@ module Google # should be retrieved. # Note: YouTube currently supports replies only for top-level comments. However, # replies to replies may be supported in the future. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more comment - # resource properties that the API response will include. # @param [String] text_format # This parameter indicates whether the API should return comments formatted as # HTML or as plain text. @@ -1311,7 +1311,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_comments(id: nil, max_results: nil, page_token: nil, parent_id: nil, part: nil, text_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_comments(part, id: nil, max_results: nil, page_token: nil, parent_id: nil, text_format: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'comments' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListCommentsResponse::Representation @@ -1354,7 +1354,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def mark_as_spam_comment(id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def mark_as_spam_comment(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'comments/markAsSpam' command = make_simple_command(:post, path, options) command.query['id'] = id unless id.nil? @@ -1366,17 +1366,17 @@ module Google # Sets the moderation status of one or more comments. The API request must be # authorized by the owner of the channel or video associated with the comments. + # @param [String] id + # The id parameter specifies a comma-separated list of IDs that identify the + # comments for which you are updating the moderation status. + # @param [String] moderation_status + # Identifies the new moderation status of the specified comments. # @param [Boolean] ban_author # The banAuthor parameter lets you indicate that you want to automatically # reject any additional comments written by the comment's author. Set the # parameter value to true to ban the author. # Note: This parameter is only valid if the moderationStatus parameter is also # set to rejected. - # @param [String] id - # The id parameter specifies a comma-separated list of IDs that identify the - # comments for which you are updating the moderation status. - # @param [String] moderation_status - # Identifies the new moderation status of the specified comments. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1398,7 +1398,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_comment_moderation_status(ban_author: nil, id: nil, moderation_status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_comment_moderation_status(id, moderation_status, ban_author: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'comments/setModerationStatus' command = make_simple_command(:post, path, options) command.query['banAuthor'] = ban_author unless ban_author.nil? @@ -1411,11 +1411,11 @@ module Google end # Modifies a comment. - # @param [Google::Apis::YoutubeV3::Comment] comment_object # @param [String] part # The part parameter identifies the properties that the API response will # include. You must at least include the snippet part in the parameter value # since that part contains all of the properties that the API request can update. + # @param [Google::Apis::YoutubeV3::Comment] comment_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1437,7 +1437,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_comment(comment_object = nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_comment(part, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'comments' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::Comment::Representation @@ -1452,6 +1452,9 @@ module Google end # Returns a list of categories that can be associated with YouTube channels. + # @param [String] part + # The part parameter specifies the guideCategory resource properties that the + # API response will include. Set the parameter value to snippet. # @param [String] hl # The hl parameter specifies the language that will be used for text values in # the API response. @@ -1460,9 +1463,6 @@ module Google # category ID(s) for the resource(s) that are being retrieved. In a # guideCategory resource, the id property specifies the YouTube channel category # ID. - # @param [String] part - # The part parameter specifies the guideCategory resource properties that the - # API response will include. Set the parameter value to snippet. # @param [String] region_code # The regionCode parameter instructs the API to return the list of guide # categories available in the specified country. The parameter value is an ISO @@ -1488,7 +1488,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_guide_categories(hl: nil, id: nil, part: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_guide_categories(part, hl: nil, id: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'guideCategories' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListGuideCategoriesResponse::Representation @@ -1504,12 +1504,12 @@ module Google end # Returns a list of application languages that the YouTube website supports. - # @param [String] hl - # The hl parameter specifies the language that should be used for text values in - # the API response. # @param [String] part # The part parameter specifies the i18nLanguage resource properties that the API # response will include. Set the parameter value to snippet. + # @param [String] hl + # The hl parameter specifies the language that should be used for text values in + # the API response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1531,7 +1531,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_i18n_languages(hl: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_i18n_languages(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'i18nLanguages' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListI18nLanguagesResponse::Representation @@ -1545,12 +1545,12 @@ module Google end # Returns a list of content regions that the YouTube website supports. - # @param [String] hl - # The hl parameter specifies the language that should be used for text values in - # the API response. # @param [String] part # The part parameter specifies the i18nRegion resource properties that the API # response will include. Set the parameter value to snippet. + # @param [String] hl + # The hl parameter specifies the language that should be used for text values in + # the API response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1572,7 +1572,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_i18n_regions(hl: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_i18n_regions(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'i18nRegions' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListI18nRegionsResponse::Representation @@ -1591,6 +1591,11 @@ module Google # @param [String] id # The id parameter specifies the unique ID of the broadcast that is being bound # to a video stream. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # liveBroadcast resource properties that the API response will include. The part + # names that you can include in the parameter value are id, snippet, + # contentDetails, and status. # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. # The onBehalfOfContentOwner parameter indicates that the request's @@ -1617,11 +1622,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # liveBroadcast resource properties that the API response will include. The part - # names that you can include in the parameter value are id, snippet, - # contentDetails, and status. # @param [String] stream_id # The streamId parameter specifies the unique ID of the video stream that is # being bound to a broadcast. If this parameter is omitted, the API will remove @@ -1647,7 +1647,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def bind_live_broadcast(id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def bind_live_broadcast(id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveBroadcasts/bind' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation @@ -1669,6 +1669,11 @@ module Google # @param [String] id # The id parameter specifies the unique ID of the broadcast that is being bound # to a video stream. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # liveBroadcast resource properties that the API response will include. The part + # names that you can include in the parameter value are id, snippet, + # contentDetails, and status. # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. # The onBehalfOfContentOwner parameter indicates that the request's @@ -1695,11 +1700,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # liveBroadcast resource properties that the API response will include. The part - # names that you can include in the parameter value are id, snippet, - # contentDetails, and status. # @param [String] stream_id # The streamId parameter specifies the unique ID of the video stream that is # being bound to a broadcast. If this parameter is omitted, the API will remove @@ -1725,7 +1725,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def bind_direct_live_broadcast(id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def bind_direct_live_broadcast(id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stream_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveBroadcasts/bind/direct' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation @@ -1743,12 +1743,17 @@ module Google # Controls the settings for a slate that can be displayed in the broadcast # stream. - # @param [Boolean] display_slate - # The displaySlate parameter specifies whether the slate is being enabled or - # disabled. # @param [String] id # The id parameter specifies the YouTube live broadcast ID that uniquely # identifies the broadcast in which the slate is being updated. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # liveBroadcast resource properties that the API response will include. The part + # names that you can include in the parameter value are id, snippet, + # contentDetails, and status. + # @param [Boolean] display_slate + # The displaySlate parameter specifies whether the slate is being enabled or + # disabled. # @param [String] offset_time_ms # The offsetTimeMs parameter specifies a positive time offset when the specified # slate change will occur. The value is measured in milliseconds from the @@ -1786,11 +1791,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # liveBroadcast resource properties that the API response will include. The part - # names that you can include in the parameter value are id, snippet, - # contentDetails, and status. # @param [DateTime] walltime # The walltime parameter specifies the wall clock time at which the specified # slate change will occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm: @@ -1816,7 +1816,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def control_live_broadcast(display_slate: nil, id: nil, offset_time_ms: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, walltime: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def control_live_broadcast(id, part, display_slate: nil, offset_time_ms: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, walltime: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveBroadcasts/control' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation @@ -1885,7 +1885,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_live_broadcast(id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_live_broadcast(id, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveBroadcasts' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -1898,6 +1898,12 @@ module Google end # Creates a broadcast. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # The part properties that you can include in the parameter value are id, + # snippet, contentDetails, and status. # @param [Google::Apis::YoutubeV3::LiveBroadcast] live_broadcast_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -1925,12 +1931,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # The part properties that you can include in the parameter value are id, - # snippet, contentDetails, and status. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1952,7 +1952,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_live_broadcast(live_broadcast_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_live_broadcast(part, live_broadcast_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveBroadcasts' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation @@ -1969,6 +1969,11 @@ module Google end # Returns a list of YouTube broadcasts that match the API request parameters. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # liveBroadcast resource properties that the API response will include. The part + # names that you can include in the parameter value are id, snippet, + # contentDetails, and status. # @param [String] broadcast_status # The broadcastStatus parameter filters the API response to only include # broadcasts with the specified status. @@ -2013,11 +2018,6 @@ module Google # The pageToken parameter identifies a specific page in the result set that # should be returned. In an API response, the nextPageToken and prevPageToken # properties identify other pages that could be retrieved. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # liveBroadcast resource properties that the API response will include. The part - # names that you can include in the parameter value are id, snippet, - # contentDetails, and status. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2039,7 +2039,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_live_broadcasts(broadcast_status: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_live_broadcasts(part, broadcast_status: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveBroadcasts' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListLiveBroadcastsResponse::Representation @@ -2072,6 +2072,11 @@ module Google # @param [String] id # The id parameter specifies the unique ID of the broadcast that is # transitioning to another status. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # liveBroadcast resource properties that the API response will include. The part + # names that you can include in the parameter value are id, snippet, + # contentDetails, and status. # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. # The onBehalfOfContentOwner parameter indicates that the request's @@ -2098,11 +2103,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # liveBroadcast resource properties that the API response will include. The part - # names that you can include in the parameter value are id, snippet, - # contentDetails, and status. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2124,7 +2124,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def transition_live_broadcast(broadcast_status: nil, id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def transition_live_broadcast(broadcast_status, id, part, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveBroadcasts/transition' command = make_simple_command(:post, path, options) command.response_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation @@ -2142,6 +2142,20 @@ module Google # Updates a broadcast. For example, you could modify the broadcast settings # defined in the liveBroadcast resource's contentDetails object. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # The part properties that you can include in the parameter value are id, + # snippet, contentDetails, and status. + # Note that this method will override the existing values for all of the mutable + # properties that are contained in any parts that the parameter value specifies. + # For example, a broadcast's privacy status is defined in the status part. As + # such, if your request is updating a private or unlisted broadcast, and the + # request's part parameter value includes the status part, the broadcast's + # privacy setting will be updated to whatever value the request body specifies. + # If the request body does not specify a value, the existing privacy setting + # will be removed and the broadcast will revert to the default privacy setting. # @param [Google::Apis::YoutubeV3::LiveBroadcast] live_broadcast_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -2169,20 +2183,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # The part properties that you can include in the parameter value are id, - # snippet, contentDetails, and status. - # Note that this method will override the existing values for all of the mutable - # properties that are contained in any parts that the parameter value specifies. - # For example, a broadcast's privacy status is defined in the status part. As - # such, if your request is updating a private or unlisted broadcast, and the - # request's part parameter value includes the status part, the broadcast's - # privacy setting will be updated to whatever value the request body specifies. - # If the request body does not specify a value, the existing privacy setting - # will be removed and the broadcast will revert to the default privacy setting. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2204,7 +2204,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_live_broadcast(live_broadcast_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_live_broadcast(part, live_broadcast_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveBroadcasts' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::LiveBroadcast::Representation @@ -2271,7 +2271,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_live_stream(id: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_live_stream(id, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveStreams' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -2285,6 +2285,12 @@ module Google # Creates a video stream. The stream enables you to send your video to YouTube, # which can then broadcast the video to your audience. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # The part properties that you can include in the parameter value are id, + # snippet, cdn, and status. # @param [Google::Apis::YoutubeV3::LiveStream] live_stream_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -2312,12 +2318,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # The part properties that you can include in the parameter value are id, - # snippet, cdn, and status. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2339,7 +2339,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_live_stream(live_stream_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_live_stream(part, live_stream_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveStreams' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::LiveStream::Representation @@ -2356,6 +2356,10 @@ module Google end # Returns a list of video streams that match the API request parameters. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more liveStream + # resource properties that the API response will include. The part names that + # you can include in the parameter value are id, snippet, cdn, and status. # @param [String] id # The id parameter specifies a comma-separated list of YouTube stream IDs that # identify the streams being retrieved. In a liveStream resource, the id @@ -2397,10 +2401,6 @@ module Google # The pageToken parameter identifies a specific page in the result set that # should be returned. In an API response, the nextPageToken and prevPageToken # properties identify other pages that could be retrieved. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more liveStream - # resource properties that the API response will include. The part names that - # you can include in the parameter value are id, snippet, cdn, and status. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2422,7 +2422,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_live_streams(id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_live_streams(part, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveStreams' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListLiveStreamsResponse::Representation @@ -2442,6 +2442,16 @@ module Google # Updates a video stream. If the properties that you want to change cannot be # updated, then you need to create a new stream with the proper settings. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # The part properties that you can include in the parameter value are id, + # snippet, cdn, and status. + # Note that this method will override the existing values for all of the mutable + # properties that are contained in any parts that the parameter value specifies. + # If the request body does not specify a value for a mutable property, the + # existing value for that property will be removed. # @param [Google::Apis::YoutubeV3::LiveStream] live_stream_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -2469,16 +2479,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # The part properties that you can include in the parameter value are id, - # snippet, cdn, and status. - # Note that this method will override the existing values for all of the mutable - # properties that are contained in any parts that the parameter value specifies. - # If the request body does not specify a value for a mutable property, the - # existing value for that property will be removed. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2500,7 +2500,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_live_stream(live_stream_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_live_stream(part, live_stream_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'liveStreams' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::LiveStream::Representation @@ -2542,7 +2542,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_playlist_item(id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_playlist_item(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'playlistItems' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -2553,6 +2553,10 @@ module Google end # Adds a resource to a playlist. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. # @param [Google::Apis::YoutubeV3::PlaylistItem] playlist_item_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -2564,10 +2568,6 @@ module Google # to all their video and channel data, without having to provide authentication # credentials for each individual channel. The CMS account that the user # authenticates with must be linked to the specified YouTube content owner. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2589,7 +2589,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_playlist_item(playlist_item_object = nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_playlist_item(part, playlist_item_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'playlistItems' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation @@ -2607,6 +2607,15 @@ module Google # Returns a collection of playlist items that match the API request parameters. # You can retrieve all of the playlist items in a specified playlist or retrieve # one or more playlist items by their unique IDs. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # playlistItem resource properties that the API response will include. + # If the parameter identifies a property that contains child properties, the + # child properties will be included in the response. For example, in a + # playlistItem resource, the snippet property contains numerous fields, + # including the title, description, position, and resourceId properties. As such, + # if you set part=snippet, the API response will contain all of those + # properties. # @param [String] id # The id parameter specifies a comma-separated list of one or more unique # playlist item IDs. @@ -2627,15 +2636,6 @@ module Google # The pageToken parameter identifies a specific page in the result set that # should be returned. In an API response, the nextPageToken and prevPageToken # properties identify other pages that could be retrieved. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # playlistItem resource properties that the API response will include. - # If the parameter identifies a property that contains child properties, the - # child properties will be included in the response. For example, in a - # playlistItem resource, the snippet property contains numerous fields, - # including the title, description, position, and resourceId properties. As such, - # if you set part=snippet, the API response will contain all of those - # properties. # @param [String] playlist_id # The playlistId parameter specifies the unique ID of the playlist for which you # want to retrieve playlist items. Note that even though this is an optional @@ -2665,7 +2665,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_playlist_items(id: nil, max_results: nil, on_behalf_of_content_owner: nil, page_token: nil, part: nil, playlist_id: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_playlist_items(part, id: nil, max_results: nil, on_behalf_of_content_owner: nil, page_token: nil, playlist_id: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'playlistItems' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListPlaylistItemsResponse::Representation @@ -2685,7 +2685,6 @@ module Google # Modifies a playlist item. For example, you could update the item's position in # the playlist. - # @param [Google::Apis::YoutubeV3::PlaylistItem] playlist_item_object # @param [String] part # The part parameter serves two purposes in this operation. It identifies the # properties that the write operation will set as well as the properties that @@ -2700,6 +2699,7 @@ module Google # to whatever value the request body specifies. If the request body does not # specify values, the existing start and end times will be removed and replaced # with the default settings. + # @param [Google::Apis::YoutubeV3::PlaylistItem] playlist_item_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2721,7 +2721,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_playlist_item(playlist_item_object = nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_playlist_item(part, playlist_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'playlistItems' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::PlaylistItem::Representation @@ -2771,7 +2771,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_playlist(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_playlist(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'playlists' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -2783,6 +2783,10 @@ module Google end # Creates a playlist. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. # @param [Google::Apis::YoutubeV3::Playlist] playlist_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -2810,10 +2814,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2835,7 +2835,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_playlist(playlist_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_playlist(part, playlist_object = nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'playlists' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::Playlist::Representation @@ -2854,6 +2854,14 @@ module Google # Returns a collection of playlists that match the API request parameters. For # example, you can retrieve all playlists that the authenticated user owns, or # you can retrieve one or more playlists by their unique IDs. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more playlist + # resource properties that the API response will include. + # If the parameter identifies a property that contains child properties, the + # child properties will be included in the response. For example, in a playlist + # resource, the snippet property contains properties like author, title, + # description, tags, and timeCreated. As such, if you set part=snippet, the API + # response will contain all of those properties. # @param [String] channel_id # This value indicates that the API should only return the specified channel's # playlists. @@ -2900,14 +2908,6 @@ module Google # The pageToken parameter identifies a specific page in the result set that # should be returned. In an API response, the nextPageToken and prevPageToken # properties identify other pages that could be retrieved. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more playlist - # resource properties that the API response will include. - # If the parameter identifies a property that contains child properties, the - # child properties will be included in the response. For example, in a playlist - # resource, the snippet property contains properties like author, title, - # description, tags, and timeCreated. As such, if you set part=snippet, the API - # response will contain all of those properties. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2929,7 +2929,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_playlists(channel_id: nil, hl: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_playlists(part, channel_id: nil, hl: nil, id: nil, max_results: nil, mine: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'playlists' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListPlaylistResponse::Representation @@ -2951,6 +2951,16 @@ module Google # Modifies a playlist. For example, you could change a playlist's title, # description, or privacy status. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # Note that this method will override the existing values for mutable properties + # that are contained in any parts that the request body specifies. For example, + # a playlist's description is contained in the snippet part, which must be + # included in the request body. If the request does not specify a value for the + # snippet.description property, the playlist's existing description will be + # deleted. # @param [Google::Apis::YoutubeV3::Playlist] playlist_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. @@ -2962,16 +2972,6 @@ module Google # to all their video and channel data, without having to provide authentication # credentials for each individual channel. The CMS account that the user # authenticates with must be linked to the specified YouTube content owner. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # Note that this method will override the existing values for mutable properties - # that are contained in any parts that the request body specifies. For example, - # a playlist's description is contained in the snippet part, which must be - # included in the request body. If the request does not specify a value for the - # snippet.description property, the playlist's existing description will be - # deleted. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2993,7 +2993,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_playlist(playlist_object = nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_playlist(part, playlist_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'playlists' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::Playlist::Representation @@ -3012,6 +3012,10 @@ module Google # specified in the API request. By default, a search result set identifies # matching video, channel, and playlist resources, but you can also configure # queries to only retrieve a specific type of resource. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more search + # resource properties that the API response will include. Set the parameter + # value to snippet. # @param [String] channel_id # The channelId parameter indicates that the API response should only contain # resources created by the channel @@ -3078,10 +3082,6 @@ module Google # The pageToken parameter identifies a specific page in the result set that # should be returned. In an API response, the nextPageToken and prevPageToken # properties identify other pages that could be retrieved. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more search - # resource properties that the API response will include. Set the parameter - # value to snippet. # @param [DateTime] published_after # The publishedAfter parameter indicates that the API response should only # contain resources created after the specified time. The value is an RFC 3339 @@ -3186,7 +3186,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_searches(channel_id: nil, channel_type: nil, event_type: nil, for_content_owner: nil, for_developer: nil, for_mine: nil, location: nil, location_radius: nil, max_results: nil, on_behalf_of_content_owner: nil, order: nil, page_token: nil, part: nil, published_after: nil, published_before: nil, q: nil, region_code: nil, related_to_video_id: nil, relevance_language: nil, safe_search: nil, topic_id: nil, type: nil, video_caption: nil, video_category_id: nil, video_definition: nil, video_dimension: nil, video_duration: nil, video_embeddable: nil, video_license: nil, video_syndicated: nil, video_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_searches(part, channel_id: nil, channel_type: nil, event_type: nil, for_content_owner: nil, for_developer: nil, for_mine: nil, location: nil, location_radius: nil, max_results: nil, on_behalf_of_content_owner: nil, order: nil, page_token: nil, published_after: nil, published_before: nil, q: nil, region_code: nil, related_to_video_id: nil, relevance_language: nil, safe_search: nil, topic_id: nil, type: nil, video_caption: nil, video_category_id: nil, video_definition: nil, video_dimension: nil, video_duration: nil, video_embeddable: nil, video_license: nil, video_syndicated: nil, video_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'search' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::SearchListsResponse::Representation @@ -3254,7 +3254,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_subscription(id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'subscriptions' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -3265,11 +3265,11 @@ module Google end # Adds a subscription for the authenticated user's channel. - # @param [Google::Apis::YoutubeV3::Subscription] subscription_object # @param [String] part # The part parameter serves two purposes in this operation. It identifies the # properties that the write operation will set as well as the properties that # the API response will include. + # @param [Google::Apis::YoutubeV3::Subscription] subscription_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3291,7 +3291,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_subscription(subscription_object = nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def insert_subscription(part, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'subscriptions' command = make_simple_command(:post, path, options) command.request_representation = Google::Apis::YoutubeV3::Subscription::Representation @@ -3306,6 +3306,14 @@ module Google end # Returns subscription resources that match the API request criteria. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more + # subscription resource properties that the API response will include. + # If the parameter identifies a property that contains child properties, the + # child properties will be included in the response. For example, in a + # subscription resource, the snippet property contains other properties, such as + # a display title for the subscription. If you set part=snippet, the API + # response will also contain all of those nested properties. # @param [String] channel_id # The channelId parameter specifies a YouTube channel ID. The API will only # return that channel's subscriptions. @@ -3358,14 +3366,6 @@ module Google # The pageToken parameter identifies a specific page in the result set that # should be returned. In an API response, the nextPageToken and prevPageToken # properties identify other pages that could be retrieved. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more - # subscription resource properties that the API response will include. - # If the parameter identifies a property that contains child properties, the - # child properties will be included in the response. For example, in a - # subscription resource, the snippet property contains other properties, such as - # a display title for the subscription. If you set part=snippet, the API - # response will also contain all of those nested properties. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3387,7 +3387,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_subscriptions(channel_id: nil, for_channel_id: nil, id: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, order: nil, page_token: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_subscriptions(part, channel_id: nil, for_channel_id: nil, id: nil, max_results: nil, mine: nil, my_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, order: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'subscriptions' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListSubscriptionResponse::Representation @@ -3410,6 +3410,9 @@ module Google end # Uploads a custom video thumbnail to YouTube and sets it for a video. + # @param [String] video_id + # The videoId parameter specifies a YouTube video ID for which the custom video + # thumbnail is being provided. # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. # The onBehalfOfContentOwner parameter indicates that the request's @@ -3420,9 +3423,6 @@ module Google # to all their video and channel data, without having to provide authentication # credentials for each individual channel. The actual CMS account that the user # authenticates with must be linked to the specified YouTube content owner. - # @param [String] video_id - # The videoId parameter specifies a YouTube video ID for which the custom video - # thumbnail is being provided. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3448,7 +3448,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_thumbnail(on_behalf_of_content_owner: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def set_thumbnail(video_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'thumbnails/set' if upload_source.nil? command = make_simple_command(:post, path, options) @@ -3468,12 +3468,12 @@ module Google end # Returns a list of abuse reasons that can be used for reporting abusive videos. - # @param [String] hl - # The hl parameter specifies the language that should be used for text values in - # the API response. # @param [String] part # The part parameter specifies the videoCategory resource parts that the API # response will include. Supported values are id and snippet. + # @param [String] hl + # The hl parameter specifies the language that should be used for text values in + # the API response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3495,7 +3495,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_video_abuse_report_reasons(hl: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_video_abuse_report_reasons(part, hl: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'videoAbuseReportReasons' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListVideoAbuseReportReasonResponse::Representation @@ -3509,15 +3509,15 @@ module Google end # Returns a list of categories that can be associated with YouTube videos. + # @param [String] part + # The part parameter specifies the videoCategory resource properties that the + # API response will include. Set the parameter value to snippet. # @param [String] hl # The hl parameter specifies the language that should be used for text values in # the API response. # @param [String] id # The id parameter specifies a comma-separated list of video category IDs for # the resources that you are retrieving. - # @param [String] part - # The part parameter specifies the videoCategory resource properties that the - # API response will include. Set the parameter value to snippet. # @param [String] region_code # The regionCode parameter instructs the API to return the list of video # categories available in the specified country. The parameter value is an ISO @@ -3543,7 +3543,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_video_categories(hl: nil, id: nil, part: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_video_categories(part, hl: nil, id: nil, region_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'videoCategories' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListVideoCategoryResponse::Representation @@ -3593,7 +3593,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_video(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def delete_video(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'videos' command = make_simple_command(:delete, path, options) command.query['id'] = id unless id.nil? @@ -3641,7 +3641,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_rating_video(id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_rating_video(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'videos/getRating' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::GetVideoRatingResponse::Representation @@ -3655,6 +3655,15 @@ module Google end # Uploads a video to YouTube and optionally sets the video's metadata. + # @param [String] part + # The part parameter serves two purposes in this operation. It identifies the + # properties that the write operation will set as well as the properties that + # the API response will include. + # Note that not all parts contain properties that can be set when inserting or + # updating a video. For example, the statistics object encapsulates statistics + # that YouTube calculates for a video and does not contain values that you can + # set or modify. If the parameter value specifies a part that does not contain + # mutable values, that part will still be included in the API response. # @param [Google::Apis::YoutubeV3::Video] video_object # @param [Boolean] auto_levels # The autoLevels parameter indicates whether YouTube should automatically @@ -3692,15 +3701,6 @@ module Google # many different YouTube channels. It allows content owners to authenticate once # and perform actions on behalf of the channel specified in the parameter value, # without having to provide authentication credentials for each separate channel. - # @param [String] part - # The part parameter serves two purposes in this operation. It identifies the - # properties that the write operation will set as well as the properties that - # the API response will include. - # Note that not all parts contain properties that can be set when inserting or - # updating a video. For example, the statistics object encapsulates statistics - # that YouTube calculates for a video and does not contain values that you can - # set or modify. If the parameter value specifies a part that does not contain - # mutable values, that part will still be included in the API response. # @param [Boolean] stabilize # The stabilize parameter indicates whether YouTube should adjust the video to # remove shaky camera motions. @@ -3729,7 +3729,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_video(video_object = nil, auto_levels: nil, notify_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, part: nil, stabilize: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def insert_video(part, video_object = nil, auto_levels: nil, notify_subscribers: nil, on_behalf_of_content_owner: nil, on_behalf_of_content_owner_channel: nil, stabilize: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'videos' if upload_source.nil? command = make_simple_command(:post, path, options) @@ -3755,6 +3755,14 @@ module Google end # Returns a list of videos that match the API request parameters. + # @param [String] part + # The part parameter specifies a comma-separated list of one or more video + # resource properties that the API response will include. + # If the parameter identifies a property that contains child properties, the + # child properties will be included in the response. For example, in a video + # resource, the snippet property contains the channelId, title, description, + # tags, and categoryId properties. As such, if you set part=snippet, the API + # response will contain all of those properties. # @param [String] chart # The chart parameter identifies the chart that you want to retrieve. # @param [String] debug_project_id_override @@ -3801,14 +3809,6 @@ module Google # Note: This parameter is supported for use in conjunction with the myRating # parameter, but it is not supported for use in conjunction with the id # parameter. - # @param [String] part - # The part parameter specifies a comma-separated list of one or more video - # resource properties that the API response will include. - # If the parameter identifies a property that contains child properties, the - # child properties will be included in the response. For example, in a video - # resource, the snippet property contains the channelId, title, description, - # tags, and categoryId properties. As such, if you set part=snippet, the API - # response will contain all of those properties. # @param [String] region_code # The regionCode parameter instructs the API to select a video chart available # in the specified region. This parameter can only be used in conjunction with @@ -3839,7 +3839,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_videos(chart: nil, debug_project_id_override: nil, hl: nil, id: nil, locale: nil, max_results: nil, my_rating: nil, on_behalf_of_content_owner: nil, page_token: nil, part: nil, region_code: nil, video_category_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_videos(part, chart: nil, debug_project_id_override: nil, hl: nil, id: nil, locale: nil, max_results: nil, my_rating: nil, on_behalf_of_content_owner: nil, page_token: nil, region_code: nil, video_category_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'videos' command = make_simple_command(:get, path, options) command.response_representation = Google::Apis::YoutubeV3::ListVideosResponse::Representation @@ -3889,7 +3889,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def rate_video(id: nil, rating: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def rate_video(id, rating, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'videos/rate' command = make_simple_command(:post, path, options) command.query['id'] = id unless id.nil? @@ -3946,17 +3946,6 @@ module Google end # Updates a video's metadata. - # @param [Google::Apis::YoutubeV3::Video] video_object - # @param [String] on_behalf_of_content_owner - # Note: This parameter is intended exclusively for YouTube content partners. - # The onBehalfOfContentOwner parameter indicates that the request's - # authorization credentials identify a YouTube CMS user who is acting on behalf - # of the content owner specified in the parameter value. This parameter is - # intended for YouTube content partners that own and manage many different - # YouTube channels. It allows content owners to authenticate once and get access - # to all their video and channel data, without having to provide authentication - # credentials for each individual channel. The actual CMS account that the user - # authenticates with must be linked to the specified YouTube content owner. # @param [String] part # The part parameter serves two purposes in this operation. It identifies the # properties that the write operation will set as well as the properties that @@ -3975,6 +3964,17 @@ module Google # that you can set or modify. If the parameter value specifies a part that does # not contain mutable values, that part will still be included in the API # response. + # @param [Google::Apis::YoutubeV3::Video] video_object + # @param [String] on_behalf_of_content_owner + # Note: This parameter is intended exclusively for YouTube content partners. + # The onBehalfOfContentOwner parameter indicates that the request's + # authorization credentials identify a YouTube CMS user who is acting on behalf + # of the content owner specified in the parameter value. This parameter is + # intended for YouTube content partners that own and manage many different + # YouTube channels. It allows content owners to authenticate once and get access + # to all their video and channel data, without having to provide authentication + # credentials for each individual channel. The actual CMS account that the user + # authenticates with must be linked to the specified YouTube content owner. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3996,7 +3996,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_video(video_object = nil, on_behalf_of_content_owner: nil, part: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_video(part, video_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'videos' command = make_simple_command(:put, path, options) command.request_representation = Google::Apis::YoutubeV3::Video::Representation @@ -4012,10 +4012,10 @@ module Google end # Uploads a watermark image to YouTube and sets it for a channel. - # @param [Google::Apis::YoutubeV3::InvideoBranding] invideo_branding_object # @param [String] channel_id # The channelId parameter specifies the YouTube channel ID for which the # watermark is being provided. + # @param [Google::Apis::YoutubeV3::InvideoBranding] invideo_branding_object # @param [String] on_behalf_of_content_owner # Note: This parameter is intended exclusively for YouTube content partners. # The onBehalfOfContentOwner parameter indicates that the request's @@ -4051,7 +4051,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_watermark(invideo_branding_object = nil, channel_id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def set_watermark(channel_id, invideo_branding_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) path = 'watermarks/set' if upload_source.nil? command = make_simple_command(:post, path, options) @@ -4105,7 +4105,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def unset_watermark(channel_id: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def unset_watermark(channel_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) path = 'watermarks/unset' command = make_simple_command(:post, path, options) command.query['channelId'] = channel_id unless channel_id.nil?