From 416ae55acfab444e705a1a010826b4ba43d2f184 Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Mon, 16 May 2016 09:49:15 -0700 Subject: [PATCH] regen APIs, add sheets_v4 & analyticsreporting_v4 --- api_names.yaml | 4 + api_names_out.yaml | 1531 +++-- generated/google/apis/adexchangebuyer_v1_4.rb | 2 +- .../apis/adexchangebuyer_v1_4/classes.rb | 87 +- .../adexchangebuyer_v1_4/representations.rb | 30 +- .../apis/adexchangebuyer_v1_4/service.rb | 8 +- .../google/apis/adexchangeseller_v2_0.rb | 2 +- .../google/apis/admin_directory_v1/classes.rb | 2 +- .../admin_directory_v1/representations.rb | 3 +- generated/google/apis/adsense_v1_4.rb | 2 +- generated/google/apis/adsensehost_v4_1.rb | 2 +- generated/google/apis/analytics_v3.rb | 2 +- .../google/apis/analyticsreporting_v4.rb | 37 + .../apis/analyticsreporting_v4/classes.rb | 1385 +++++ .../analyticsreporting_v4/representations.rb | 597 ++ .../apis/analyticsreporting_v4/service.rb | 88 + generated/google/apis/androidenterprise_v1.rb | 2 +- .../apis/androidenterprise_v1/classes.rb | 100 +- .../androidenterprise_v1/representations.rb | 48 + .../apis/androidenterprise_v1/service.rb | 64 +- generated/google/apis/androidpublisher_v2.rb | 2 +- generated/google/apis/appstate_v1.rb | 2 +- generated/google/apis/autoscaler_v1beta2.rb | 2 +- .../google/apis/autoscaler_v1beta2/classes.rb | 57 +- .../autoscaler_v1beta2/representations.rb | 19 +- .../google/apis/autoscaler_v1beta2/service.rb | 8 +- generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 158 +- .../apis/bigquery_v2/representations.rb | 45 +- generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/classroom_v1.rb | 4 +- generated/google/apis/classroom_v1/service.rb | 2 +- generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 51 +- .../apis/cloudbuild_v1/representations.rb | 7 +- .../google/apis/cloudbuild_v1/service.rb | 70 +- .../google/apis/cloudmonitoring_v2beta2.rb | 2 +- generated/google/apis/compute_beta.rb | 4 +- generated/google/apis/compute_beta/classes.rb | 189 +- .../apis/compute_beta/representations.rb | 58 + generated/google/apis/compute_beta/service.rb | 659 +- generated/google/apis/compute_v1.rb | 4 +- generated/google/apis/compute_v1/classes.rb | 26 +- .../google/apis/compute_v1/representations.rb | 1 + generated/google/apis/compute_v1/service.rb | 544 +- generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1/classes.rb | 148 + .../apis/container_v1/representations.rb | 55 + generated/google/apis/container_v1/service.rb | 161 + generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 17 +- generated/google/apis/customsearch_v1.rb | 2 +- generated/google/apis/dataproc_v1.rb | 13 +- generated/google/apis/dataproc_v1/classes.rb | 19 - .../apis/dataproc_v1/representations.rb | 13 - generated/google/apis/dataproc_v1/service.rb | 95 +- generated/google/apis/deploymentmanager_v2.rb | 2 +- generated/google/apis/dfareporting_v2_3.rb | 2 +- .../google/apis/dfareporting_v2_3/classes.rb | 73 +- generated/google/apis/discovery_v1.rb | 4 +- generated/google/apis/discovery_v1/service.rb | 4 +- generated/google/apis/dns_v1.rb | 5 +- generated/google/apis/dns_v1/service.rb | 3 +- .../google/apis/doubleclickbidmanager_v1.rb | 2 +- generated/google/apis/doubleclicksearch_v2.rb | 2 +- generated/google/apis/drive_v2.rb | 5 +- generated/google/apis/drive_v2/service.rb | 3 +- generated/google/apis/drive_v3.rb | 5 +- generated/google/apis/drive_v3/service.rb | 3 +- .../games_configuration_v1configuration.rb | 2 +- .../apis/games_management_v1management.rb | 2 +- .../games_management_v1management/classes.rb | 34 + .../representations.rb | 16 + generated/google/apis/games_v1.rb | 2 +- generated/google/apis/games_v1/classes.rb | 34 + .../google/apis/games_v1/representations.rb | 16 + generated/google/apis/genomics_v1.rb | 2 +- generated/google/apis/genomics_v1/classes.rb | 18 + .../apis/genomics_v1/representations.rb | 3 + generated/google/apis/genomics_v1/service.rb | 4 +- generated/google/apis/identitytoolkit_v3.rb | 2 +- .../google/apis/identitytoolkit_v3/classes.rb | 19 +- .../identitytoolkit_v3/representations.rb | 3 +- generated/google/apis/pagespeedonline_v2.rb | 2 +- generated/google/apis/plus_domains_v1.rb | 4 +- .../google/apis/plus_domains_v1/service.rb | 2 +- generated/google/apis/plus_v1.rb | 4 +- generated/google/apis/plus_v1/service.rb | 2 +- .../google/apis/proximitybeacon_v1beta1.rb | 7 +- .../apis/proximitybeacon_v1beta1/classes.rb | 191 +- .../representations.rb | 37 +- .../apis/proximitybeacon_v1beta1/service.rb | 293 +- generated/google/apis/replicapool_v1beta2.rb | 6 +- .../apis/replicapool_v1beta2/service.rb | 4 +- generated/google/apis/script_v1.rb | 9 +- generated/google/apis/script_v1/service.rb | 4 +- generated/google/apis/sheets_v4.rb | 43 + generated/google/apis/sheets_v4/classes.rb | 5426 +++++++++++++++++ .../google/apis/sheets_v4/representations.rb | 2070 +++++++ generated/google/apis/sheets_v4/service.rb | 403 ++ generated/google/apis/sqladmin_v1beta4.rb | 2 +- .../google/apis/sqladmin_v1beta4/classes.rb | 23 +- .../apis/sqladmin_v1beta4/representations.rb | 3 + generated/google/apis/storage_v1.rb | 2 +- generated/google/apis/taskqueue_v1beta2.rb | 4 +- .../google/apis/taskqueue_v1beta2/service.rb | 2 +- generated/google/apis/vision_v1.rb | 9 +- generated/google/apis/vision_v1/classes.rb | 5 +- generated/google/apis/vision_v1/service.rb | 7 +- generated/google/apis/youtube_analytics_v1.rb | 4 +- .../apis/youtube_analytics_v1/service.rb | 2 +- generated/google/apis/youtube_partner_v1.rb | 2 +- .../google/apis/youtube_partner_v1/classes.rb | 121 + .../youtube_partner_v1/representations.rb | 50 + .../google/apis/youtube_partner_v1/service.rb | 40 + generated/google/apis/youtube_v3.rb | 2 +- generated/google/apis/youtube_v3/classes.rb | 24 + .../google/apis/youtube_v3/representations.rb | 4 + generated/google/apis/youtubereporting_v1.rb | 2 +- script/generate | 2 + 120 files changed, 13842 insertions(+), 1688 deletions(-) create mode 100644 generated/google/apis/analyticsreporting_v4.rb create mode 100644 generated/google/apis/analyticsreporting_v4/classes.rb create mode 100644 generated/google/apis/analyticsreporting_v4/representations.rb create mode 100644 generated/google/apis/analyticsreporting_v4/service.rb create mode 100644 generated/google/apis/sheets_v4.rb create mode 100644 generated/google/apis/sheets_v4/classes.rb create mode 100644 generated/google/apis/sheets_v4/representations.rb create mode 100644 generated/google/apis/sheets_v4/service.rb diff --git a/api_names.yaml b/api_names.yaml index 75cca3822..7f3087824 100644 --- a/api_names.yaml +++ b/api_names.yaml @@ -172,6 +172,7 @@ "/analytics:v3/analytics.management.webpropertyUserLinks.update": update_web_property_user_link "/analytics:v3/analytics.metadata.columns.list": list_metadata_columns "/analytics:v3/analytics.provisioning.createAccountTicket": create_account_ticket +"/analyticsreporting:v4/analyticsreporting.reports.batchGet": batch_get_reports "/androidenterprise:v1/CollectionViewersListResponse": list_collection_viewers_response "/androidenterprise:v1/CollectionsListResponse": list_collections_response "/androidenterprise:v1/DevicesListResponse": list_devices_response @@ -991,6 +992,9 @@ "/siteVerification:v1/SiteVerificationWebResourceGettokenResponse": get_web_resource_token_response "/siteVerification:v1/SiteVerificationWebResourceGettokenResponse/method": verification_method "/siteVerification:v1/SiteVerificationWebResourceListResponse": list_web_resource_response +"/sheets:v4/sheets.spreadsheets.sheets.copyTo": copy_spreadsheet +"/sheets:v4/sheets.spreadsheets.values.batchGet": batch_get_spreadsheet_values +"/sheets:v4/sheets.spreadsheets.values.get": get_spreadsheet_values "/sqladmin:v1beta4/BackupRunsListResponse": list_backup_runs_response "/sqladmin:v1beta4/DatabasesListResponse": list_databases_response "/sqladmin:v1beta4/FlagsListResponse": list_flags_response diff --git a/api_names_out.yaml b/api_names_out.yaml index c67687d12..5625cfaa8 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -172,6 +172,7 @@ "/analytics:v3/analytics.management.webpropertyUserLinks.update": update_web_property_user_link "/analytics:v3/analytics.metadata.columns.list": list_metadata_columns "/analytics:v3/analytics.provisioning.createAccountTicket": create_account_ticket +"/analyticsreporting:v4/analyticsreporting.reports.batchGet": batch_get_reports "/androidenterprise:v1/CollectionViewersListResponse": list_collection_viewers_response "/androidenterprise:v1/CollectionsListResponse": list_collections_response "/androidenterprise:v1/DevicesListResponse": list_devices_response @@ -967,6 +968,9 @@ "/siteVerification:v1/SiteVerificationWebResourceGettokenResponse": get_web_resource_token_response "/siteVerification:v1/SiteVerificationWebResourceGettokenResponse/method": verification_method "/siteVerification:v1/SiteVerificationWebResourceListResponse": list_web_resource_response +"/sheets:v4/sheets.spreadsheets.sheets.copyTo": copy_spreadsheet +"/sheets:v4/sheets.spreadsheets.values.batchGet": batch_get_spreadsheet_values +"/sheets:v4/sheets.spreadsheets.values.get": get_spreadsheet_values "/sqladmin:v1beta4/BackupRunsListResponse": list_backup_runs_response "/sqladmin:v1beta4/DatabasesListResponse": list_databases_response "/sqladmin:v1beta4/FlagsListResponse": list_flags_response @@ -1293,6 +1297,8 @@ "/youtubePartner:v1/youtubePartner.references.update/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubePartner:v1/youtubePartner.references.update/referenceId": reference_id "/youtubePartner:v1/youtubePartner.references.update/releaseClaims": release_claims +"/youtubePartner:v1/youtubePartner.validator.validate": validate_validator +"/youtubePartner:v1/youtubePartner.validator.validate/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubePartner:v1/youtubePartner.videoAdvertisingOptions.get": get_video_advertising_option "/youtubePartner:v1/youtubePartner.videoAdvertisingOptions.get/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubePartner:v1/youtubePartner.videoAdvertisingOptions.get/videoId": video_id @@ -1806,6 +1812,23 @@ "/youtubePartner:v1/TerritoryOwners/territories": territories "/youtubePartner:v1/TerritoryOwners/territories/territory": territory "/youtubePartner:v1/TerritoryOwners/type": type +"/youtubePartner:v1/ValidateError": validate_error +"/youtubePartner:v1/ValidateError/columnName": column_name +"/youtubePartner:v1/ValidateError/columnNumber": column_number +"/youtubePartner:v1/ValidateError/lineNumber": line_number +"/youtubePartner:v1/ValidateError/message": message +"/youtubePartner:v1/ValidateError/messageCode": message_code +"/youtubePartner:v1/ValidateError/severity": severity +"/youtubePartner:v1/ValidateRequest": validate_request +"/youtubePartner:v1/ValidateRequest/content": content +"/youtubePartner:v1/ValidateRequest/kind": kind +"/youtubePartner:v1/ValidateRequest/locale": locale +"/youtubePartner:v1/ValidateRequest/uploaderName": uploader_name +"/youtubePartner:v1/ValidateResponse": validate_response +"/youtubePartner:v1/ValidateResponse/errors": errors +"/youtubePartner:v1/ValidateResponse/errors/error": error +"/youtubePartner:v1/ValidateResponse/kind": kind +"/youtubePartner:v1/ValidateResponse/status": status "/youtubePartner:v1/VideoAdvertisingOption": video_advertising_option "/youtubePartner:v1/VideoAdvertisingOption/adBreaks": ad_breaks "/youtubePartner:v1/VideoAdvertisingOption/adBreaks/ad_break": ad_break @@ -2352,6 +2375,10 @@ "/compute:beta/compute.instances.start/instance": instance "/compute:beta/compute.instances.start/project": project "/compute:beta/compute.instances.start/zone": zone +"/compute:beta/compute.instances.startWithEncryptionKey": start_instance_with_encryption_key +"/compute:beta/compute.instances.startWithEncryptionKey/instance": instance +"/compute:beta/compute.instances.startWithEncryptionKey/project": project +"/compute:beta/compute.instances.startWithEncryptionKey/zone": zone "/compute:beta/compute.instances.stop": stop_instance "/compute:beta/compute.instances.stop/instance": instance "/compute:beta/compute.instances.stop/project": project @@ -2398,6 +2425,8 @@ "/compute:beta/compute.networks.testIamPermissions/resource": resource "/compute:beta/compute.projects.get": get_project "/compute:beta/compute.projects.get/project": project +"/compute:beta/compute.projects.moveDisk/project": project +"/compute:beta/compute.projects.moveInstance/project": project "/compute:beta/compute.projects.setCommonInstanceMetadata/project": project "/compute:beta/compute.projects.setUsageExportBucket/project": project "/compute:beta/compute.regionOperations.delete": delete_region_operation @@ -2914,6 +2943,9 @@ "/compute:beta/CustomerEncryptionKey/rawKey": raw_key "/compute:beta/CustomerEncryptionKey/rsaEncryptedKey": rsa_encrypted_key "/compute:beta/CustomerEncryptionKey/sha256": sha256 +"/compute:beta/CustomerEncryptionKeyProtectedDisk": customer_encryption_key_protected_disk +"/compute:beta/CustomerEncryptionKeyProtectedDisk/diskEncryptionKey": disk_encryption_key +"/compute:beta/CustomerEncryptionKeyProtectedDisk/source": source "/compute:beta/DeprecationStatus": deprecation_status "/compute:beta/DeprecationStatus/deleted": deleted "/compute:beta/DeprecationStatus/deprecated": deprecated @@ -2963,6 +2995,9 @@ "/compute:beta/DiskList/kind": kind "/compute:beta/DiskList/nextPageToken": next_page_token "/compute:beta/DiskList/selfLink": self_link +"/compute:beta/DiskMoveRequest": disk_move_request +"/compute:beta/DiskMoveRequest/destinationZone": destination_zone +"/compute:beta/DiskMoveRequest/targetDisk": target_disk "/compute:beta/DiskType": disk_type "/compute:beta/DiskType/creationTimestamp": creation_timestamp "/compute:beta/DiskType/defaultDiskSizeGb": default_disk_size_gb @@ -3339,6 +3374,8 @@ "/compute:beta/InstanceList/kind": kind "/compute:beta/InstanceList/nextPageToken": next_page_token "/compute:beta/InstanceList/selfLink": self_link +"/compute:beta/InstanceMoveRequest/destinationZone": destination_zone +"/compute:beta/InstanceMoveRequest/targetInstance": target_instance "/compute:beta/InstanceProperties": instance_properties "/compute:beta/InstanceProperties/canIpForward": can_ip_forward "/compute:beta/InstanceProperties/description": description @@ -3390,6 +3427,9 @@ "/compute:beta/InstancesSetLabelsRequest/labels/label": label "/compute:beta/InstancesSetMachineTypeRequest": instances_set_machine_type_request "/compute:beta/InstancesSetMachineTypeRequest/machineType": machine_type +"/compute:beta/InstancesStartWithEncryptionKeyRequest": instances_start_with_encryption_key_request +"/compute:beta/InstancesStartWithEncryptionKeyRequest/disks": disks +"/compute:beta/InstancesStartWithEncryptionKeyRequest/disks/disk": disk "/compute:beta/License": license "/compute:beta/License/chargesUseFee": charges_use_fee "/compute:beta/License/kind": kind @@ -3401,6 +3441,7 @@ "/compute:beta/MachineType/description": description "/compute:beta/MachineType/guestCpus": guest_cpus "/compute:beta/MachineType/id": id +"/compute:beta/MachineType/isSharedCpu": is_shared_cpu "/compute:beta/MachineType/kind": kind "/compute:beta/MachineType/maximumPersistentDisks": maximum_persistent_disks "/compute:beta/MachineType/maximumPersistentDisksSizeGb": maximum_persistent_disks_size_gb @@ -4113,6 +4154,7 @@ "/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.insert": insert_marketplacedeal "/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.insert/proposalId": proposal_id "/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.list": list_marketplacedeals +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.list/pqlQuery": pql_query "/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.list/proposalId": proposal_id "/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.update": update_marketplacedeal "/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.update/proposalId": proposal_id @@ -4227,6 +4269,7 @@ "/adexchangebuyer:v1.4/Creative": creative "/adexchangebuyer:v1.4/Creative/HTMLSnippet": html_snippet "/adexchangebuyer:v1.4/Creative/accountId": account_id +"/adexchangebuyer:v1.4/Creative/adChoicesDestinationUrl": ad_choices_destination_url "/adexchangebuyer:v1.4/Creative/advertiserId": advertiser_id "/adexchangebuyer:v1.4/Creative/advertiserId/advertiser_id": advertiser_id "/adexchangebuyer:v1.4/Creative/advertiserName": advertiser_name @@ -4313,6 +4356,7 @@ "/adexchangebuyer:v1.4/DealServingMetadata": deal_serving_metadata "/adexchangebuyer:v1.4/DealServingMetadata/dealPauseStatus": deal_pause_status "/adexchangebuyer:v1.4/DealServingMetadataDealPauseStatus": deal_serving_metadata_deal_pause_status +"/adexchangebuyer:v1.4/DealServingMetadataDealPauseStatus/firstPausedBy": first_paused_by "/adexchangebuyer:v1.4/DealServingMetadataDealPauseStatus/hasBuyerPaused": has_buyer_paused "/adexchangebuyer:v1.4/DealServingMetadataDealPauseStatus/hasSellerPaused": has_seller_paused "/adexchangebuyer:v1.4/DealTerms": deal_terms @@ -4325,10 +4369,15 @@ "/adexchangebuyer:v1.4/DealTerms/nonGuaranteedFixedPriceTerms": non_guaranteed_fixed_price_terms "/adexchangebuyer:v1.4/DealTerms/sellerTimeZone": seller_time_zone "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms": deal_terms_guaranteed_fixed_price_terms +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/billingInfo": billing_info "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/fixedPrices": fixed_prices "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/fixedPrices/fixed_price": fixed_price "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/guaranteedImpressions": guaranteed_impressions "/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/guaranteedLooks": guaranteed_looks +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo": deal_terms_guaranteed_fixed_price_terms_billing_info +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo/currencyConversionTimeMs": currency_conversion_time_ms +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo/originalContractedQuantity": original_contracted_quantity +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTermsBillingInfo/price": price "/adexchangebuyer:v1.4/DealTermsNonGuaranteedAuctionTerms": deal_terms_non_guaranteed_auction_terms "/adexchangebuyer:v1.4/DealTermsNonGuaranteedAuctionTerms/autoOptimizePrivateAuction": auto_optimize_private_auction "/adexchangebuyer:v1.4/DealTermsNonGuaranteedAuctionTerms/reservePricePerBuyers": reserve_price_per_buyers @@ -4519,6 +4568,7 @@ "/adexchangebuyer:v1.4/Price/currencyCode": currency_code "/adexchangebuyer:v1.4/Price/pricingType": pricing_type "/adexchangebuyer:v1.4/PricePerBuyer": price_per_buyer +"/adexchangebuyer:v1.4/PricePerBuyer/auctionTier": auction_tier "/adexchangebuyer:v1.4/PricePerBuyer/buyer": buyer "/adexchangebuyer:v1.4/PricePerBuyer/price": price "/adexchangebuyer:v1.4/PrivateData": private_data @@ -4542,6 +4592,7 @@ "/adexchangebuyer:v1.4/Product/privateAuctionId": private_auction_id "/adexchangebuyer:v1.4/Product/productId": product_id "/adexchangebuyer:v1.4/Product/publisherProfileId": publisher_profile_id +"/adexchangebuyer:v1.4/Product/publisherProvidedForecast": publisher_provided_forecast "/adexchangebuyer:v1.4/Product/revisionNumber": revision_number "/adexchangebuyer:v1.4/Product/seller": seller "/adexchangebuyer:v1.4/Product/sharedTargetings": shared_targetings @@ -4565,7 +4616,6 @@ "/adexchangebuyer:v1.4/Proposal/labels": labels "/adexchangebuyer:v1.4/Proposal/labels/label": label "/adexchangebuyer:v1.4/Proposal/lastUpdaterOrCommentorRole": last_updater_or_commentor_role -"/adexchangebuyer:v1.4/Proposal/lastUpdaterRole": last_updater_role "/adexchangebuyer:v1.4/Proposal/name": name "/adexchangebuyer:v1.4/Proposal/negotiationId": negotiation_id "/adexchangebuyer:v1.4/Proposal/originatorRole": originator_role @@ -7192,6 +7242,193 @@ "/analytics:v3/Webproperty/starred": starred "/analytics:v3/Webproperty/updated": updated "/analytics:v3/Webproperty/websiteUrl": website_url +"/analyticsreporting:v4/key": key +"/analyticsreporting:v4/quotaUser": quota_user +"/analyticsreporting:v4/fields": fields +"/analyticsreporting:v4/PivotHeader": pivot_header +"/analyticsreporting:v4/PivotHeader/totalPivotGroupsCount": total_pivot_groups_count +"/analyticsreporting:v4/PivotHeader/pivotHeaderEntries": pivot_header_entries +"/analyticsreporting:v4/PivotHeader/pivotHeaderEntries/pivot_header_entry": pivot_header_entry +"/analyticsreporting:v4/Metric": metric +"/analyticsreporting:v4/Metric/alias": alias +"/analyticsreporting:v4/Metric/formattingType": formatting_type +"/analyticsreporting:v4/Metric/expression": expression +"/analyticsreporting:v4/ColumnHeader": column_header +"/analyticsreporting:v4/ColumnHeader/dimensions": dimensions +"/analyticsreporting:v4/ColumnHeader/dimensions/dimension": dimension +"/analyticsreporting:v4/ColumnHeader/metricHeader": metric_header +"/analyticsreporting:v4/DynamicSegment": dynamic_segment +"/analyticsreporting:v4/DynamicSegment/sessionSegment": session_segment +"/analyticsreporting:v4/DynamicSegment/name": name +"/analyticsreporting:v4/DynamicSegment/userSegment": user_segment +"/analyticsreporting:v4/MetricHeader": metric_header +"/analyticsreporting:v4/MetricHeader/metricHeaderEntries": metric_header_entries +"/analyticsreporting:v4/MetricHeader/metricHeaderEntries/metric_header_entry": metric_header_entry +"/analyticsreporting:v4/MetricHeader/pivotHeaders": pivot_headers +"/analyticsreporting:v4/MetricHeader/pivotHeaders/pivot_header": pivot_header +"/analyticsreporting:v4/Report": report +"/analyticsreporting:v4/Report/columnHeader": column_header +"/analyticsreporting:v4/Report/data": data +"/analyticsreporting:v4/Report/nextPageToken": next_page_token +"/analyticsreporting:v4/SegmentFilterClause": segment_filter_clause +"/analyticsreporting:v4/SegmentFilterClause/dimensionFilter": dimension_filter +"/analyticsreporting:v4/SegmentFilterClause/metricFilter": metric_filter +"/analyticsreporting:v4/SegmentFilterClause/not": not +"/analyticsreporting:v4/DimensionFilter": dimension_filter +"/analyticsreporting:v4/DimensionFilter/dimensionName": dimension_name +"/analyticsreporting:v4/DimensionFilter/operator": operator +"/analyticsreporting:v4/DimensionFilter/caseSensitive": case_sensitive +"/analyticsreporting:v4/DimensionFilter/expressions": expressions +"/analyticsreporting:v4/DimensionFilter/expressions/expression": expression +"/analyticsreporting:v4/DimensionFilter/not": not +"/analyticsreporting:v4/SegmentDimensionFilter": segment_dimension_filter +"/analyticsreporting:v4/SegmentDimensionFilter/maxComparisonValue": max_comparison_value +"/analyticsreporting:v4/SegmentDimensionFilter/dimensionName": dimension_name +"/analyticsreporting:v4/SegmentDimensionFilter/caseSensitive": case_sensitive +"/analyticsreporting:v4/SegmentDimensionFilter/operator": operator +"/analyticsreporting:v4/SegmentDimensionFilter/expressions": expressions +"/analyticsreporting:v4/SegmentDimensionFilter/expressions/expression": expression +"/analyticsreporting:v4/SegmentDimensionFilter/minComparisonValue": min_comparison_value +"/analyticsreporting:v4/ReportRequest": report_request +"/analyticsreporting:v4/ReportRequest/cohortGroup": cohort_group +"/analyticsreporting:v4/ReportRequest/dimensions": dimensions +"/analyticsreporting:v4/ReportRequest/dimensions/dimension": dimension +"/analyticsreporting:v4/ReportRequest/metricFilterClauses": metric_filter_clauses +"/analyticsreporting:v4/ReportRequest/metricFilterClauses/metric_filter_clause": metric_filter_clause +"/analyticsreporting:v4/ReportRequest/hideTotals": hide_totals +"/analyticsreporting:v4/ReportRequest/includeEmptyRows": include_empty_rows +"/analyticsreporting:v4/ReportRequest/dimensionFilterClauses": dimension_filter_clauses +"/analyticsreporting:v4/ReportRequest/dimensionFilterClauses/dimension_filter_clause": dimension_filter_clause +"/analyticsreporting:v4/ReportRequest/pivots": pivots +"/analyticsreporting:v4/ReportRequest/pivots/pivot": pivot +"/analyticsreporting:v4/ReportRequest/dateRanges": date_ranges +"/analyticsreporting:v4/ReportRequest/dateRanges/date_range": date_range +"/analyticsreporting:v4/ReportRequest/segments": segments +"/analyticsreporting:v4/ReportRequest/segments/segment": segment +"/analyticsreporting:v4/ReportRequest/samplingLevel": sampling_level +"/analyticsreporting:v4/ReportRequest/metrics": metrics +"/analyticsreporting:v4/ReportRequest/metrics/metric": metric +"/analyticsreporting:v4/ReportRequest/pageSize": page_size +"/analyticsreporting:v4/ReportRequest/orderBys": order_bys +"/analyticsreporting:v4/ReportRequest/orderBys/order_by": order_by +"/analyticsreporting:v4/ReportRequest/filtersExpression": filters_expression +"/analyticsreporting:v4/ReportRequest/hideValueRanges": hide_value_ranges +"/analyticsreporting:v4/ReportRequest/viewId": view_id +"/analyticsreporting:v4/ReportRequest/pageToken": page_token +"/analyticsreporting:v4/SimpleSegment": simple_segment +"/analyticsreporting:v4/SimpleSegment/orFiltersForSegment": or_filters_for_segment +"/analyticsreporting:v4/SimpleSegment/orFiltersForSegment/or_filters_for_segment": or_filters_for_segment +"/analyticsreporting:v4/SegmentDefinition": segment_definition +"/analyticsreporting:v4/SegmentDefinition/segmentFilters": segment_filters +"/analyticsreporting:v4/SegmentDefinition/segmentFilters/segment_filter": segment_filter +"/analyticsreporting:v4/SegmentMetricFilter": segment_metric_filter +"/analyticsreporting:v4/SegmentMetricFilter/metricName": metric_name +"/analyticsreporting:v4/SegmentMetricFilter/operator": operator +"/analyticsreporting:v4/SegmentMetricFilter/comparisonValue": comparison_value +"/analyticsreporting:v4/SegmentMetricFilter/scope": scope +"/analyticsreporting:v4/SegmentMetricFilter/maxComparisonValue": max_comparison_value +"/analyticsreporting:v4/ReportData": report_data +"/analyticsreporting:v4/ReportData/rowCount": row_count +"/analyticsreporting:v4/ReportData/samplingSpaceSizes": sampling_space_sizes +"/analyticsreporting:v4/ReportData/samplingSpaceSizes/sampling_space_size": sampling_space_size +"/analyticsreporting:v4/ReportData/maximums": maximums +"/analyticsreporting:v4/ReportData/maximums/maximum": maximum +"/analyticsreporting:v4/ReportData/samplesReadCounts": samples_read_counts +"/analyticsreporting:v4/ReportData/samplesReadCounts/samples_read_count": samples_read_count +"/analyticsreporting:v4/ReportData/minimums": minimums +"/analyticsreporting:v4/ReportData/minimums/minimum": minimum +"/analyticsreporting:v4/ReportData/rows": rows +"/analyticsreporting:v4/ReportData/rows/row": row +"/analyticsreporting:v4/ReportData/totals": totals +"/analyticsreporting:v4/ReportData/totals/total": total +"/analyticsreporting:v4/ReportData/isDataGolden": is_data_golden +"/analyticsreporting:v4/GetReportsRequest": get_reports_request +"/analyticsreporting:v4/GetReportsRequest/reportRequests": report_requests +"/analyticsreporting:v4/GetReportsRequest/reportRequests/report_request": report_request +"/analyticsreporting:v4/OrderBy": order_by +"/analyticsreporting:v4/OrderBy/sortOrder": sort_order +"/analyticsreporting:v4/OrderBy/orderType": order_type +"/analyticsreporting:v4/OrderBy/fieldName": field_name +"/analyticsreporting:v4/Cohort": cohort +"/analyticsreporting:v4/Cohort/type": type +"/analyticsreporting:v4/Cohort/dateRange": date_range +"/analyticsreporting:v4/Cohort/name": name +"/analyticsreporting:v4/OrFiltersForSegment": or_filters_for_segment +"/analyticsreporting:v4/OrFiltersForSegment/segmentFilterClauses": segment_filter_clauses +"/analyticsreporting:v4/OrFiltersForSegment/segmentFilterClauses/segment_filter_clause": segment_filter_clause +"/analyticsreporting:v4/SequenceSegment": sequence_segment +"/analyticsreporting:v4/SequenceSegment/firstStepShouldMatchFirstHit": first_step_should_match_first_hit +"/analyticsreporting:v4/SequenceSegment/segmentSequenceSteps": segment_sequence_steps +"/analyticsreporting:v4/SequenceSegment/segmentSequenceSteps/segment_sequence_step": segment_sequence_step +"/analyticsreporting:v4/SegmentFilter": segment_filter +"/analyticsreporting:v4/SegmentFilter/sequenceSegment": sequence_segment +"/analyticsreporting:v4/SegmentFilter/not": not +"/analyticsreporting:v4/SegmentFilter/simpleSegment": simple_segment +"/analyticsreporting:v4/PivotHeaderEntry": pivot_header_entry +"/analyticsreporting:v4/PivotHeaderEntry/dimensionNames": dimension_names +"/analyticsreporting:v4/PivotHeaderEntry/dimensionNames/dimension_name": dimension_name +"/analyticsreporting:v4/PivotHeaderEntry/dimensionValues": dimension_values +"/analyticsreporting:v4/PivotHeaderEntry/dimensionValues/dimension_value": dimension_value +"/analyticsreporting:v4/PivotHeaderEntry/metric": metric +"/analyticsreporting:v4/DimensionFilterClause": dimension_filter_clause +"/analyticsreporting:v4/DimensionFilterClause/operator": operator +"/analyticsreporting:v4/DimensionFilterClause/filters": filters +"/analyticsreporting:v4/DimensionFilterClause/filters/filter": filter +"/analyticsreporting:v4/SegmentSequenceStep": segment_sequence_step +"/analyticsreporting:v4/SegmentSequenceStep/matchType": match_type +"/analyticsreporting:v4/SegmentSequenceStep/orFiltersForSegment": or_filters_for_segment +"/analyticsreporting:v4/SegmentSequenceStep/orFiltersForSegment/or_filters_for_segment": or_filters_for_segment +"/analyticsreporting:v4/Pivot": pivot +"/analyticsreporting:v4/Pivot/dimensions": dimensions +"/analyticsreporting:v4/Pivot/dimensions/dimension": dimension +"/analyticsreporting:v4/Pivot/metrics": metrics +"/analyticsreporting:v4/Pivot/metrics/metric": metric +"/analyticsreporting:v4/Pivot/maxGroupCount": max_group_count +"/analyticsreporting:v4/Pivot/dimensionFilterClauses": dimension_filter_clauses +"/analyticsreporting:v4/Pivot/dimensionFilterClauses/dimension_filter_clause": dimension_filter_clause +"/analyticsreporting:v4/Pivot/startGroup": start_group +"/analyticsreporting:v4/DateRangeValues": date_range_values +"/analyticsreporting:v4/DateRangeValues/values": values +"/analyticsreporting:v4/DateRangeValues/values/value": value +"/analyticsreporting:v4/DateRangeValues/pivotValueRegions": pivot_value_regions +"/analyticsreporting:v4/DateRangeValues/pivotValueRegions/pivot_value_region": pivot_value_region +"/analyticsreporting:v4/MetricFilterClause": metric_filter_clause +"/analyticsreporting:v4/MetricFilterClause/operator": operator +"/analyticsreporting:v4/MetricFilterClause/filters": filters +"/analyticsreporting:v4/MetricFilterClause/filters/filter": filter +"/analyticsreporting:v4/Segment": segment +"/analyticsreporting:v4/Segment/dynamicSegment": dynamic_segment +"/analyticsreporting:v4/Segment/segmentId": segment_id +"/analyticsreporting:v4/DateRange": date_range +"/analyticsreporting:v4/DateRange/startDate": start_date +"/analyticsreporting:v4/DateRange/endDate": end_date +"/analyticsreporting:v4/ReportRow": report_row +"/analyticsreporting:v4/ReportRow/dimensions": dimensions +"/analyticsreporting:v4/ReportRow/dimensions/dimension": dimension +"/analyticsreporting:v4/ReportRow/metrics": metrics +"/analyticsreporting:v4/ReportRow/metrics/metric": metric +"/analyticsreporting:v4/CohortGroup": cohort_group +"/analyticsreporting:v4/CohortGroup/lifetimeValue": lifetime_value +"/analyticsreporting:v4/CohortGroup/cohorts": cohorts +"/analyticsreporting:v4/CohortGroup/cohorts/cohort": cohort +"/analyticsreporting:v4/GetReportsResponse": get_reports_response +"/analyticsreporting:v4/GetReportsResponse/reports": reports +"/analyticsreporting:v4/GetReportsResponse/reports/report": report +"/analyticsreporting:v4/MetricHeaderEntry": metric_header_entry +"/analyticsreporting:v4/MetricHeaderEntry/type": type +"/analyticsreporting:v4/MetricHeaderEntry/name": name +"/analyticsreporting:v4/MetricFilter": metric_filter +"/analyticsreporting:v4/MetricFilter/metricName": metric_name +"/analyticsreporting:v4/MetricFilter/operator": operator +"/analyticsreporting:v4/MetricFilter/comparisonValue": comparison_value +"/analyticsreporting:v4/MetricFilter/not": not +"/analyticsreporting:v4/Dimension": dimension +"/analyticsreporting:v4/Dimension/histogramBuckets": histogram_buckets +"/analyticsreporting:v4/Dimension/histogramBuckets/histogram_bucket": histogram_bucket +"/analyticsreporting:v4/Dimension/name": name +"/analyticsreporting:v4/PivotValueRegion": pivot_value_region +"/analyticsreporting:v4/PivotValueRegion/values": values +"/analyticsreporting:v4/PivotValueRegion/values/value": value "/androidenterprise:v1/fields": fields "/androidenterprise:v1/key": key "/androidenterprise:v1/quotaUser": quota_user @@ -7329,6 +7566,13 @@ "/androidenterprise:v1/androidenterprise.products.getAppRestrictionsSchema/productId": product_id "/androidenterprise:v1/androidenterprise.products.getPermissions/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.products.getPermissions/productId": product_id +"/androidenterprise:v1/androidenterprise.products.list": list_products +"/androidenterprise:v1/androidenterprise.products.list/approved": approved +"/androidenterprise:v1/androidenterprise.products.list/enterpriseId": enterprise_id +"/androidenterprise:v1/androidenterprise.products.list/language": language +"/androidenterprise:v1/androidenterprise.products.list/maxResults": max_results +"/androidenterprise:v1/androidenterprise.products.list/query": query +"/androidenterprise:v1/androidenterprise.products.list/token": token "/androidenterprise:v1/androidenterprise.products.updatePermissions/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.products.updatePermissions/productId": product_id "/androidenterprise:v1/androidenterprise.storelayoutclusters.delete": delete_storelayoutcluster @@ -7479,6 +7723,10 @@ "/androidenterprise:v1/LocalizedText": localized_text "/androidenterprise:v1/LocalizedText/locale": locale "/androidenterprise:v1/LocalizedText/text": text +"/androidenterprise:v1/PageInfo": page_info +"/androidenterprise:v1/PageInfo/resultPerPage": result_per_page +"/androidenterprise:v1/PageInfo/startIndex": start_index +"/androidenterprise:v1/PageInfo/totalResults": total_results "/androidenterprise:v1/Permission": permission "/androidenterprise:v1/Permission/description": description "/androidenterprise:v1/Permission/kind": kind @@ -7512,6 +7760,12 @@ "/androidenterprise:v1/ProductSet/productId/product_id": product_id "/androidenterprise:v1/ProductsApproveRequest/approvalUrlInfo": approval_url_info "/androidenterprise:v1/ProductsGenerateApprovalUrlResponse/url": url +"/androidenterprise:v1/ProductsListResponse": products_list_response +"/androidenterprise:v1/ProductsListResponse/kind": kind +"/androidenterprise:v1/ProductsListResponse/pageInfo": page_info +"/androidenterprise:v1/ProductsListResponse/product": product +"/androidenterprise:v1/ProductsListResponse/product/product": product +"/androidenterprise:v1/ProductsListResponse/tokenPagination": token_pagination "/androidenterprise:v1/StoreCluster": store_cluster "/androidenterprise:v1/StoreCluster/id": id "/androidenterprise:v1/StoreCluster/kind": kind @@ -7538,6 +7792,9 @@ "/androidenterprise:v1/StorePage/link/link": link "/androidenterprise:v1/StorePage/name": name "/androidenterprise:v1/StorePage/name/name": name +"/androidenterprise:v1/TokenPagination": token_pagination +"/androidenterprise:v1/TokenPagination/nextPageToken": next_page_token +"/androidenterprise:v1/TokenPagination/previousPageToken": previous_page_token "/androidenterprise:v1/User": user "/androidenterprise:v1/User/id": id "/androidenterprise:v1/User/kind": kind @@ -8067,6 +8324,7 @@ "/autoscaler:v1beta2/Operation": operation "/autoscaler:v1beta2/Operation/clientOperationId": client_operation_id "/autoscaler:v1beta2/Operation/creationTimestamp": creation_timestamp +"/autoscaler:v1beta2/Operation/description": description "/autoscaler:v1beta2/Operation/endTime": end_time "/autoscaler:v1beta2/Operation/error": error "/autoscaler:v1beta2/Operation/error/errors": errors @@ -8112,12 +8370,6 @@ "/autoscaler:v1beta2/Zone/description": description "/autoscaler:v1beta2/Zone/id": id "/autoscaler:v1beta2/Zone/kind": kind -"/autoscaler:v1beta2/Zone/maintenanceWindows": maintenance_windows -"/autoscaler:v1beta2/Zone/maintenanceWindows/maintenance_window": maintenance_window -"/autoscaler:v1beta2/Zone/maintenanceWindows/maintenance_window/beginTime": begin_time -"/autoscaler:v1beta2/Zone/maintenanceWindows/maintenance_window/description": description -"/autoscaler:v1beta2/Zone/maintenanceWindows/maintenance_window/endTime": end_time -"/autoscaler:v1beta2/Zone/maintenanceWindows/maintenance_window/name": name "/autoscaler:v1beta2/Zone/name": name "/autoscaler:v1beta2/Zone/region": region "/autoscaler:v1beta2/Zone/selfLink": self_link @@ -8299,6 +8551,7 @@ "/bigquery:v2/ExternalDataConfiguration/bigtableOptions": bigtable_options "/bigquery:v2/ExternalDataConfiguration/compression": compression "/bigquery:v2/ExternalDataConfiguration/csvOptions": csv_options +"/bigquery:v2/ExternalDataConfiguration/googleSheetsOptions": google_sheets_options "/bigquery:v2/ExternalDataConfiguration/ignoreUnknownValues": ignore_unknown_values "/bigquery:v2/ExternalDataConfiguration/maxBadRecords": max_bad_records "/bigquery:v2/ExternalDataConfiguration/schema": schema @@ -8319,9 +8572,8 @@ "/bigquery:v2/GetQueryResultsResponse/schema": schema "/bigquery:v2/GetQueryResultsResponse/totalBytesProcessed": total_bytes_processed "/bigquery:v2/GetQueryResultsResponse/totalRows": total_rows -"/bigquery:v2/IntervalPartitionConfiguration": interval_partition_configuration -"/bigquery:v2/IntervalPartitionConfiguration/expirationMs": expiration_ms -"/bigquery:v2/IntervalPartitionConfiguration/type": type +"/bigquery:v2/GoogleSheetsOptions": google_sheets_options +"/bigquery:v2/GoogleSheetsOptions/skipLeadingRows": skip_leading_rows "/bigquery:v2/Job": job "/bigquery:v2/Job/configuration": configuration "/bigquery:v2/Job/etag": etag @@ -8352,6 +8604,7 @@ "/bigquery:v2/JobConfigurationLoad": job_configuration_load "/bigquery:v2/JobConfigurationLoad/allowJaggedRows": allow_jagged_rows "/bigquery:v2/JobConfigurationLoad/allowQuotedNewlines": allow_quoted_newlines +"/bigquery:v2/JobConfigurationLoad/autodetect": autodetect "/bigquery:v2/JobConfigurationLoad/createDisposition": create_disposition "/bigquery:v2/JobConfigurationLoad/destinationTable": destination_table "/bigquery:v2/JobConfigurationLoad/encoding": encoding @@ -8426,6 +8679,7 @@ "/bigquery:v2/JobStatistics2/queryPlan/query_plan": query_plan "/bigquery:v2/JobStatistics2/referencedTables": referenced_tables "/bigquery:v2/JobStatistics2/referencedTables/referenced_table": referenced_table +"/bigquery:v2/JobStatistics2/schema": schema "/bigquery:v2/JobStatistics2/totalBytesBilled": total_bytes_billed "/bigquery:v2/JobStatistics2/totalBytesProcessed": total_bytes_processed "/bigquery:v2/JobStatistics3": job_statistics3 @@ -8497,13 +8751,13 @@ "/bigquery:v2/Table/lastModifiedTime": last_modified_time "/bigquery:v2/Table/location": location "/bigquery:v2/Table/numBytes": num_bytes +"/bigquery:v2/Table/numLongTermBytes": num_long_term_bytes "/bigquery:v2/Table/numRows": num_rows -"/bigquery:v2/Table/partitionConfigurations": partition_configurations -"/bigquery:v2/Table/partitionConfigurations/partition_configuration": partition_configuration "/bigquery:v2/Table/schema": schema "/bigquery:v2/Table/selfLink": self_link "/bigquery:v2/Table/streamingBuffer": streaming_buffer "/bigquery:v2/Table/tableReference": table_reference +"/bigquery:v2/Table/timePartitioning": time_partitioning "/bigquery:v2/Table/type": type "/bigquery:v2/Table/view": view "/bigquery:v2/TableCell": table_cell @@ -8548,8 +8802,6 @@ "/bigquery:v2/TableList/tables/table/tableReference": table_reference "/bigquery:v2/TableList/tables/table/type": type "/bigquery:v2/TableList/totalItems": total_items -"/bigquery:v2/TablePartitionConfiguration": table_partition_configuration -"/bigquery:v2/TablePartitionConfiguration/interval": interval "/bigquery:v2/TableReference": table_reference "/bigquery:v2/TableReference/datasetId": dataset_id "/bigquery:v2/TableReference/projectId": project_id @@ -8560,6 +8812,9 @@ "/bigquery:v2/TableSchema": table_schema "/bigquery:v2/TableSchema/fields": fields "/bigquery:v2/TableSchema/fields/field": field +"/bigquery:v2/TimePartitioning": time_partitioning +"/bigquery:v2/TimePartitioning/expirationMs": expiration_ms +"/bigquery:v2/TimePartitioning/type": type "/bigquery:v2/UserDefinedFunctionResource": user_defined_function_resource "/bigquery:v2/UserDefinedFunctionResource/inlineCode": inline_code "/bigquery:v2/UserDefinedFunctionResource/resourceUri": resource_uri @@ -10230,25 +10485,25 @@ "/cloudbuild:v1/key": key "/cloudbuild:v1/quotaUser": quota_user "/cloudbuild:v1/fields": fields -"/cloudbuild:v1/cloudbuild.projects.builds.get": get_project_build -"/cloudbuild:v1/cloudbuild.projects.builds.get/id": id -"/cloudbuild:v1/cloudbuild.projects.builds.get/projectId": project_id "/cloudbuild:v1/cloudbuild.projects.builds.create": create_project_build "/cloudbuild:v1/cloudbuild.projects.builds.create/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.builds.get": get_project_build +"/cloudbuild:v1/cloudbuild.projects.builds.get/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.builds.get/id": id "/cloudbuild:v1/cloudbuild.projects.builds.list": list_project_builds "/cloudbuild:v1/cloudbuild.projects.builds.list/pageSize": page_size -"/cloudbuild:v1/cloudbuild.projects.builds.list/pageToken": page_token "/cloudbuild:v1/cloudbuild.projects.builds.list/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.builds.list/pageToken": page_token "/cloudbuild:v1/cloudbuild.projects.builds.cancel": cancel_build -"/cloudbuild:v1/cloudbuild.projects.builds.cancel/id": id "/cloudbuild:v1/cloudbuild.projects.builds.cancel/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.builds.cancel/id": id "/cloudbuild:v1/cloudbuild.operations.get": get_operation "/cloudbuild:v1/cloudbuild.operations.get/name": name "/cloudbuild:v1/cloudbuild.operations.list": list_operations "/cloudbuild:v1/cloudbuild.operations.list/pageSize": page_size "/cloudbuild:v1/cloudbuild.operations.list/filter": filter -"/cloudbuild:v1/cloudbuild.operations.list/pageToken": page_token "/cloudbuild:v1/cloudbuild.operations.list/name": name +"/cloudbuild:v1/cloudbuild.operations.list/pageToken": page_token "/cloudbuild:v1/Status": status "/cloudbuild:v1/Status/code": code "/cloudbuild:v1/Status/details": details @@ -10262,17 +10517,17 @@ "/cloudbuild:v1/Operation": operation "/cloudbuild:v1/Operation/error": error "/cloudbuild:v1/Operation/done": done -"/cloudbuild:v1/Operation/response": response -"/cloudbuild:v1/Operation/response/response": response "/cloudbuild:v1/Operation/metadata": metadata "/cloudbuild:v1/Operation/metadata/metadatum": metadatum +"/cloudbuild:v1/Operation/response": response +"/cloudbuild:v1/Operation/response/response": response "/cloudbuild:v1/Operation/name": name "/cloudbuild:v1/BuiltImage": built_image "/cloudbuild:v1/BuiltImage/digest": digest "/cloudbuild:v1/BuiltImage/name": name "/cloudbuild:v1/StorageSource": storage_source -"/cloudbuild:v1/StorageSource/generation": generation "/cloudbuild:v1/StorageSource/bucket": bucket +"/cloudbuild:v1/StorageSource/generation": generation "/cloudbuild:v1/StorageSource/object": object "/cloudbuild:v1/Results": results "/cloudbuild:v1/Results/images": images @@ -10287,6 +10542,7 @@ "/cloudbuild:v1/Build/steps/step": step "/cloudbuild:v1/Build/source": source "/cloudbuild:v1/Build/createTime": create_time +"/cloudbuild:v1/Build/statusDetail": status_detail "/cloudbuild:v1/Build/images": images "/cloudbuild:v1/Build/images/image": image "/cloudbuild:v1/Build/startTime": start_time @@ -10301,9 +10557,9 @@ "/cloudbuild:v1/BuildStep/args": args "/cloudbuild:v1/BuildStep/args/arg": arg "/cloudbuild:v1/BuildStep/dir": dir +"/cloudbuild:v1/BuildStep/name": name "/cloudbuild:v1/BuildStep/env": env "/cloudbuild:v1/BuildStep/env/env": env -"/cloudbuild:v1/BuildStep/name": name "/cloudbuild:v1/ListBuildsResponse": list_builds_response "/cloudbuild:v1/ListBuildsResponse/nextPageToken": next_page_token "/cloudbuild:v1/ListBuildsResponse/builds": builds @@ -10897,6 +11153,9 @@ "/compute:v1/compute.images.get": get_image "/compute:v1/compute.images.get/image": image "/compute:v1/compute.images.get/project": project +"/compute:v1/compute.images.getFromFamily": get_image_from_family +"/compute:v1/compute.images.getFromFamily/family": family +"/compute:v1/compute.images.getFromFamily/project": project "/compute:v1/compute.images.insert": insert_image "/compute:v1/compute.images.insert/project": project "/compute:v1/compute.images.list": list_images @@ -11719,6 +11978,7 @@ "/compute:v1/Image/deprecated": deprecated "/compute:v1/Image/description": description "/compute:v1/Image/diskSizeGb": disk_size_gb +"/compute:v1/Image/family": family "/compute:v1/Image/id": id "/compute:v1/Image/kind": kind "/compute:v1/Image/licenses": licenses @@ -18874,6 +19134,7 @@ "/games:v1/Player/name/givenName": given_name "/games:v1/Player/originalPlayerId": original_player_id "/games:v1/Player/playerId": player_id +"/games:v1/Player/profileSettings": profile_settings "/games:v1/Player/title": title "/games:v1/PlayerAchievement": player_achievement "/games:v1/PlayerAchievement/achievementState": achievement_state @@ -18948,6 +19209,9 @@ "/games:v1/PlayerScoreSubmissionList/kind": kind "/games:v1/PlayerScoreSubmissionList/scores": scores "/games:v1/PlayerScoreSubmissionList/scores/score": score +"/games:v1/ProfileSettings": profile_settings +"/games:v1/ProfileSettings/kind": kind +"/games:v1/ProfileSettings/profileVisible": profile_visible "/games:v1/PushToken": push_token "/games:v1/PushToken/clientRevision": client_revision "/games:v1/PushToken/id": id @@ -19398,6 +19662,7 @@ "/gamesManagement:v1management/Player/name/givenName": given_name "/gamesManagement:v1management/Player/originalPlayerId": original_player_id "/gamesManagement:v1management/Player/playerId": player_id +"/gamesManagement:v1management/Player/profileSettings": profile_settings "/gamesManagement:v1management/Player/title": title "/gamesManagement:v1management/PlayerScoreResetAllResponse": player_score_reset_all_response "/gamesManagement:v1management/PlayerScoreResetAllResponse/kind": kind @@ -19408,6 +19673,9 @@ "/gamesManagement:v1management/PlayerScoreResetResponse/kind": kind "/gamesManagement:v1management/PlayerScoreResetResponse/resetScoreTimeSpans": reset_score_time_spans "/gamesManagement:v1management/PlayerScoreResetResponse/resetScoreTimeSpans/reset_score_time_span": reset_score_time_span +"/gamesManagement:v1management/ProfileSettings": profile_settings +"/gamesManagement:v1management/ProfileSettings/kind": kind +"/gamesManagement:v1management/ProfileSettings/profileVisible": profile_visible "/gamesManagement:v1management/QuestsResetMultipleForAllRequest": quests_reset_multiple_for_all_request "/gamesManagement:v1management/QuestsResetMultipleForAllRequest/kind": kind "/gamesManagement:v1management/QuestsResetMultipleForAllRequest/quest_ids": quest_ids @@ -19416,320 +19684,6 @@ "/gamesManagement:v1management/ScoresResetMultipleForAllRequest/kind": kind "/gamesManagement:v1management/ScoresResetMultipleForAllRequest/leaderboard_ids": leaderboard_ids "/gamesManagement:v1management/ScoresResetMultipleForAllRequest/leaderboard_ids/leaderboard_id": leaderboard_id -"/gan:v1beta1/fields": fields -"/gan:v1beta1/key": key -"/gan:v1beta1/quotaUser": quota_user -"/gan:v1beta1/userIp": user_ip -"/gan:v1beta1/gan.advertisers.get": get_advertiser -"/gan:v1beta1/gan.advertisers.get/advertiserId": advertiser_id -"/gan:v1beta1/gan.advertisers.get/role": role -"/gan:v1beta1/gan.advertisers.get/roleId": role_id -"/gan:v1beta1/gan.advertisers.list": list_advertisers -"/gan:v1beta1/gan.advertisers.list/advertiserCategory": advertiser_category -"/gan:v1beta1/gan.advertisers.list/maxResults": max_results -"/gan:v1beta1/gan.advertisers.list/minNinetyDayEpc": min_ninety_day_epc -"/gan:v1beta1/gan.advertisers.list/minPayoutRank": min_payout_rank -"/gan:v1beta1/gan.advertisers.list/minSevenDayEpc": min_seven_day_epc -"/gan:v1beta1/gan.advertisers.list/pageToken": page_token -"/gan:v1beta1/gan.advertisers.list/relationshipStatus": relationship_status -"/gan:v1beta1/gan.advertisers.list/role": role -"/gan:v1beta1/gan.advertisers.list/roleId": role_id -"/gan:v1beta1/gan.ccOffers.list": list_cc_offers -"/gan:v1beta1/gan.ccOffers.list/advertiser": advertiser -"/gan:v1beta1/gan.ccOffers.list/projection": projection -"/gan:v1beta1/gan.ccOffers.list/publisher": publisher -"/gan:v1beta1/gan.events.list": list_events -"/gan:v1beta1/gan.events.list/advertiserId": advertiser_id -"/gan:v1beta1/gan.events.list/chargeType": charge_type -"/gan:v1beta1/gan.events.list/eventDateMax": event_date_max -"/gan:v1beta1/gan.events.list/eventDateMin": event_date_min -"/gan:v1beta1/gan.events.list/linkId": link_id -"/gan:v1beta1/gan.events.list/maxResults": max_results -"/gan:v1beta1/gan.events.list/memberId": member_id -"/gan:v1beta1/gan.events.list/modifyDateMax": modify_date_max -"/gan:v1beta1/gan.events.list/modifyDateMin": modify_date_min -"/gan:v1beta1/gan.events.list/orderId": order_id -"/gan:v1beta1/gan.events.list/pageToken": page_token -"/gan:v1beta1/gan.events.list/productCategory": product_category -"/gan:v1beta1/gan.events.list/publisherId": publisher_id -"/gan:v1beta1/gan.events.list/role": role -"/gan:v1beta1/gan.events.list/roleId": role_id -"/gan:v1beta1/gan.events.list/sku": sku -"/gan:v1beta1/gan.events.list/status": status -"/gan:v1beta1/gan.events.list/type": type -"/gan:v1beta1/gan.links.get": get_link -"/gan:v1beta1/gan.links.get/linkId": link_id -"/gan:v1beta1/gan.links.get/role": role -"/gan:v1beta1/gan.links.get/roleId": role_id -"/gan:v1beta1/gan.links.insert": insert_link -"/gan:v1beta1/gan.links.insert/role": role -"/gan:v1beta1/gan.links.insert/roleId": role_id -"/gan:v1beta1/gan.links.list": list_links -"/gan:v1beta1/gan.links.list/advertiserId": advertiser_id -"/gan:v1beta1/gan.links.list/assetSize": asset_size -"/gan:v1beta1/gan.links.list/authorship": authorship -"/gan:v1beta1/gan.links.list/createDateMax": create_date_max -"/gan:v1beta1/gan.links.list/createDateMin": create_date_min -"/gan:v1beta1/gan.links.list/linkType": link_type -"/gan:v1beta1/gan.links.list/maxResults": max_results -"/gan:v1beta1/gan.links.list/pageToken": page_token -"/gan:v1beta1/gan.links.list/promotionType": promotion_type -"/gan:v1beta1/gan.links.list/relationshipStatus": relationship_status -"/gan:v1beta1/gan.links.list/role": role -"/gan:v1beta1/gan.links.list/roleId": role_id -"/gan:v1beta1/gan.links.list/searchText": search_text -"/gan:v1beta1/gan.links.list/startDateMax": start_date_max -"/gan:v1beta1/gan.links.list/startDateMin": start_date_min -"/gan:v1beta1/gan.publishers.get": get_publisher -"/gan:v1beta1/gan.publishers.get/publisherId": publisher_id -"/gan:v1beta1/gan.publishers.get/role": role -"/gan:v1beta1/gan.publishers.get/roleId": role_id -"/gan:v1beta1/gan.publishers.list": list_publishers -"/gan:v1beta1/gan.publishers.list/maxResults": max_results -"/gan:v1beta1/gan.publishers.list/minNinetyDayEpc": min_ninety_day_epc -"/gan:v1beta1/gan.publishers.list/minPayoutRank": min_payout_rank -"/gan:v1beta1/gan.publishers.list/minSevenDayEpc": min_seven_day_epc -"/gan:v1beta1/gan.publishers.list/pageToken": page_token -"/gan:v1beta1/gan.publishers.list/publisherCategory": publisher_category -"/gan:v1beta1/gan.publishers.list/relationshipStatus": relationship_status -"/gan:v1beta1/gan.publishers.list/role": role -"/gan:v1beta1/gan.publishers.list/roleId": role_id -"/gan:v1beta1/gan.reports.get": get_report -"/gan:v1beta1/gan.reports.get/advertiserId": advertiser_id -"/gan:v1beta1/gan.reports.get/calculateTotals": calculate_totals -"/gan:v1beta1/gan.reports.get/endDate": end_date -"/gan:v1beta1/gan.reports.get/eventType": event_type -"/gan:v1beta1/gan.reports.get/linkId": link_id -"/gan:v1beta1/gan.reports.get/maxResults": max_results -"/gan:v1beta1/gan.reports.get/orderId": order_id -"/gan:v1beta1/gan.reports.get/publisherId": publisher_id -"/gan:v1beta1/gan.reports.get/reportType": report_type -"/gan:v1beta1/gan.reports.get/role": role -"/gan:v1beta1/gan.reports.get/roleId": role_id -"/gan:v1beta1/gan.reports.get/startDate": start_date -"/gan:v1beta1/gan.reports.get/startIndex": start_index -"/gan:v1beta1/gan.reports.get/status": status -"/gan:v1beta1/Advertiser": advertiser -"/gan:v1beta1/Advertiser/allowPublisherCreatedLinks": allow_publisher_created_links -"/gan:v1beta1/Advertiser/category": category -"/gan:v1beta1/Advertiser/commissionDuration": commission_duration -"/gan:v1beta1/Advertiser/contactEmail": contact_email -"/gan:v1beta1/Advertiser/contactPhone": contact_phone -"/gan:v1beta1/Advertiser/defaultLinkId": default_link_id -"/gan:v1beta1/Advertiser/description": description -"/gan:v1beta1/Advertiser/epcNinetyDayAverage": epc_ninety_day_average -"/gan:v1beta1/Advertiser/epcSevenDayAverage": epc_seven_day_average -"/gan:v1beta1/Advertiser/id": id -"/gan:v1beta1/Advertiser/item": item -"/gan:v1beta1/Advertiser/joinDate": join_date -"/gan:v1beta1/Advertiser/kind": kind -"/gan:v1beta1/Advertiser/logoUrl": logo_url -"/gan:v1beta1/Advertiser/merchantCenterIds": merchant_center_ids -"/gan:v1beta1/Advertiser/merchantCenterIds/merchant_center_id": merchant_center_id -"/gan:v1beta1/Advertiser/name": name -"/gan:v1beta1/Advertiser/payoutRank": payout_rank -"/gan:v1beta1/Advertiser/productFeedsEnabled": product_feeds_enabled -"/gan:v1beta1/Advertiser/redirectDomains": redirect_domains -"/gan:v1beta1/Advertiser/redirectDomains/redirect_domain": redirect_domain -"/gan:v1beta1/Advertiser/siteUrl": site_url -"/gan:v1beta1/Advertiser/status": status -"/gan:v1beta1/Advertisers": advertisers -"/gan:v1beta1/Advertisers/items": items -"/gan:v1beta1/Advertisers/items/item": item -"/gan:v1beta1/Advertisers/kind": kind -"/gan:v1beta1/Advertisers/nextPageToken": next_page_token -"/gan:v1beta1/CcOffer": cc_offer -"/gan:v1beta1/CcOffer/additionalCardBenefits": additional_card_benefits -"/gan:v1beta1/CcOffer/additionalCardBenefits/additional_card_benefit": additional_card_benefit -"/gan:v1beta1/CcOffer/additionalCardHolderFee": additional_card_holder_fee -"/gan:v1beta1/CcOffer/ageMinimum": age_minimum -"/gan:v1beta1/CcOffer/ageMinimumDetails": age_minimum_details -"/gan:v1beta1/CcOffer/annualFee": annual_fee -"/gan:v1beta1/CcOffer/annualFeeDisplay": annual_fee_display -"/gan:v1beta1/CcOffer/annualRewardMaximum": annual_reward_maximum -"/gan:v1beta1/CcOffer/approvedCategories": approved_categories -"/gan:v1beta1/CcOffer/approvedCategories/approved_category": approved_category -"/gan:v1beta1/CcOffer/aprDisplay": apr_display -"/gan:v1beta1/CcOffer/balanceComputationMethod": balance_computation_method -"/gan:v1beta1/CcOffer/balanceTransferTerms": balance_transfer_terms -"/gan:v1beta1/CcOffer/bonusRewards": bonus_rewards -"/gan:v1beta1/CcOffer/bonusRewards/bonus_reward": bonus_reward -"/gan:v1beta1/CcOffer/bonusRewards/bonus_reward/amount": amount -"/gan:v1beta1/CcOffer/bonusRewards/bonus_reward/details": details -"/gan:v1beta1/CcOffer/carRentalInsurance": car_rental_insurance -"/gan:v1beta1/CcOffer/cardBenefits": card_benefits -"/gan:v1beta1/CcOffer/cardBenefits/card_benefit": card_benefit -"/gan:v1beta1/CcOffer/cardName": card_name -"/gan:v1beta1/CcOffer/cardType": card_type -"/gan:v1beta1/CcOffer/cashAdvanceTerms": cash_advance_terms -"/gan:v1beta1/CcOffer/creditLimitMax": credit_limit_max -"/gan:v1beta1/CcOffer/creditLimitMin": credit_limit_min -"/gan:v1beta1/CcOffer/creditRatingDisplay": credit_rating_display -"/gan:v1beta1/CcOffer/defaultFees": default_fees -"/gan:v1beta1/CcOffer/defaultFees/default_fee": default_fee -"/gan:v1beta1/CcOffer/defaultFees/default_fee/category": category -"/gan:v1beta1/CcOffer/defaultFees/default_fee/maxRate": max_rate -"/gan:v1beta1/CcOffer/defaultFees/default_fee/minRate": min_rate -"/gan:v1beta1/CcOffer/defaultFees/default_fee/rateType": rate_type -"/gan:v1beta1/CcOffer/disclaimer": disclaimer -"/gan:v1beta1/CcOffer/emergencyInsurance": emergency_insurance -"/gan:v1beta1/CcOffer/existingCustomerOnly": existing_customer_only -"/gan:v1beta1/CcOffer/extendedWarranty": extended_warranty -"/gan:v1beta1/CcOffer/firstYearAnnualFee": first_year_annual_fee -"/gan:v1beta1/CcOffer/flightAccidentInsurance": flight_accident_insurance -"/gan:v1beta1/CcOffer/foreignCurrencyTransactionFee": foreign_currency_transaction_fee -"/gan:v1beta1/CcOffer/fraudLiability": fraud_liability -"/gan:v1beta1/CcOffer/gracePeriodDisplay": grace_period_display -"/gan:v1beta1/CcOffer/imageUrl": image_url -"/gan:v1beta1/CcOffer/initialSetupAndProcessingFee": initial_setup_and_processing_fee -"/gan:v1beta1/CcOffer/introBalanceTransferTerms": intro_balance_transfer_terms -"/gan:v1beta1/CcOffer/introCashAdvanceTerms": intro_cash_advance_terms -"/gan:v1beta1/CcOffer/introPurchaseTerms": intro_purchase_terms -"/gan:v1beta1/CcOffer/issuer": issuer -"/gan:v1beta1/CcOffer/issuerId": issuer_id -"/gan:v1beta1/CcOffer/issuerWebsite": issuer_website -"/gan:v1beta1/CcOffer/kind": kind -"/gan:v1beta1/CcOffer/landingPageUrl": landing_page_url -"/gan:v1beta1/CcOffer/latePaymentFee": late_payment_fee -"/gan:v1beta1/CcOffer/luggageInsurance": luggage_insurance -"/gan:v1beta1/CcOffer/maxPurchaseRate": max_purchase_rate -"/gan:v1beta1/CcOffer/minPurchaseRate": min_purchase_rate -"/gan:v1beta1/CcOffer/minimumFinanceCharge": minimum_finance_charge -"/gan:v1beta1/CcOffer/network": network -"/gan:v1beta1/CcOffer/offerId": offer_id -"/gan:v1beta1/CcOffer/offersImmediateCashReward": offers_immediate_cash_reward -"/gan:v1beta1/CcOffer/overLimitFee": over_limit_fee -"/gan:v1beta1/CcOffer/prohibitedCategories": prohibited_categories -"/gan:v1beta1/CcOffer/prohibitedCategories/prohibited_category": prohibited_category -"/gan:v1beta1/CcOffer/purchaseRateAdditionalDetails": purchase_rate_additional_details -"/gan:v1beta1/CcOffer/purchaseRateType": purchase_rate_type -"/gan:v1beta1/CcOffer/returnedPaymentFee": returned_payment_fee -"/gan:v1beta1/CcOffer/rewardPartner": reward_partner -"/gan:v1beta1/CcOffer/rewardUnit": reward_unit -"/gan:v1beta1/CcOffer/rewards": rewards -"/gan:v1beta1/CcOffer/rewards/reward": reward -"/gan:v1beta1/CcOffer/rewards/reward/additionalDetails": additional_details -"/gan:v1beta1/CcOffer/rewards/reward/amount": amount -"/gan:v1beta1/CcOffer/rewards/reward/category": category -"/gan:v1beta1/CcOffer/rewards/reward/expirationMonths": expiration_months -"/gan:v1beta1/CcOffer/rewards/reward/maxRewardTier": max_reward_tier -"/gan:v1beta1/CcOffer/rewards/reward/minRewardTier": min_reward_tier -"/gan:v1beta1/CcOffer/rewardsExpire": rewards_expire -"/gan:v1beta1/CcOffer/rewardsHaveBlackoutDates": rewards_have_blackout_dates -"/gan:v1beta1/CcOffer/statementCopyFee": statement_copy_fee -"/gan:v1beta1/CcOffer/trackingUrl": tracking_url -"/gan:v1beta1/CcOffer/travelInsurance": travel_insurance -"/gan:v1beta1/CcOffer/variableRatesLastUpdated": variable_rates_last_updated -"/gan:v1beta1/CcOffer/variableRatesUpdateFrequency": variable_rates_update_frequency -"/gan:v1beta1/CcOffers": cc_offers -"/gan:v1beta1/CcOffers/items": items -"/gan:v1beta1/CcOffers/items/item": item -"/gan:v1beta1/CcOffers/kind": kind -"/gan:v1beta1/Event": event -"/gan:v1beta1/Event/advertiserId": advertiser_id -"/gan:v1beta1/Event/advertiserName": advertiser_name -"/gan:v1beta1/Event/chargeId": charge_id -"/gan:v1beta1/Event/chargeType": charge_type -"/gan:v1beta1/Event/commissionableSales": commissionable_sales -"/gan:v1beta1/Event/earnings": earnings -"/gan:v1beta1/Event/eventDate": event_date -"/gan:v1beta1/Event/kind": kind -"/gan:v1beta1/Event/memberId": member_id -"/gan:v1beta1/Event/modifyDate": modify_date -"/gan:v1beta1/Event/networkFee": network_fee -"/gan:v1beta1/Event/orderId": order_id -"/gan:v1beta1/Event/products": products -"/gan:v1beta1/Event/products/product": product -"/gan:v1beta1/Event/products/product/categoryId": category_id -"/gan:v1beta1/Event/products/product/categoryName": category_name -"/gan:v1beta1/Event/products/product/earnings": earnings -"/gan:v1beta1/Event/products/product/networkFee": network_fee -"/gan:v1beta1/Event/products/product/publisherFee": publisher_fee -"/gan:v1beta1/Event/products/product/quantity": quantity -"/gan:v1beta1/Event/products/product/sku": sku -"/gan:v1beta1/Event/products/product/skuName": sku_name -"/gan:v1beta1/Event/products/product/unitPrice": unit_price -"/gan:v1beta1/Event/publisherFee": publisher_fee -"/gan:v1beta1/Event/publisherId": publisher_id -"/gan:v1beta1/Event/publisherName": publisher_name -"/gan:v1beta1/Event/status": status -"/gan:v1beta1/Event/type": type -"/gan:v1beta1/Events": events -"/gan:v1beta1/Events/items": items -"/gan:v1beta1/Events/items/item": item -"/gan:v1beta1/Events/kind": kind -"/gan:v1beta1/Events/nextPageToken": next_page_token -"/gan:v1beta1/Link": link -"/gan:v1beta1/Link/advertiserId": advertiser_id -"/gan:v1beta1/Link/authorship": authorship -"/gan:v1beta1/Link/availability": availability -"/gan:v1beta1/Link/clickTrackingUrl": click_tracking_url -"/gan:v1beta1/Link/createDate": create_date -"/gan:v1beta1/Link/description": description -"/gan:v1beta1/Link/destinationUrl": destination_url -"/gan:v1beta1/Link/duration": duration -"/gan:v1beta1/Link/endDate": end_date -"/gan:v1beta1/Link/epcNinetyDayAverage": epc_ninety_day_average -"/gan:v1beta1/Link/epcSevenDayAverage": epc_seven_day_average -"/gan:v1beta1/Link/id": id -"/gan:v1beta1/Link/imageAltText": image_alt_text -"/gan:v1beta1/Link/impressionTrackingUrl": impression_tracking_url -"/gan:v1beta1/Link/isActive": is_active -"/gan:v1beta1/Link/kind": kind -"/gan:v1beta1/Link/linkType": link_type -"/gan:v1beta1/Link/name": name -"/gan:v1beta1/Link/promotionType": promotion_type -"/gan:v1beta1/Link/specialOffers": special_offers -"/gan:v1beta1/Link/specialOffers/freeGift": free_gift -"/gan:v1beta1/Link/specialOffers/freeShipping": free_shipping -"/gan:v1beta1/Link/specialOffers/freeShippingMin": free_shipping_min -"/gan:v1beta1/Link/specialOffers/percentOff": percent_off -"/gan:v1beta1/Link/specialOffers/percentOffMin": percent_off_min -"/gan:v1beta1/Link/specialOffers/priceCut": price_cut -"/gan:v1beta1/Link/specialOffers/priceCutMin": price_cut_min -"/gan:v1beta1/Link/specialOffers/promotionCodes": promotion_codes -"/gan:v1beta1/Link/specialOffers/promotionCodes/promotion_code": promotion_code -"/gan:v1beta1/Link/startDate": start_date -"/gan:v1beta1/Links": links -"/gan:v1beta1/Links/items": items -"/gan:v1beta1/Links/items/item": item -"/gan:v1beta1/Links/kind": kind -"/gan:v1beta1/Links/nextPageToken": next_page_token -"/gan:v1beta1/Money": money -"/gan:v1beta1/Money/amount": amount -"/gan:v1beta1/Money/currencyCode": currency_code -"/gan:v1beta1/Publisher": publisher -"/gan:v1beta1/Publisher/classification": classification -"/gan:v1beta1/Publisher/epcNinetyDayAverage": epc_ninety_day_average -"/gan:v1beta1/Publisher/epcSevenDayAverage": epc_seven_day_average -"/gan:v1beta1/Publisher/id": id -"/gan:v1beta1/Publisher/item": item -"/gan:v1beta1/Publisher/joinDate": join_date -"/gan:v1beta1/Publisher/kind": kind -"/gan:v1beta1/Publisher/name": name -"/gan:v1beta1/Publisher/payoutRank": payout_rank -"/gan:v1beta1/Publisher/sites": sites -"/gan:v1beta1/Publisher/sites/site": site -"/gan:v1beta1/Publisher/status": status -"/gan:v1beta1/Publishers": publishers -"/gan:v1beta1/Publishers/items": items -"/gan:v1beta1/Publishers/items/item": item -"/gan:v1beta1/Publishers/kind": kind -"/gan:v1beta1/Publishers/nextPageToken": next_page_token -"/gan:v1beta1/Report": report -"/gan:v1beta1/Report/column_names": column_names -"/gan:v1beta1/Report/column_names/column_name": column_name -"/gan:v1beta1/Report/end_date": end_date -"/gan:v1beta1/Report/kind": kind -"/gan:v1beta1/Report/matching_row_count": matching_row_count -"/gan:v1beta1/Report/rows": rows -"/gan:v1beta1/Report/rows/row": row -"/gan:v1beta1/Report/rows/row/row": row -"/gan:v1beta1/Report/start_date": start_date -"/gan:v1beta1/Report/totals_rows": totals_rows -"/gan:v1beta1/Report/totals_rows/totals_row": totals_row -"/gan:v1beta1/Report/totals_rows/totals_row/totals_row": totals_row -"/gan:v1beta1/Report/type": type "/gmail:v1/fields": fields "/gmail:v1/key": key "/gmail:v1/quotaUser": quota_user @@ -20808,6 +20762,24 @@ "/container:v1/container.projects.zones.clusters.delete/projectId": project_id "/container:v1/container.projects.zones.clusters.delete/zone": zone "/container:v1/container.projects.zones.clusters.delete/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.list": list_project_zone_cluster_node_pools +"/container:v1/container.projects.zones.clusters.nodePools.list/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.list/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.list/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.get": get_project_zone_cluster_node_pool +"/container:v1/container.projects.zones.clusters.nodePools.get/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.get/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.get/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.get/nodePoolId": node_pool_id +"/container:v1/container.projects.zones.clusters.nodePools.create": create_node_pool +"/container:v1/container.projects.zones.clusters.nodePools.create/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.create/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.create/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.delete": delete_project_zone_cluster_node_pool +"/container:v1/container.projects.zones.clusters.nodePools.delete/projectId": project_id +"/container:v1/container.projects.zones.clusters.nodePools.delete/zone": zone +"/container:v1/container.projects.zones.clusters.nodePools.delete/clusterId": cluster_id +"/container:v1/container.projects.zones.clusters.nodePools.delete/nodePoolId": node_pool_id "/container:v1/container.projects.zones.operations.list/projectId": project_id "/container:v1/container.projects.zones.operations.list/zone": zone "/container:v1/container.projects.zones.operations.get/projectId": project_id @@ -20830,6 +20802,10 @@ "/container:v1/Cluster/clusterIpv4Cidr": cluster_ipv4_cidr "/container:v1/Cluster/addonsConfig": addons_config "/container:v1/Cluster/subnetwork": subnetwork +"/container:v1/Cluster/nodePools": node_pools +"/container:v1/Cluster/nodePools/node_pool": node_pool +"/container:v1/Cluster/locations": locations +"/container:v1/Cluster/locations/location": location "/container:v1/Cluster/selfLink": self_link "/container:v1/Cluster/zone": zone "/container:v1/Cluster/endpoint": endpoint @@ -20864,6 +20840,16 @@ "/container:v1/HttpLoadBalancing/disabled": disabled "/container:v1/HorizontalPodAutoscaling": horizontal_pod_autoscaling "/container:v1/HorizontalPodAutoscaling/disabled": disabled +"/container:v1/NodePool": node_pool +"/container:v1/NodePool/name": name +"/container:v1/NodePool/config": config +"/container:v1/NodePool/initialNodeCount": initial_node_count +"/container:v1/NodePool/selfLink": self_link +"/container:v1/NodePool/version": version +"/container:v1/NodePool/instanceGroupUrls": instance_group_urls +"/container:v1/NodePool/instanceGroupUrls/instance_group_url": instance_group_url +"/container:v1/NodePool/status": status +"/container:v1/NodePool/statusMessage": status_message "/container:v1/CreateClusterRequest": create_cluster_request "/container:v1/CreateClusterRequest/cluster": cluster "/container:v1/Operation": operation @@ -20881,6 +20867,7 @@ "/container:v1/ClusterUpdate/desiredNodeVersion": desired_node_version "/container:v1/ClusterUpdate/desiredMonitoringService": desired_monitoring_service "/container:v1/ClusterUpdate/desiredAddonsConfig": desired_addons_config +"/container:v1/ClusterUpdate/desiredNodePoolId": desired_node_pool_id "/container:v1/ClusterUpdate/desiredMasterVersion": desired_master_version "/container:v1/ListOperationsResponse": list_operations_response "/container:v1/ListOperationsResponse/operations": operations @@ -20891,13 +20878,17 @@ "/container:v1/ServerConfig/defaultClusterVersion": default_cluster_version "/container:v1/ServerConfig/validNodeVersions": valid_node_versions "/container:v1/ServerConfig/validNodeVersions/valid_node_version": valid_node_version +"/container:v1/ServerConfig/defaultImageFamily": default_image_family +"/container:v1/ServerConfig/validImageFamilies": valid_image_families +"/container:v1/ServerConfig/validImageFamilies/valid_image_family": valid_image_family +"/container:v1/ListNodePoolsResponse": list_node_pools_response +"/container:v1/ListNodePoolsResponse/nodePools": node_pools +"/container:v1/ListNodePoolsResponse/nodePools/node_pool": node_pool +"/container:v1/CreateNodePoolRequest": create_node_pool_request +"/container:v1/CreateNodePoolRequest/nodePool": node_pool "/dataproc:v1/fields": fields "/dataproc:v1/key": key "/dataproc:v1/quotaUser": quota_user -"/dataproc:v1/dataproc.media.upload": upload_medium -"/dataproc:v1/dataproc.media.upload/resourceName": resource_name -"/dataproc:v1/dataproc.media.download": download_medium -"/dataproc:v1/dataproc.media.download/resourceName": resource_name "/dataproc:v1/dataproc.projects.regions.clusters.create/projectId": project_id "/dataproc:v1/dataproc.projects.regions.clusters.create/region": region "/dataproc:v1/dataproc.projects.regions.clusters.patch/projectId": project_id @@ -20944,8 +20935,6 @@ "/dataproc:v1/dataproc.projects.regions.operations.list/pageToken": page_token "/dataproc:v1/dataproc.projects.regions.operations.cancel/name": name "/dataproc:v1/dataproc.projects.regions.operations.delete/name": name -"/dataproc:v1/Media": media -"/dataproc:v1/Media/resourceName": resource_name "/dataproc:v1/Cluster": cluster "/dataproc:v1/Cluster/projectId": project_id "/dataproc:v1/Cluster/clusterName": cluster_name @@ -21598,6 +21587,8 @@ "/genomics:v1/VariantSet/referenceBounds/reference_bound": reference_bound "/genomics:v1/VariantSet/metadata": metadata "/genomics:v1/VariantSet/metadata/metadatum": metadatum +"/genomics:v1/VariantSet/name": name +"/genomics:v1/VariantSet/description": description "/genomics:v1/ReferenceBound": reference_bound "/genomics:v1/ReferenceBound/referenceName": reference_name "/genomics:v1/ReferenceBound/upperBound": upper_bound @@ -21720,6 +21711,7 @@ "/genomics:v1/OperationMetadata": operation_metadata "/genomics:v1/OperationMetadata/projectId": project_id "/genomics:v1/OperationMetadata/createTime": create_time +"/genomics:v1/OperationMetadata/endTime": end_time "/genomics:v1/OperationMetadata/request": request "/genomics:v1/OperationMetadata/request/request": request "/genomics:v1/OperationMetadata/events": events @@ -22453,36 +22445,53 @@ "/proximitybeacon:v1beta1/key": key "/proximitybeacon:v1beta1/quotaUser": quota_user "/proximitybeacon:v1beta1/proximitybeacon.beacons.register": register_beacon +"/proximitybeacon:v1beta1/proximitybeacon.beacons.register/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission": decommission_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.decommission/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.get": get_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.get/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.get/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.list": list_beacons "/proximitybeacon:v1beta1/proximitybeacon.beacons.list/q": q "/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageToken": page_token "/proximitybeacon:v1beta1/proximitybeacon.beacons.list/pageSize": page_size +"/proximitybeacon:v1beta1/proximitybeacon.beacons.list/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.update": update_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.update/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.update/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.activate": activate_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.activate/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate": deactivate_beacon "/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.deactivate/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.create": create_beacon_attachment "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.create/beaconName": beacon_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.create/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list": list_beacon_attachments "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.list/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete": delete_beacon_attachment "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete/attachmentName": attachment_name +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.delete/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete": batch_beacon_attachment_delete "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/namespacedType": namespaced_type +"/proximitybeacon:v1beta1/proximitybeacon.beacons.attachments.batchDelete/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list": list_beacon_diagnostics "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/beaconName": beacon_name "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/pageSize": page_size "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/pageToken": page_token "/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/alertFilter": alert_filter +"/proximitybeacon:v1beta1/proximitybeacon.beacons.diagnostics.list/projectId": project_id "/proximitybeacon:v1beta1/proximitybeacon.namespaces.list": list_namespaces +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.list/projectId": project_id +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update": update_namespace +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update/namespaceName": namespace_name +"/proximitybeacon:v1beta1/proximitybeacon.namespaces.update/projectId": project_id +"/proximitybeacon:v1beta1/proximitybeacon.getEidparams": get_eidparams "/proximitybeacon:v1beta1/proximitybeacon.beaconinfo.getforobserved": getforobserved_beaconinfo "/proximitybeacon:v1beta1/Beacon": beacon "/proximitybeacon:v1beta1/Beacon/beaconName": beacon_name @@ -22495,6 +22504,8 @@ "/proximitybeacon:v1beta1/Beacon/description": description "/proximitybeacon:v1beta1/Beacon/properties": properties "/proximitybeacon:v1beta1/Beacon/properties/property": property +"/proximitybeacon:v1beta1/Beacon/ephemeralIdRegistration": ephemeral_id_registration +"/proximitybeacon:v1beta1/Beacon/provisioningKey": provisioning_key "/proximitybeacon:v1beta1/AdvertisedId": advertised_id "/proximitybeacon:v1beta1/AdvertisedId/type": type "/proximitybeacon:v1beta1/AdvertisedId/id": id @@ -22503,6 +22514,13 @@ "/proximitybeacon:v1beta1/LatLng/longitude": longitude "/proximitybeacon:v1beta1/IndoorLevel": indoor_level "/proximitybeacon:v1beta1/IndoorLevel/name": name +"/proximitybeacon:v1beta1/EphemeralIdRegistration": ephemeral_id_registration +"/proximitybeacon:v1beta1/EphemeralIdRegistration/beaconEcdhPublicKey": beacon_ecdh_public_key +"/proximitybeacon:v1beta1/EphemeralIdRegistration/serviceEcdhPublicKey": service_ecdh_public_key +"/proximitybeacon:v1beta1/EphemeralIdRegistration/beaconIdentityKey": beacon_identity_key +"/proximitybeacon:v1beta1/EphemeralIdRegistration/rotationPeriodExponent": rotation_period_exponent +"/proximitybeacon:v1beta1/EphemeralIdRegistration/initialClockValue": initial_clock_value +"/proximitybeacon:v1beta1/EphemeralIdRegistration/initialEid": initial_eid "/proximitybeacon:v1beta1/Empty": empty "/proximitybeacon:v1beta1/ListBeaconsResponse": list_beacons_response "/proximitybeacon:v1beta1/ListBeaconsResponse/beacons": beacons @@ -22524,6 +22542,10 @@ "/proximitybeacon:v1beta1/Namespace": namespace "/proximitybeacon:v1beta1/Namespace/namespaceName": namespace_name "/proximitybeacon:v1beta1/Namespace/servingVisibility": serving_visibility +"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams": ephemeral_id_registration_params +"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/serviceEcdhPublicKey": service_ecdh_public_key +"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/minRotationPeriodExponent": min_rotation_period_exponent +"/proximitybeacon:v1beta1/EphemeralIdRegistrationParams/maxRotationPeriodExponent": max_rotation_period_exponent "/proximitybeacon:v1beta1/ListDiagnosticsResponse": list_diagnostics_response "/proximitybeacon:v1beta1/ListDiagnosticsResponse/diagnostics": diagnostics "/proximitybeacon:v1beta1/ListDiagnosticsResponse/diagnostics/diagnostic": diagnostic @@ -22552,7 +22574,6 @@ "/proximitybeacon:v1beta1/BeaconInfo": beacon_info "/proximitybeacon:v1beta1/BeaconInfo/advertisedId": advertised_id "/proximitybeacon:v1beta1/BeaconInfo/beaconName": beacon_name -"/proximitybeacon:v1beta1/BeaconInfo/description": description "/proximitybeacon:v1beta1/BeaconInfo/attachments": attachments "/proximitybeacon:v1beta1/BeaconInfo/attachments/attachment": attachment "/proximitybeacon:v1beta1/AttachmentInfo": attachment_info @@ -23049,7 +23070,6 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/idToken": id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/instanceId": instance_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/password": password -"/identitytoolkit:v3/IdentitytoolkitRelyingpartySignupNewUserRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/hashAlgorithm": hash_algorithm "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/memoryCost": memory_cost @@ -23103,12 +23123,14 @@ "/identitytoolkit:v3/SetAccountInfoResponse/expiresIn": expires_in "/identitytoolkit:v3/SetAccountInfoResponse/idToken": id_token "/identitytoolkit:v3/SetAccountInfoResponse/kind": kind +"/identitytoolkit:v3/SetAccountInfoResponse/localId": local_id "/identitytoolkit:v3/SetAccountInfoResponse/newEmail": new_email "/identitytoolkit:v3/SetAccountInfoResponse/passwordHash": password_hash "/identitytoolkit:v3/SetAccountInfoResponse/photoUrl": photo_url "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo": provider_user_info "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info": provider_user_info "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info/displayName": display_name +"/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info/federatedId": federated_id "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info/photoUrl": photo_url "/identitytoolkit:v3/SetAccountInfoResponse/providerUserInfo/provider_user_info/providerId": provider_id "/identitytoolkit:v3/SetAccountInfoResponse/refreshToken": refresh_token @@ -23248,220 +23270,6 @@ "/licensing:v1/LicenseAssignmentList/items/item": item "/licensing:v1/LicenseAssignmentList/kind": kind "/licensing:v1/LicenseAssignmentList/nextPageToken": next_page_token -"/manager:v1beta2/fields": fields -"/manager:v1beta2/key": key -"/manager:v1beta2/quotaUser": quota_user -"/manager:v1beta2/userIp": user_ip -"/manager:v1beta2/manager.deployments.delete": delete_deployment -"/manager:v1beta2/manager.deployments.delete/deploymentName": deployment_name -"/manager:v1beta2/manager.deployments.delete/projectId": project_id -"/manager:v1beta2/manager.deployments.delete/region": region -"/manager:v1beta2/manager.deployments.get": get_deployment -"/manager:v1beta2/manager.deployments.get/deploymentName": deployment_name -"/manager:v1beta2/manager.deployments.get/projectId": project_id -"/manager:v1beta2/manager.deployments.get/region": region -"/manager:v1beta2/manager.deployments.insert": insert_deployment -"/manager:v1beta2/manager.deployments.insert/projectId": project_id -"/manager:v1beta2/manager.deployments.insert/region": region -"/manager:v1beta2/manager.deployments.list": list_deployments -"/manager:v1beta2/manager.deployments.list/maxResults": max_results -"/manager:v1beta2/manager.deployments.list/pageToken": page_token -"/manager:v1beta2/manager.deployments.list/projectId": project_id -"/manager:v1beta2/manager.deployments.list/region": region -"/manager:v1beta2/manager.templates.delete": delete_template -"/manager:v1beta2/manager.templates.delete/projectId": project_id -"/manager:v1beta2/manager.templates.delete/templateName": template_name -"/manager:v1beta2/manager.templates.get": get_template -"/manager:v1beta2/manager.templates.get/projectId": project_id -"/manager:v1beta2/manager.templates.get/templateName": template_name -"/manager:v1beta2/manager.templates.insert": insert_template -"/manager:v1beta2/manager.templates.insert/projectId": project_id -"/manager:v1beta2/manager.templates.list": list_templates -"/manager:v1beta2/manager.templates.list/maxResults": max_results -"/manager:v1beta2/manager.templates.list/pageToken": page_token -"/manager:v1beta2/manager.templates.list/projectId": project_id -"/manager:v1beta2/AccessConfig": access_config -"/manager:v1beta2/AccessConfig/name": name -"/manager:v1beta2/AccessConfig/natIp": nat_ip -"/manager:v1beta2/AccessConfig/type": type -"/manager:v1beta2/Action": action -"/manager:v1beta2/Action/commands": commands -"/manager:v1beta2/Action/commands/command": command -"/manager:v1beta2/Action/timeoutMs": timeout_ms -"/manager:v1beta2/AllowedRule": allowed_rule -"/manager:v1beta2/AllowedRule/IPProtocol": ip_protocol -"/manager:v1beta2/AllowedRule/ports": ports -"/manager:v1beta2/AllowedRule/ports/port": port -"/manager:v1beta2/AutoscalingModule": autoscaling_module -"/manager:v1beta2/AutoscalingModule/coolDownPeriodSec": cool_down_period_sec -"/manager:v1beta2/AutoscalingModule/description": description -"/manager:v1beta2/AutoscalingModule/maxNumReplicas": max_num_replicas -"/manager:v1beta2/AutoscalingModule/minNumReplicas": min_num_replicas -"/manager:v1beta2/AutoscalingModule/signalType": signal_type -"/manager:v1beta2/AutoscalingModule/targetModule": target_module -"/manager:v1beta2/AutoscalingModule/targetUtilization": target_utilization -"/manager:v1beta2/AutoscalingModuleStatus": autoscaling_module_status -"/manager:v1beta2/AutoscalingModuleStatus/autoscalingConfigUrl": autoscaling_config_url -"/manager:v1beta2/DeployState": deploy_state -"/manager:v1beta2/DeployState/details": details -"/manager:v1beta2/DeployState/status": status -"/manager:v1beta2/Deployment": deployment -"/manager:v1beta2/Deployment/creationDate": creation_date -"/manager:v1beta2/Deployment/description": description -"/manager:v1beta2/Deployment/modules": modules -"/manager:v1beta2/Deployment/modules/module": module -"/manager:v1beta2/Deployment/name": name -"/manager:v1beta2/Deployment/overrides": overrides -"/manager:v1beta2/Deployment/overrides/override": override -"/manager:v1beta2/Deployment/state": state -"/manager:v1beta2/Deployment/templateName": template_name -"/manager:v1beta2/DeploymentsListResponse/nextPageToken": next_page_token -"/manager:v1beta2/DeploymentsListResponse/resources": resources -"/manager:v1beta2/DeploymentsListResponse/resources/resource": resource -"/manager:v1beta2/DiskAttachment": disk_attachment -"/manager:v1beta2/DiskAttachment/deviceName": device_name -"/manager:v1beta2/DiskAttachment/index": index -"/manager:v1beta2/EnvVariable": env_variable -"/manager:v1beta2/EnvVariable/hidden": hidden -"/manager:v1beta2/EnvVariable/value": value -"/manager:v1beta2/ExistingDisk": existing_disk -"/manager:v1beta2/ExistingDisk/attachment": attachment -"/manager:v1beta2/ExistingDisk/source": source -"/manager:v1beta2/FirewallModule": firewall_module -"/manager:v1beta2/FirewallModule/allowed": allowed -"/manager:v1beta2/FirewallModule/allowed/allowed": allowed -"/manager:v1beta2/FirewallModule/description": description -"/manager:v1beta2/FirewallModule/network": network -"/manager:v1beta2/FirewallModule/sourceRanges": source_ranges -"/manager:v1beta2/FirewallModule/sourceRanges/source_range": source_range -"/manager:v1beta2/FirewallModule/sourceTags": source_tags -"/manager:v1beta2/FirewallModule/sourceTags/source_tag": source_tag -"/manager:v1beta2/FirewallModule/targetTags": target_tags -"/manager:v1beta2/FirewallModule/targetTags/target_tag": target_tag -"/manager:v1beta2/FirewallModuleStatus": firewall_module_status -"/manager:v1beta2/FirewallModuleStatus/firewallUrl": firewall_url -"/manager:v1beta2/HealthCheckModule": health_check_module -"/manager:v1beta2/HealthCheckModule/checkIntervalSec": check_interval_sec -"/manager:v1beta2/HealthCheckModule/description": description -"/manager:v1beta2/HealthCheckModule/healthyThreshold": healthy_threshold -"/manager:v1beta2/HealthCheckModule/host": host -"/manager:v1beta2/HealthCheckModule/path": path -"/manager:v1beta2/HealthCheckModule/port": port -"/manager:v1beta2/HealthCheckModule/timeoutSec": timeout_sec -"/manager:v1beta2/HealthCheckModule/unhealthyThreshold": unhealthy_threshold -"/manager:v1beta2/HealthCheckModuleStatus": health_check_module_status -"/manager:v1beta2/HealthCheckModuleStatus/healthCheckUrl": health_check_url -"/manager:v1beta2/LbModule": lb_module -"/manager:v1beta2/LbModule/description": description -"/manager:v1beta2/LbModule/healthChecks": health_checks -"/manager:v1beta2/LbModule/healthChecks/health_check": health_check -"/manager:v1beta2/LbModule/ipAddress": ip_address -"/manager:v1beta2/LbModule/ipProtocol": ip_protocol -"/manager:v1beta2/LbModule/portRange": port_range -"/manager:v1beta2/LbModule/sessionAffinity": session_affinity -"/manager:v1beta2/LbModule/targetModules": target_modules -"/manager:v1beta2/LbModule/targetModules/target_module": target_module -"/manager:v1beta2/LbModuleStatus": lb_module_status -"/manager:v1beta2/LbModuleStatus/forwardingRuleUrl": forwarding_rule_url -"/manager:v1beta2/LbModuleStatus/targetPoolUrl": target_pool_url -"/manager:v1beta2/Metadata": metadata -"/manager:v1beta2/Metadata/fingerPrint": finger_print -"/manager:v1beta2/Metadata/items": items -"/manager:v1beta2/Metadata/items/item": item -"/manager:v1beta2/MetadataItem": metadata_item -"/manager:v1beta2/MetadataItem/key": key -"/manager:v1beta2/MetadataItem/value": value -"/manager:v1beta2/Module": module -"/manager:v1beta2/Module/autoscalingModule": autoscaling_module -"/manager:v1beta2/Module/firewallModule": firewall_module -"/manager:v1beta2/Module/healthCheckModule": health_check_module -"/manager:v1beta2/Module/lbModule": lb_module -"/manager:v1beta2/Module/networkModule": network_module -"/manager:v1beta2/Module/replicaPoolModule": replica_pool_module -"/manager:v1beta2/Module/type": type -"/manager:v1beta2/ModuleStatus": module_status -"/manager:v1beta2/ModuleStatus/autoscalingModuleStatus": autoscaling_module_status -"/manager:v1beta2/ModuleStatus/firewallModuleStatus": firewall_module_status -"/manager:v1beta2/ModuleStatus/healthCheckModuleStatus": health_check_module_status -"/manager:v1beta2/ModuleStatus/lbModuleStatus": lb_module_status -"/manager:v1beta2/ModuleStatus/networkModuleStatus": network_module_status -"/manager:v1beta2/ModuleStatus/replicaPoolModuleStatus": replica_pool_module_status -"/manager:v1beta2/ModuleStatus/state": state -"/manager:v1beta2/ModuleStatus/type": type -"/manager:v1beta2/NetworkInterface": network_interface -"/manager:v1beta2/NetworkInterface/accessConfigs": access_configs -"/manager:v1beta2/NetworkInterface/accessConfigs/access_config": access_config -"/manager:v1beta2/NetworkInterface/name": name -"/manager:v1beta2/NetworkInterface/network": network -"/manager:v1beta2/NetworkInterface/networkIp": network_ip -"/manager:v1beta2/NetworkModule": network_module -"/manager:v1beta2/NetworkModule/IPv4Range": i_pv4_range -"/manager:v1beta2/NetworkModule/description": description -"/manager:v1beta2/NetworkModule/gatewayIPv4": gateway_i_pv4 -"/manager:v1beta2/NetworkModuleStatus": network_module_status -"/manager:v1beta2/NetworkModuleStatus/networkUrl": network_url -"/manager:v1beta2/NewDisk": new_disk -"/manager:v1beta2/NewDisk/attachment": attachment -"/manager:v1beta2/NewDisk/autoDelete": auto_delete -"/manager:v1beta2/NewDisk/boot": boot -"/manager:v1beta2/NewDisk/initializeParams": initialize_params -"/manager:v1beta2/NewDiskInitializeParams": new_disk_initialize_params -"/manager:v1beta2/NewDiskInitializeParams/diskSizeGb": disk_size_gb -"/manager:v1beta2/NewDiskInitializeParams/diskType": disk_type -"/manager:v1beta2/NewDiskInitializeParams/sourceImage": source_image -"/manager:v1beta2/ParamOverride": param_override -"/manager:v1beta2/ParamOverride/path": path -"/manager:v1beta2/ParamOverride/value": value -"/manager:v1beta2/ReplicaPoolModule": replica_pool_module -"/manager:v1beta2/ReplicaPoolModule/envVariables": env_variables -"/manager:v1beta2/ReplicaPoolModule/envVariables/env_variable": env_variable -"/manager:v1beta2/ReplicaPoolModule/healthChecks": health_checks -"/manager:v1beta2/ReplicaPoolModule/healthChecks/health_check": health_check -"/manager:v1beta2/ReplicaPoolModule/numReplicas": num_replicas -"/manager:v1beta2/ReplicaPoolModule/replicaPoolParams": replica_pool_params -"/manager:v1beta2/ReplicaPoolModule/resourceView": resource_view -"/manager:v1beta2/ReplicaPoolModuleStatus": replica_pool_module_status -"/manager:v1beta2/ReplicaPoolModuleStatus/replicaPoolUrl": replica_pool_url -"/manager:v1beta2/ReplicaPoolModuleStatus/resourceViewUrl": resource_view_url -"/manager:v1beta2/ReplicaPoolParams": replica_pool_params -"/manager:v1beta2/ReplicaPoolParams/v1beta1": v1beta1 -"/manager:v1beta2/ReplicaPoolParamsV1Beta1": replica_pool_params_v1_beta1 -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/autoRestart": auto_restart -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/baseInstanceName": base_instance_name -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/canIpForward": can_ip_forward -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/description": description -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/disksToAttach": disks_to_attach -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/disksToAttach/disks_to_attach": disks_to_attach -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/disksToCreate": disks_to_create -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/disksToCreate/disks_to_create": disks_to_create -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/initAction": init_action -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/machineType": machine_type -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/metadata": metadata -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/networkInterfaces": network_interfaces -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/networkInterfaces/network_interface": network_interface -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/onHostMaintenance": on_host_maintenance -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/serviceAccounts": service_accounts -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/serviceAccounts/service_account": service_account -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/tags": tags -"/manager:v1beta2/ReplicaPoolParamsV1Beta1/zone": zone -"/manager:v1beta2/ServiceAccount": service_account -"/manager:v1beta2/ServiceAccount/email": email -"/manager:v1beta2/ServiceAccount/scopes": scopes -"/manager:v1beta2/ServiceAccount/scopes/scope": scope -"/manager:v1beta2/Tag": tag -"/manager:v1beta2/Tag/fingerPrint": finger_print -"/manager:v1beta2/Tag/items": items -"/manager:v1beta2/Tag/items/item": item -"/manager:v1beta2/Template": template -"/manager:v1beta2/Template/actions": actions -"/manager:v1beta2/Template/actions/action": action -"/manager:v1beta2/Template/description": description -"/manager:v1beta2/Template/modules": modules -"/manager:v1beta2/Template/modules/module": module -"/manager:v1beta2/Template/name": name -"/manager:v1beta2/TemplatesListResponse/nextPageToken": next_page_token -"/manager:v1beta2/TemplatesListResponse/resources": resources -"/manager:v1beta2/TemplatesListResponse/resources/resource": resource "/mirror:v1/fields": fields "/mirror:v1/key": key "/mirror:v1/quotaUser": quota_user @@ -25243,6 +25051,603 @@ "/resourceviews:v1beta2/ZoneViewsSetServiceRequest/endpoints/endpoint": endpoint "/resourceviews:v1beta2/ZoneViewsSetServiceRequest/fingerprint": fingerprint "/resourceviews:v1beta2/ZoneViewsSetServiceRequest/resourceName": resource_name +"/sheets:v4/key": key +"/sheets:v4/quotaUser": quota_user +"/sheets:v4/fields": fields +"/sheets:v4/sheets.spreadsheets.create": create_spreadsheet +"/sheets:v4/sheets.spreadsheets.get": get_spreadsheet +"/sheets:v4/sheets.spreadsheets.get/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.get/ranges": ranges +"/sheets:v4/sheets.spreadsheets.get/includeGridData": include_grid_data +"/sheets:v4/sheets.spreadsheets.batchUpdate": batch_update_spreadsheet +"/sheets:v4/sheets.spreadsheets.batchUpdate/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.update": update_spreadsheet_value +"/sheets:v4/sheets.spreadsheets.values.update/valueInputOption": value_input_option +"/sheets:v4/sheets.spreadsheets.values.update/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.update/range": range +"/sheets:v4/sheets.spreadsheets.values.get/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.get/valueRenderOption": value_render_option +"/sheets:v4/sheets.spreadsheets.values.get/dateTimeRenderOption": date_time_render_option +"/sheets:v4/sheets.spreadsheets.values.get/range": range +"/sheets:v4/sheets.spreadsheets.values.get/majorDimension": major_dimension +"/sheets:v4/sheets.spreadsheets.values.batchGet/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.values.batchGet/ranges": ranges +"/sheets:v4/sheets.spreadsheets.values.batchGet/valueRenderOption": value_render_option +"/sheets:v4/sheets.spreadsheets.values.batchGet/dateTimeRenderOption": date_time_render_option +"/sheets:v4/sheets.spreadsheets.values.batchGet/majorDimension": major_dimension +"/sheets:v4/sheets.spreadsheets.values.batchUpdate": batch_update_values +"/sheets:v4/sheets.spreadsheets.values.batchUpdate/spreadsheetId": spreadsheet_id +"/sheets:v4/sheets.spreadsheets.sheets.copyTo/sheetId": sheet_id +"/sheets:v4/sheets.spreadsheets.sheets.copyTo/spreadsheetId": spreadsheet_id +"/sheets:v4/AddNamedRangeResponse": add_named_range_response +"/sheets:v4/AddNamedRangeResponse/namedRange": named_range +"/sheets:v4/UpdateProtectedRangeRequest": update_protected_range_request +"/sheets:v4/UpdateProtectedRangeRequest/protectedRange": protected_range +"/sheets:v4/UpdateProtectedRangeRequest/fields": fields +"/sheets:v4/Padding": padding +"/sheets:v4/Padding/right": right +"/sheets:v4/Padding/left": left +"/sheets:v4/Padding/top": top +"/sheets:v4/Padding/bottom": bottom +"/sheets:v4/MergeCellsRequest": merge_cells_request +"/sheets:v4/MergeCellsRequest/mergeType": merge_type +"/sheets:v4/MergeCellsRequest/range": range +"/sheets:v4/AddSheetResponse": add_sheet_response +"/sheets:v4/AddSheetResponse/properties": properties +"/sheets:v4/PivotGroupValueMetadata": pivot_group_value_metadata +"/sheets:v4/PivotGroupValueMetadata/value": value +"/sheets:v4/PivotGroupValueMetadata/collapsed": collapsed +"/sheets:v4/UpdateEmbeddedObjectPositionResponse": update_embedded_object_position_response +"/sheets:v4/UpdateEmbeddedObjectPositionResponse/position": position +"/sheets:v4/UpdateConditionalFormatRuleRequest": update_conditional_format_rule_request +"/sheets:v4/UpdateConditionalFormatRuleRequest/sheetId": sheet_id +"/sheets:v4/UpdateConditionalFormatRuleRequest/rule": rule +"/sheets:v4/UpdateConditionalFormatRuleRequest/index": index +"/sheets:v4/UpdateConditionalFormatRuleRequest/newIndex": new_index +"/sheets:v4/TextFormat": text_format +"/sheets:v4/TextFormat/bold": bold +"/sheets:v4/TextFormat/italic": italic +"/sheets:v4/TextFormat/foregroundColor": foreground_color +"/sheets:v4/TextFormat/fontFamily": font_family +"/sheets:v4/TextFormat/strikethrough": strikethrough +"/sheets:v4/TextFormat/fontSize": font_size +"/sheets:v4/TextFormat/underline": underline +"/sheets:v4/UpdateChartSpecRequest": update_chart_spec_request +"/sheets:v4/UpdateChartSpecRequest/chartId": chart_id +"/sheets:v4/UpdateChartSpecRequest/spec": spec +"/sheets:v4/GridCoordinate": grid_coordinate +"/sheets:v4/GridCoordinate/sheetId": sheet_id +"/sheets:v4/GridCoordinate/rowIndex": row_index +"/sheets:v4/GridCoordinate/columnIndex": column_index +"/sheets:v4/DeleteFilterViewRequest": delete_filter_view_request +"/sheets:v4/DeleteFilterViewRequest/filterId": filter_id +"/sheets:v4/BatchUpdateValuesResponse": batch_update_values_response +"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedSheets": total_updated_sheets +"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedColumns": total_updated_columns +"/sheets:v4/BatchUpdateValuesResponse/responses": responses +"/sheets:v4/BatchUpdateValuesResponse/responses/response": response +"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedCells": total_updated_cells +"/sheets:v4/BatchUpdateValuesResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/BatchUpdateValuesResponse/totalUpdatedRows": total_updated_rows +"/sheets:v4/UpdateNamedRangeRequest": update_named_range_request +"/sheets:v4/UpdateNamedRangeRequest/fields": fields +"/sheets:v4/UpdateNamedRangeRequest/namedRange": named_range +"/sheets:v4/UpdateValuesResponse": update_values_response +"/sheets:v4/UpdateValuesResponse/updatedRange": updated_range +"/sheets:v4/UpdateValuesResponse/updatedColumns": updated_columns +"/sheets:v4/UpdateValuesResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/UpdateValuesResponse/updatedRows": updated_rows +"/sheets:v4/UpdateValuesResponse/updatedCells": updated_cells +"/sheets:v4/SpreadsheetProperties": spreadsheet_properties +"/sheets:v4/SpreadsheetProperties/timeZone": time_zone +"/sheets:v4/SpreadsheetProperties/autoRecalc": auto_recalc +"/sheets:v4/SpreadsheetProperties/locale": locale +"/sheets:v4/SpreadsheetProperties/title": title +"/sheets:v4/SpreadsheetProperties/defaultFormat": default_format +"/sheets:v4/CellData": cell_data +"/sheets:v4/CellData/hyperlink": hyperlink +"/sheets:v4/CellData/effectiveFormat": effective_format +"/sheets:v4/CellData/note": note +"/sheets:v4/CellData/formattedValue": formatted_value +"/sheets:v4/CellData/userEnteredValue": user_entered_value +"/sheets:v4/CellData/dataValidation": data_validation +"/sheets:v4/CellData/userEnteredFormat": user_entered_format +"/sheets:v4/CellData/pivotTable": pivot_table +"/sheets:v4/CellData/textFormatRuns": text_format_runs +"/sheets:v4/CellData/textFormatRuns/text_format_run": text_format_run +"/sheets:v4/CellData/effectiveValue": effective_value +"/sheets:v4/UnmergeCellsRequest": unmerge_cells_request +"/sheets:v4/UnmergeCellsRequest/range": range +"/sheets:v4/TextToColumnsRequest": text_to_columns_request +"/sheets:v4/TextToColumnsRequest/source": source +"/sheets:v4/TextToColumnsRequest/delimiter": delimiter +"/sheets:v4/TextToColumnsRequest/delimiterType": delimiter_type +"/sheets:v4/AddProtectedRangeResponse": add_protected_range_response +"/sheets:v4/AddProtectedRangeResponse/protectedRange": protected_range +"/sheets:v4/BooleanCondition": boolean_condition +"/sheets:v4/BooleanCondition/values": values +"/sheets:v4/BooleanCondition/values/value": value +"/sheets:v4/BooleanCondition/type": type +"/sheets:v4/DeleteProtectedRangeRequest": delete_protected_range_request +"/sheets:v4/DeleteProtectedRangeRequest/protectedRangeId": protected_range_id +"/sheets:v4/BasicChartDomain": basic_chart_domain +"/sheets:v4/BasicChartDomain/domain": domain +"/sheets:v4/DimensionRange": dimension_range +"/sheets:v4/DimensionRange/sheetId": sheet_id +"/sheets:v4/DimensionRange/endIndex": end_index +"/sheets:v4/DimensionRange/startIndex": start_index +"/sheets:v4/DimensionRange/dimension": dimension +"/sheets:v4/Response": response +"/sheets:v4/Response/updateEmbeddedObjectPosition": update_embedded_object_position +"/sheets:v4/Response/addFilterView": add_filter_view +"/sheets:v4/Response/addSheet": add_sheet +"/sheets:v4/Response/findReplace": find_replace +"/sheets:v4/Response/addProtectedRange": add_protected_range +"/sheets:v4/Response/updateConditionalFormatRule": update_conditional_format_rule +"/sheets:v4/Response/addChart": add_chart +"/sheets:v4/Response/deleteConditionalFormatRule": delete_conditional_format_rule +"/sheets:v4/Response/duplicateSheet": duplicate_sheet +"/sheets:v4/Response/duplicateFilterView": duplicate_filter_view +"/sheets:v4/Response/addNamedRange": add_named_range +"/sheets:v4/AddConditionalFormatRuleRequest": add_conditional_format_rule_request +"/sheets:v4/AddConditionalFormatRuleRequest/rule": rule +"/sheets:v4/AddConditionalFormatRuleRequest/index": index +"/sheets:v4/FilterView": filter_view +"/sheets:v4/FilterView/title": title +"/sheets:v4/FilterView/namedRangeId": named_range_id +"/sheets:v4/FilterView/sortSpecs": sort_specs +"/sheets:v4/FilterView/sortSpecs/sort_spec": sort_spec +"/sheets:v4/FilterView/range": range +"/sheets:v4/FilterView/criteria": criteria +"/sheets:v4/FilterView/criteria/criterium": criterium +"/sheets:v4/FilterView/filterViewId": filter_view_id +"/sheets:v4/SortRangeRequest": sort_range_request +"/sheets:v4/SortRangeRequest/range": range +"/sheets:v4/SortRangeRequest/sortSpecs": sort_specs +"/sheets:v4/SortRangeRequest/sortSpecs/sort_spec": sort_spec +"/sheets:v4/TextFormatRun": text_format_run +"/sheets:v4/TextFormatRun/startIndex": start_index +"/sheets:v4/TextFormatRun/format": format +"/sheets:v4/UpdateFilterViewRequest": update_filter_view_request +"/sheets:v4/UpdateFilterViewRequest/filter": filter +"/sheets:v4/UpdateFilterViewRequest/fields": fields +"/sheets:v4/UpdateConditionalFormatRuleResponse": update_conditional_format_rule_response +"/sheets:v4/UpdateConditionalFormatRuleResponse/oldIndex": old_index +"/sheets:v4/UpdateConditionalFormatRuleResponse/newRule": new_rule +"/sheets:v4/UpdateConditionalFormatRuleResponse/oldRule": old_rule +"/sheets:v4/UpdateConditionalFormatRuleResponse/newIndex": new_index +"/sheets:v4/FilterCriteria": filter_criteria +"/sheets:v4/FilterCriteria/condition": condition +"/sheets:v4/FilterCriteria/hiddenValues": hidden_values +"/sheets:v4/FilterCriteria/hiddenValues/hidden_value": hidden_value +"/sheets:v4/DeleteDimensionRequest": delete_dimension_request +"/sheets:v4/DeleteDimensionRequest/range": range +"/sheets:v4/PivotTable": pivot_table +"/sheets:v4/PivotTable/valueLayout": value_layout +"/sheets:v4/PivotTable/columns": columns +"/sheets:v4/PivotTable/columns/column": column +"/sheets:v4/PivotTable/source": source +"/sheets:v4/PivotTable/rows": rows +"/sheets:v4/PivotTable/rows/row": row +"/sheets:v4/PivotTable/values": values +"/sheets:v4/PivotTable/values/value": value +"/sheets:v4/PivotTable/criteria": criteria +"/sheets:v4/PivotTable/criteria/criterium": criterium +"/sheets:v4/DataValidationRule": data_validation_rule +"/sheets:v4/DataValidationRule/condition": condition +"/sheets:v4/DataValidationRule/inputMessage": input_message +"/sheets:v4/DataValidationRule/showCustomUi": show_custom_ui +"/sheets:v4/DataValidationRule/strict": strict +"/sheets:v4/UpdateSpreadsheetPropertiesRequest": update_spreadsheet_properties_request +"/sheets:v4/UpdateSpreadsheetPropertiesRequest/fields": fields +"/sheets:v4/UpdateSpreadsheetPropertiesRequest/properties": properties +"/sheets:v4/ChartSourceRange": chart_source_range +"/sheets:v4/ChartSourceRange/sources": sources +"/sheets:v4/ChartSourceRange/sources/source": source +"/sheets:v4/BatchUpdateValuesRequest": batch_update_values_request +"/sheets:v4/BatchUpdateValuesRequest/valueInputOption": value_input_option +"/sheets:v4/BatchUpdateValuesRequest/data": data +"/sheets:v4/BatchUpdateValuesRequest/data/datum": datum +"/sheets:v4/ClearBasicFilterRequest": clear_basic_filter_request +"/sheets:v4/ClearBasicFilterRequest/sheetId": sheet_id +"/sheets:v4/ConditionalFormatRule": conditional_format_rule +"/sheets:v4/ConditionalFormatRule/gradientRule": gradient_rule +"/sheets:v4/ConditionalFormatRule/booleanRule": boolean_rule +"/sheets:v4/ConditionalFormatRule/ranges": ranges +"/sheets:v4/ConditionalFormatRule/ranges/range": range +"/sheets:v4/UpdateBordersRequest": update_borders_request +"/sheets:v4/UpdateBordersRequest/right": right +"/sheets:v4/UpdateBordersRequest/innerVertical": inner_vertical +"/sheets:v4/UpdateBordersRequest/top": top +"/sheets:v4/UpdateBordersRequest/innerHorizontal": inner_horizontal +"/sheets:v4/UpdateBordersRequest/range": range +"/sheets:v4/UpdateBordersRequest/bottom": bottom +"/sheets:v4/UpdateBordersRequest/left": left +"/sheets:v4/PivotFilterCriteria": pivot_filter_criteria +"/sheets:v4/PivotFilterCriteria/visibleValues": visible_values +"/sheets:v4/PivotFilterCriteria/visibleValues/visible_value": visible_value +"/sheets:v4/Borders": borders +"/sheets:v4/Borders/left": left +"/sheets:v4/Borders/right": right +"/sheets:v4/Borders/top": top +"/sheets:v4/Borders/bottom": bottom +"/sheets:v4/EmbeddedChart": embedded_chart +"/sheets:v4/EmbeddedChart/chartId": chart_id +"/sheets:v4/EmbeddedChart/position": position +"/sheets:v4/EmbeddedChart/spec": spec +"/sheets:v4/Color": color +"/sheets:v4/Color/green": green +"/sheets:v4/Color/blue": blue +"/sheets:v4/Color/red": red +"/sheets:v4/Color/alpha": alpha +"/sheets:v4/AddSheetRequest": add_sheet_request +"/sheets:v4/AddSheetRequest/properties": properties +"/sheets:v4/AddProtectedRangeRequest": add_protected_range_request +"/sheets:v4/AddProtectedRangeRequest/protectedRange": protected_range +"/sheets:v4/ValueRange": value_range +"/sheets:v4/ValueRange/values": values +"/sheets:v4/ValueRange/values/value": value +"/sheets:v4/ValueRange/values/value/value": value +"/sheets:v4/ValueRange/range": range +"/sheets:v4/ValueRange/majorDimension": major_dimension +"/sheets:v4/FindReplaceResponse": find_replace_response +"/sheets:v4/FindReplaceResponse/valuesChanged": values_changed +"/sheets:v4/FindReplaceResponse/rowsChanged": rows_changed +"/sheets:v4/FindReplaceResponse/occurrencesChanged": occurrences_changed +"/sheets:v4/FindReplaceResponse/formulasChanged": formulas_changed +"/sheets:v4/FindReplaceResponse/sheetsChanged": sheets_changed +"/sheets:v4/CellFormat": cell_format +"/sheets:v4/CellFormat/horizontalAlignment": horizontal_alignment +"/sheets:v4/CellFormat/hyperlinkDisplayType": hyperlink_display_type +"/sheets:v4/CellFormat/borders": borders +"/sheets:v4/CellFormat/textDirection": text_direction +"/sheets:v4/CellFormat/textFormat": text_format +"/sheets:v4/CellFormat/padding": padding +"/sheets:v4/CellFormat/numberFormat": number_format +"/sheets:v4/CellFormat/wrapStrategy": wrap_strategy +"/sheets:v4/CellFormat/backgroundColor": background_color +"/sheets:v4/CellFormat/verticalAlignment": vertical_alignment +"/sheets:v4/MoveDimensionRequest": move_dimension_request +"/sheets:v4/MoveDimensionRequest/source": source +"/sheets:v4/MoveDimensionRequest/destinationIndex": destination_index +"/sheets:v4/BasicChartAxis": basic_chart_axis +"/sheets:v4/BasicChartAxis/position": position +"/sheets:v4/BasicChartAxis/title": title +"/sheets:v4/BasicChartAxis/format": format +"/sheets:v4/PivotGroupSortValueBucket": pivot_group_sort_value_bucket +"/sheets:v4/PivotGroupSortValueBucket/buckets": buckets +"/sheets:v4/PivotGroupSortValueBucket/buckets/bucket": bucket +"/sheets:v4/PivotGroupSortValueBucket/valuesIndex": values_index +"/sheets:v4/DimensionProperties": dimension_properties +"/sheets:v4/DimensionProperties/hiddenByUser": hidden_by_user +"/sheets:v4/DimensionProperties/pixelSize": pixel_size +"/sheets:v4/DimensionProperties/hiddenByFilter": hidden_by_filter +"/sheets:v4/EmbeddedObjectPosition": embedded_object_position +"/sheets:v4/EmbeddedObjectPosition/sheetId": sheet_id +"/sheets:v4/EmbeddedObjectPosition/overlayPosition": overlay_position +"/sheets:v4/EmbeddedObjectPosition/newSheet": new_sheet +"/sheets:v4/InterpolationPoint": interpolation_point +"/sheets:v4/InterpolationPoint/value": value +"/sheets:v4/InterpolationPoint/color": color +"/sheets:v4/InterpolationPoint/type": type +"/sheets:v4/ErrorValue": error_value +"/sheets:v4/ErrorValue/type": type +"/sheets:v4/ErrorValue/message": message +"/sheets:v4/DuplicateFilterViewRequest": duplicate_filter_view_request +"/sheets:v4/DuplicateFilterViewRequest/filterId": filter_id +"/sheets:v4/BatchUpdateSpreadsheetRequest": batch_update_spreadsheet_request +"/sheets:v4/BatchUpdateSpreadsheetRequest/requests": requests +"/sheets:v4/BatchUpdateSpreadsheetRequest/requests/request": request +"/sheets:v4/SheetProperties": sheet_properties +"/sheets:v4/SheetProperties/title": title +"/sheets:v4/SheetProperties/index": index +"/sheets:v4/SheetProperties/hidden": hidden +"/sheets:v4/SheetProperties/gridProperties": grid_properties +"/sheets:v4/SheetProperties/sheetId": sheet_id +"/sheets:v4/SheetProperties/rightToLeft": right_to_left +"/sheets:v4/SheetProperties/tabColor": tab_color +"/sheets:v4/SheetProperties/sheetType": sheet_type +"/sheets:v4/ProtectedRange": protected_range +"/sheets:v4/ProtectedRange/unprotectedRanges": unprotected_ranges +"/sheets:v4/ProtectedRange/unprotectedRanges/unprotected_range": unprotected_range +"/sheets:v4/ProtectedRange/description": description +"/sheets:v4/ProtectedRange/namedRangeId": named_range_id +"/sheets:v4/ProtectedRange/requestingUserCanEdit": requesting_user_can_edit +"/sheets:v4/ProtectedRange/editors": editors +"/sheets:v4/ProtectedRange/protectedRangeId": protected_range_id +"/sheets:v4/ProtectedRange/warningOnly": warning_only +"/sheets:v4/ProtectedRange/range": range +"/sheets:v4/DeleteConditionalFormatRuleRequest": delete_conditional_format_rule_request +"/sheets:v4/DeleteConditionalFormatRuleRequest/sheetId": sheet_id +"/sheets:v4/DeleteConditionalFormatRuleRequest/index": index +"/sheets:v4/ChartSpec": chart_spec +"/sheets:v4/ChartSpec/hiddenDimensionStrategy": hidden_dimension_strategy +"/sheets:v4/ChartSpec/basicChart": basic_chart +"/sheets:v4/ChartSpec/title": title +"/sheets:v4/ChartSpec/pieChart": pie_chart +"/sheets:v4/SourceAndDestination": source_and_destination +"/sheets:v4/SourceAndDestination/source": source +"/sheets:v4/SourceAndDestination/fillLength": fill_length +"/sheets:v4/SourceAndDestination/dimension": dimension +"/sheets:v4/ConditionValue": condition_value +"/sheets:v4/ConditionValue/relativeDate": relative_date +"/sheets:v4/ConditionValue/userEnteredValue": user_entered_value +"/sheets:v4/PasteDataRequest": paste_data_request +"/sheets:v4/PasteDataRequest/data": data +"/sheets:v4/PasteDataRequest/coordinate": coordinate +"/sheets:v4/PasteDataRequest/delimiter": delimiter +"/sheets:v4/PasteDataRequest/type": type +"/sheets:v4/PasteDataRequest/html": html +"/sheets:v4/FindReplaceRequest": find_replace_request +"/sheets:v4/FindReplaceRequest/find": find +"/sheets:v4/FindReplaceRequest/replacement": replacement +"/sheets:v4/FindReplaceRequest/searchByRegex": search_by_regex +"/sheets:v4/FindReplaceRequest/sheetId": sheet_id +"/sheets:v4/FindReplaceRequest/allSheets": all_sheets +"/sheets:v4/FindReplaceRequest/matchCase": match_case +"/sheets:v4/FindReplaceRequest/includeFormulas": include_formulas +"/sheets:v4/FindReplaceRequest/range": range +"/sheets:v4/FindReplaceRequest/matchEntireCell": match_entire_cell +"/sheets:v4/SortSpec": sort_spec +"/sheets:v4/SortSpec/sortOrder": sort_order +"/sheets:v4/SortSpec/dimensionIndex": dimension_index +"/sheets:v4/CopySheetToAnotherSpreadsheetRequest": copy_sheet_to_another_spreadsheet_request +"/sheets:v4/CopySheetToAnotherSpreadsheetRequest/destinationSpreadsheetId": destination_spreadsheet_id +"/sheets:v4/NumberFormat": number_format +"/sheets:v4/NumberFormat/pattern": pattern +"/sheets:v4/NumberFormat/type": type +"/sheets:v4/UpdateDimensionPropertiesRequest": update_dimension_properties_request +"/sheets:v4/UpdateDimensionPropertiesRequest/fields": fields +"/sheets:v4/UpdateDimensionPropertiesRequest/range": range +"/sheets:v4/UpdateDimensionPropertiesRequest/properties": properties +"/sheets:v4/Editors": editors +"/sheets:v4/Editors/users": users +"/sheets:v4/Editors/users/user": user +"/sheets:v4/Editors/groups": groups +"/sheets:v4/Editors/groups/group": group +"/sheets:v4/Editors/domainUsersCanEdit": domain_users_can_edit +"/sheets:v4/Spreadsheet": spreadsheet +"/sheets:v4/Spreadsheet/spreadsheetId": spreadsheet_id +"/sheets:v4/Spreadsheet/properties": properties +"/sheets:v4/Spreadsheet/sheets": sheets +"/sheets:v4/Spreadsheet/sheets/sheet": sheet +"/sheets:v4/Spreadsheet/namedRanges": named_ranges +"/sheets:v4/Spreadsheet/namedRanges/named_range": named_range +"/sheets:v4/GridData": grid_data +"/sheets:v4/GridData/columnMetadata": column_metadata +"/sheets:v4/GridData/columnMetadata/column_metadatum": column_metadatum +"/sheets:v4/GridData/rowData": row_data +"/sheets:v4/GridData/rowData/row_datum": row_datum +"/sheets:v4/GridData/startRow": start_row +"/sheets:v4/GridData/rowMetadata": row_metadata +"/sheets:v4/GridData/rowMetadata/row_metadatum": row_metadatum +"/sheets:v4/GridData/startColumn": start_column +"/sheets:v4/PivotValue": pivot_value +"/sheets:v4/PivotValue/formula": formula +"/sheets:v4/PivotValue/sourceColumnOffset": source_column_offset +"/sheets:v4/PivotValue/summarizeFunction": summarize_function +"/sheets:v4/PivotValue/name": name +"/sheets:v4/BasicFilter": basic_filter +"/sheets:v4/BasicFilter/criteria": criteria +"/sheets:v4/BasicFilter/criteria/criterium": criterium +"/sheets:v4/BasicFilter/range": range +"/sheets:v4/BasicFilter/sortSpecs": sort_specs +"/sheets:v4/BasicFilter/sortSpecs/sort_spec": sort_spec +"/sheets:v4/DuplicateSheetRequest": duplicate_sheet_request +"/sheets:v4/DuplicateSheetRequest/sourceSheetId": source_sheet_id +"/sheets:v4/DuplicateSheetRequest/newSheetId": new_sheet_id +"/sheets:v4/DuplicateSheetRequest/insertSheetIndex": insert_sheet_index +"/sheets:v4/DuplicateSheetRequest/newSheetName": new_sheet_name +"/sheets:v4/AddFilterViewResponse": add_filter_view_response +"/sheets:v4/AddFilterViewResponse/filter": filter +"/sheets:v4/DuplicateSheetResponse": duplicate_sheet_response +"/sheets:v4/DuplicateSheetResponse/properties": properties +"/sheets:v4/Border": border +"/sheets:v4/Border/style": style +"/sheets:v4/Border/width": width +"/sheets:v4/Border/color": color +"/sheets:v4/AddNamedRangeRequest": add_named_range_request +"/sheets:v4/AddNamedRangeRequest/namedRange": named_range +"/sheets:v4/AddChartResponse": add_chart_response +"/sheets:v4/AddChartResponse/chart": chart +"/sheets:v4/AppendCellsRequest": append_cells_request +"/sheets:v4/AppendCellsRequest/sheetId": sheet_id +"/sheets:v4/AppendCellsRequest/rows": rows +"/sheets:v4/AppendCellsRequest/rows/row": row +"/sheets:v4/AppendCellsRequest/fields": fields +"/sheets:v4/RowData": row_data +"/sheets:v4/RowData/values": values +"/sheets:v4/RowData/values/value": value +"/sheets:v4/BasicChartSeries": basic_chart_series +"/sheets:v4/BasicChartSeries/series": series +"/sheets:v4/BasicChartSeries/targetAxis": target_axis +"/sheets:v4/BasicChartSeries/type": type +"/sheets:v4/RepeatCellRequest": repeat_cell_request +"/sheets:v4/RepeatCellRequest/cell": cell +"/sheets:v4/RepeatCellRequest/fields": fields +"/sheets:v4/RepeatCellRequest/range": range +"/sheets:v4/BasicChartSpec": basic_chart_spec +"/sheets:v4/BasicChartSpec/chartType": chart_type +"/sheets:v4/BasicChartSpec/domains": domains +"/sheets:v4/BasicChartSpec/domains/domain": domain +"/sheets:v4/BasicChartSpec/headerCount": header_count +"/sheets:v4/BasicChartSpec/series": series +"/sheets:v4/BasicChartSpec/series/series": series +"/sheets:v4/BasicChartSpec/legendPosition": legend_position +"/sheets:v4/BasicChartSpec/axis": axis +"/sheets:v4/BasicChartSpec/axis/axis": axis +"/sheets:v4/NamedRange": named_range +"/sheets:v4/NamedRange/namedRangeId": named_range_id +"/sheets:v4/NamedRange/range": range +"/sheets:v4/NamedRange/name": name +"/sheets:v4/SetBasicFilterRequest": set_basic_filter_request +"/sheets:v4/SetBasicFilterRequest/filter": filter +"/sheets:v4/UpdateEmbeddedObjectPositionRequest": update_embedded_object_position_request +"/sheets:v4/UpdateEmbeddedObjectPositionRequest/newPosition": new_position +"/sheets:v4/UpdateEmbeddedObjectPositionRequest/objectId": object_id_prop +"/sheets:v4/UpdateEmbeddedObjectPositionRequest/fields": fields +"/sheets:v4/AutoResizeDimensionsRequest": auto_resize_dimensions_request +"/sheets:v4/AutoResizeDimensionsRequest/dimensions": dimensions +"/sheets:v4/DuplicateFilterViewResponse": duplicate_filter_view_response +"/sheets:v4/DuplicateFilterViewResponse/filter": filter +"/sheets:v4/PivotGroup": pivot_group +"/sheets:v4/PivotGroup/sortOrder": sort_order +"/sheets:v4/PivotGroup/sourceColumnOffset": source_column_offset +"/sheets:v4/PivotGroup/showTotals": show_totals +"/sheets:v4/PivotGroup/valueBucket": value_bucket +"/sheets:v4/PivotGroup/valueMetadata": value_metadata +"/sheets:v4/PivotGroup/valueMetadata/value_metadatum": value_metadatum +"/sheets:v4/GridRange": grid_range +"/sheets:v4/GridRange/sheetId": sheet_id +"/sheets:v4/GridRange/startColumnIndex": start_column_index +"/sheets:v4/GridRange/startRowIndex": start_row_index +"/sheets:v4/GridRange/endRowIndex": end_row_index +"/sheets:v4/GridRange/endColumnIndex": end_column_index +"/sheets:v4/DeleteSheetRequest": delete_sheet_request +"/sheets:v4/DeleteSheetRequest/sheetId": sheet_id +"/sheets:v4/ChartData": chart_data +"/sheets:v4/ChartData/sourceRange": source_range +"/sheets:v4/Sheet": sheet +"/sheets:v4/Sheet/properties": properties +"/sheets:v4/Sheet/charts": charts +"/sheets:v4/Sheet/charts/chart": chart +"/sheets:v4/Sheet/filterViews": filter_views +"/sheets:v4/Sheet/filterViews/filter_view": filter_view +"/sheets:v4/Sheet/conditionalFormats": conditional_formats +"/sheets:v4/Sheet/conditionalFormats/conditional_format": conditional_format +"/sheets:v4/Sheet/protectedRanges": protected_ranges +"/sheets:v4/Sheet/protectedRanges/protected_range": protected_range +"/sheets:v4/Sheet/basicFilter": basic_filter +"/sheets:v4/Sheet/merges": merges +"/sheets:v4/Sheet/merges/merge": merge +"/sheets:v4/Sheet/data": data +"/sheets:v4/Sheet/data/datum": datum +"/sheets:v4/CopyPasteRequest": copy_paste_request +"/sheets:v4/CopyPasteRequest/pasteType": paste_type +"/sheets:v4/CopyPasteRequest/pasteOrientation": paste_orientation +"/sheets:v4/CopyPasteRequest/source": source +"/sheets:v4/CopyPasteRequest/destination": destination +"/sheets:v4/UpdateCellsRequest": update_cells_request +"/sheets:v4/UpdateCellsRequest/rows": rows +"/sheets:v4/UpdateCellsRequest/rows/row": row +"/sheets:v4/UpdateCellsRequest/fields": fields +"/sheets:v4/UpdateCellsRequest/start": start +"/sheets:v4/UpdateCellsRequest/range": range +"/sheets:v4/ExtendedValue": extended_value +"/sheets:v4/ExtendedValue/formulaValue": formula_value +"/sheets:v4/ExtendedValue/errorValue": error_value +"/sheets:v4/ExtendedValue/boolValue": bool_value +"/sheets:v4/ExtendedValue/numberValue": number_value +"/sheets:v4/ExtendedValue/stringValue": string_value +"/sheets:v4/BatchUpdateSpreadsheetResponse": batch_update_spreadsheet_response +"/sheets:v4/BatchUpdateSpreadsheetResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/BatchUpdateSpreadsheetResponse/replies": replies +"/sheets:v4/BatchUpdateSpreadsheetResponse/replies/reply": reply +"/sheets:v4/GradientRule": gradient_rule +"/sheets:v4/GradientRule/maxpoint": maxpoint +"/sheets:v4/GradientRule/midpoint": midpoint +"/sheets:v4/GradientRule/minpoint": minpoint +"/sheets:v4/CutPasteRequest": cut_paste_request +"/sheets:v4/CutPasteRequest/pasteType": paste_type +"/sheets:v4/CutPasteRequest/source": source +"/sheets:v4/CutPasteRequest/destination": destination +"/sheets:v4/OverlayPosition": overlay_position +"/sheets:v4/OverlayPosition/widthPixels": width_pixels +"/sheets:v4/OverlayPosition/anchorCell": anchor_cell +"/sheets:v4/OverlayPosition/offsetXPixels": offset_x_pixels +"/sheets:v4/OverlayPosition/heightPixels": height_pixels +"/sheets:v4/OverlayPosition/offsetYPixels": offset_y_pixels +"/sheets:v4/AutoFillRequest": auto_fill_request +"/sheets:v4/AutoFillRequest/useAlternateSeries": use_alternate_series +"/sheets:v4/AutoFillRequest/range": range +"/sheets:v4/AutoFillRequest/sourceAndDestination": source_and_destination +"/sheets:v4/PieChartSpec": pie_chart_spec +"/sheets:v4/PieChartSpec/legendPosition": legend_position +"/sheets:v4/PieChartSpec/series": series +"/sheets:v4/PieChartSpec/pieHole": pie_hole +"/sheets:v4/PieChartSpec/threeDimensional": three_dimensional +"/sheets:v4/PieChartSpec/domain": domain +"/sheets:v4/UpdateSheetPropertiesRequest": update_sheet_properties_request +"/sheets:v4/UpdateSheetPropertiesRequest/fields": fields +"/sheets:v4/UpdateSheetPropertiesRequest/properties": properties +"/sheets:v4/BooleanRule": boolean_rule +"/sheets:v4/BooleanRule/condition": condition +"/sheets:v4/BooleanRule/format": format +"/sheets:v4/AppendDimensionRequest": append_dimension_request +"/sheets:v4/AppendDimensionRequest/sheetId": sheet_id +"/sheets:v4/AppendDimensionRequest/length": length +"/sheets:v4/AppendDimensionRequest/dimension": dimension +"/sheets:v4/AddFilterViewRequest": add_filter_view_request +"/sheets:v4/AddFilterViewRequest/filter": filter +"/sheets:v4/GridProperties": grid_properties +"/sheets:v4/GridProperties/rowCount": row_count +"/sheets:v4/GridProperties/columnCount": column_count +"/sheets:v4/GridProperties/frozenRowCount": frozen_row_count +"/sheets:v4/GridProperties/frozenColumnCount": frozen_column_count +"/sheets:v4/GridProperties/hideGridlines": hide_gridlines +"/sheets:v4/DeleteNamedRangeRequest": delete_named_range_request +"/sheets:v4/DeleteNamedRangeRequest/namedRangeId": named_range_id +"/sheets:v4/AddChartRequest": add_chart_request +"/sheets:v4/AddChartRequest/chart": chart +"/sheets:v4/SetDataValidationRequest": set_data_validation_request +"/sheets:v4/SetDataValidationRequest/rule": rule +"/sheets:v4/SetDataValidationRequest/range": range +"/sheets:v4/Request": request +"/sheets:v4/Request/updateEmbeddedObjectPosition": update_embedded_object_position +"/sheets:v4/Request/deleteNamedRange": delete_named_range +"/sheets:v4/Request/updateNamedRange": update_named_range +"/sheets:v4/Request/addFilterView": add_filter_view +"/sheets:v4/Request/updateSpreadsheetProperties": update_spreadsheet_properties +"/sheets:v4/Request/appendDimension": append_dimension +"/sheets:v4/Request/unmergeCells": unmerge_cells +"/sheets:v4/Request/updateProtectedRange": update_protected_range +"/sheets:v4/Request/deleteFilterView": delete_filter_view +"/sheets:v4/Request/clearBasicFilter": clear_basic_filter +"/sheets:v4/Request/sortRange": sort_range +"/sheets:v4/Request/repeatCell": repeat_cell +"/sheets:v4/Request/setDataValidation": set_data_validation +"/sheets:v4/Request/updateCells": update_cells +"/sheets:v4/Request/addSheet": add_sheet +"/sheets:v4/Request/updateFilterView": update_filter_view +"/sheets:v4/Request/updateSheetProperties": update_sheet_properties +"/sheets:v4/Request/updateDimensionProperties": update_dimension_properties +"/sheets:v4/Request/deleteSheet": delete_sheet +"/sheets:v4/Request/findReplace": find_replace +"/sheets:v4/Request/addProtectedRange": add_protected_range +"/sheets:v4/Request/deleteProtectedRange": delete_protected_range +"/sheets:v4/Request/updateConditionalFormatRule": update_conditional_format_rule +"/sheets:v4/Request/setBasicFilter": set_basic_filter +"/sheets:v4/Request/mergeCells": merge_cells +"/sheets:v4/Request/addChart": add_chart +"/sheets:v4/Request/deleteConditionalFormatRule": delete_conditional_format_rule +"/sheets:v4/Request/updateChartSpec": update_chart_spec +"/sheets:v4/Request/deleteDimension": delete_dimension +"/sheets:v4/Request/deleteEmbeddedObject": delete_embedded_object +"/sheets:v4/Request/pasteData": paste_data +"/sheets:v4/Request/addConditionalFormatRule": add_conditional_format_rule +"/sheets:v4/Request/updateBorders": update_borders +"/sheets:v4/Request/autoResizeDimensions": auto_resize_dimensions +"/sheets:v4/Request/duplicateSheet": duplicate_sheet +"/sheets:v4/Request/duplicateFilterView": duplicate_filter_view +"/sheets:v4/Request/cutPaste": cut_paste +"/sheets:v4/Request/appendCells": append_cells +"/sheets:v4/Request/addNamedRange": add_named_range +"/sheets:v4/Request/autoFill": auto_fill +"/sheets:v4/Request/moveDimension": move_dimension +"/sheets:v4/Request/textToColumns": text_to_columns +"/sheets:v4/Request/insertDimension": insert_dimension +"/sheets:v4/Request/copyPaste": copy_paste +"/sheets:v4/BatchGetValuesResponse": batch_get_values_response +"/sheets:v4/BatchGetValuesResponse/valueRanges": value_ranges +"/sheets:v4/BatchGetValuesResponse/valueRanges/value_range": value_range +"/sheets:v4/BatchGetValuesResponse/spreadsheetId": spreadsheet_id +"/sheets:v4/InsertDimensionRequest": insert_dimension_request +"/sheets:v4/InsertDimensionRequest/inheritFromBefore": inherit_from_before +"/sheets:v4/InsertDimensionRequest/range": range +"/sheets:v4/DeleteEmbeddedObjectRequest": delete_embedded_object_request +"/sheets:v4/DeleteEmbeddedObjectRequest/objectId": object_id_prop +"/sheets:v4/DeleteConditionalFormatRuleResponse": delete_conditional_format_rule_response +"/sheets:v4/DeleteConditionalFormatRuleResponse/rule": rule "/siteVerification:v1/fields": fields "/siteVerification:v1/key": key "/siteVerification:v1/quotaUser": quota_user @@ -25615,6 +26020,7 @@ "/sqladmin:v1beta4/Settings/pricingPlan": pricing_plan "/sqladmin:v1beta4/Settings/replicationType": replication_type "/sqladmin:v1beta4/Settings/settingsVersion": settings_version +"/sqladmin:v1beta4/Settings/storageAutoResize": storage_auto_resize "/sqladmin:v1beta4/Settings/tier": tier "/sqladmin:v1beta4/SslCert": ssl_cert "/sqladmin:v1beta4/SslCert/cert": cert @@ -25634,6 +26040,7 @@ "/sqladmin:v1beta4/SslCertsInsertRequest/commonName": common_name "/sqladmin:v1beta4/SslCertsInsertResponse/clientCert": client_cert "/sqladmin:v1beta4/SslCertsInsertResponse/kind": kind +"/sqladmin:v1beta4/SslCertsInsertResponse/operation": operation "/sqladmin:v1beta4/SslCertsInsertResponse/serverCaCert": server_ca_cert "/sqladmin:v1beta4/SslCertsListResponse/items": items "/sqladmin:v1beta4/SslCertsListResponse/items/item": item @@ -27341,8 +27748,10 @@ "/youtube:v3/CaptionSnippet/videoId": video_id "/youtube:v3/CdnSettings": cdn_settings "/youtube:v3/CdnSettings/format": format +"/youtube:v3/CdnSettings/frameRate": frame_rate "/youtube:v3/CdnSettings/ingestionInfo": ingestion_info "/youtube:v3/CdnSettings/ingestionType": ingestion_type +"/youtube:v3/CdnSettings/resolution": resolution "/youtube:v3/Channel": channel "/youtube:v3/Channel/auditDetails": audit_details "/youtube:v3/Channel/brandingSettings": branding_settings @@ -27748,6 +28157,7 @@ "/youtube:v3/LiveBroadcastContentDetails/enableEmbed": enable_embed "/youtube:v3/LiveBroadcastContentDetails/enableLowLatency": enable_low_latency "/youtube:v3/LiveBroadcastContentDetails/monitorStream": monitor_stream +"/youtube:v3/LiveBroadcastContentDetails/projection": projection "/youtube:v3/LiveBroadcastContentDetails/recordFromStart": record_from_start "/youtube:v3/LiveBroadcastContentDetails/startWithSlate": start_with_slate "/youtube:v3/LiveBroadcastListResponse/etag": etag @@ -28189,6 +28599,7 @@ "/youtube:v3/VideoContentDetails/dimension": dimension "/youtube:v3/VideoContentDetails/duration": duration "/youtube:v3/VideoContentDetails/licensedContent": licensed_content +"/youtube:v3/VideoContentDetails/projection": projection "/youtube:v3/VideoContentDetails/regionRestriction": region_restriction "/youtube:v3/VideoContentDetailsRegionRestriction": video_content_details_region_restriction "/youtube:v3/VideoContentDetailsRegionRestriction/allowed": allowed diff --git a/generated/google/apis/adexchangebuyer_v1_4.rb b/generated/google/apis/adexchangebuyer_v1_4.rb index 2680653c1..bdcc65c1f 100644 --- a/generated/google/apis/adexchangebuyer_v1_4.rb +++ b/generated/google/apis/adexchangebuyer_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_4 VERSION = 'V1_4' - REVISION = '20160405' + REVISION = '20160509' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer_v1_4/classes.rb b/generated/google/apis/adexchangebuyer_v1_4/classes.rb index 725032482..54396d180 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/classes.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/classes.rb @@ -427,7 +427,7 @@ module Google # @return [Array] attr_accessor :proposals - # + # Web property id of the seller creating these orders # Corresponds to the JSON property `webPropertyCode` # @return [String] attr_accessor :web_property_code @@ -477,6 +477,11 @@ module Google # @return [Fixnum] attr_accessor :account_id + # The link to the Ad Preferences page. This is only supported for native ads. + # Corresponds to the JSON property `adChoicesDestinationUrl` + # @return [String] + attr_accessor :ad_choices_destination_url + # Detected advertiser id, if any. Read-only. This field should not be set in # requests. # Corresponds to the JSON property `advertiserId` @@ -619,6 +624,7 @@ module Google def update!(**args) @html_snippet = args[:html_snippet] if args.key?(:html_snippet) @account_id = args[:account_id] if args.key?(:account_id) + @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @agency_id = args[:agency_id] if args.key?(:agency_id) @@ -1042,7 +1048,8 @@ module Google include Google::Apis::Core::Hashable # Tracks which parties (if any) have paused a deal. The deal is considered - # paused if has_buyer_paused || has_seller_paused. + # paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused + # or the has_seller_paused bits can be set independently. # Corresponds to the JSON property `dealPauseStatus` # @return [Google::Apis::AdexchangebuyerV1_4::DealServingMetadataDealPauseStatus] attr_accessor :deal_pause_status @@ -1058,10 +1065,16 @@ module Google end # Tracks which parties (if any) have paused a deal. The deal is considered - # paused if has_buyer_paused || has_seller_paused. + # paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused + # or the has_seller_paused bits can be set independently. class DealServingMetadataDealPauseStatus include Google::Apis::Core::Hashable + # If the deal is paused, records which party paused the deal first. + # Corresponds to the JSON property `firstPausedBy` + # @return [String] + attr_accessor :first_paused_by + # # Corresponds to the JSON property `hasBuyerPaused` # @return [Boolean] @@ -1080,6 +1093,7 @@ module Google # Update properties of this object def update!(**args) + @first_paused_by = args[:first_paused_by] if args.key?(:first_paused_by) @has_buyer_paused = args[:has_buyer_paused] if args.key?(:has_buyer_paused) @has_seller_paused = args[:has_seller_paused] if args.key?(:has_seller_paused) end @@ -1153,6 +1167,12 @@ module Google class DealTermsGuaranteedFixedPriceTerms include Google::Apis::Core::Hashable + # External billing info for this Deal. This field is relevant when external + # billing info such as price has a different currency code than DFP/AdX. + # Corresponds to the JSON property `billingInfo` + # @return [Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTermsBillingInfo] + attr_accessor :billing_info + # Fixed price for the specified buyer. # Corresponds to the JSON property `fixedPrices` # @return [Array] @@ -1175,12 +1195,49 @@ module Google # Update properties of this object def update!(**args) + @billing_info = args[:billing_info] if args.key?(:billing_info) @fixed_prices = args[:fixed_prices] if args.key?(:fixed_prices) @guaranteed_impressions = args[:guaranteed_impressions] if args.key?(:guaranteed_impressions) @guaranteed_looks = args[:guaranteed_looks] if args.key?(:guaranteed_looks) end end + # + class DealTermsGuaranteedFixedPriceTermsBillingInfo + include Google::Apis::Core::Hashable + + # The timestamp (in ms since epoch) when the original reservation price for the + # deal was first converted to DFP currency. This is used to convert the + # contracted price into advertiser's currency without discrepancy. + # Corresponds to the JSON property `currencyConversionTimeMs` + # @return [String] + attr_accessor :currency_conversion_time_ms + + # The original contracted quantity (# impressions) for this deal. To ensure + # delivery, sometimes publisher will book the deal with a impression buffer, + # however clients are billed using the original contracted quantity. + # Corresponds to the JSON property `originalContractedQuantity` + # @return [String] + attr_accessor :original_contracted_quantity + + # The original reservation price for the deal, if the currency code is different + # from the one used in negotiation. + # Corresponds to the JSON property `price` + # @return [Google::Apis::AdexchangebuyerV1_4::Price] + attr_accessor :price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_conversion_time_ms = args[:currency_conversion_time_ms] if args.key?(:currency_conversion_time_ms) + @original_contracted_quantity = args[:original_contracted_quantity] if args.key?(:original_contracted_quantity) + @price = args[:price] if args.key?(:price) + end + end + # class DealTermsNonGuaranteedAuctionTerms include Google::Apis::Core::Hashable @@ -1241,7 +1298,7 @@ module Google # @return [String] attr_accessor :proposal_revision_number - # + # Indicates an optional action to take on the proposal # Corresponds to the JSON property `updateAction` # @return [String] attr_accessor :update_action @@ -2389,6 +2446,11 @@ module Google class PricePerBuyer include Google::Apis::Core::Hashable + # Optional access type for this buyer. + # Corresponds to the JSON property `auctionTier` + # @return [String] + attr_accessor :auction_tier + # The buyer who will pay this price. If unset, all buyers can pay this price (if # the advertisers match, and there's no more specific rule matching the buyer). # Corresponds to the JSON property `buyer` @@ -2406,6 +2468,7 @@ module Google # Update properties of this object def update!(**args) + @auction_tier = args[:auction_tier] if args.key?(:auction_tier) @buyer = args[:buyer] if args.key?(:buyer) @price = args[:price] if args.key?(:price) end @@ -2534,6 +2597,11 @@ module Google # @return [String] attr_accessor :publisher_profile_id + # This message carries publisher provided forecasting information. + # Corresponds to the JSON property `publisherProvidedForecast` + # @return [Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast] + attr_accessor :publisher_provided_forecast + # The revision number of the product. (readonly) # Corresponds to the JSON property `revisionNumber` # @return [String] @@ -2594,6 +2662,7 @@ module Google @private_auction_id = args[:private_auction_id] if args.key?(:private_auction_id) @product_id = args[:product_id] if args.key?(:product_id) @publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id) + @publisher_provided_forecast = args[:publisher_provided_forecast] if args.key?(:publisher_provided_forecast) @revision_number = args[:revision_number] if args.key?(:revision_number) @seller = args[:seller] if args.key?(:seller) @shared_targetings = args[:shared_targetings] if args.key?(:shared_targetings) @@ -2685,11 +2754,6 @@ module Google # @return [String] attr_accessor :last_updater_or_commentor_role - # - # Corresponds to the JSON property `lastUpdaterRole` - # @return [String] - attr_accessor :last_updater_role - # The name for the proposal (updatable) # Corresponds to the JSON property `name` # @return [String] @@ -2758,7 +2822,6 @@ module Google @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @last_updater_or_commentor_role = args[:last_updater_or_commentor_role] if args.key?(:last_updater_or_commentor_role) - @last_updater_role = args[:last_updater_role] if args.key?(:last_updater_role) @name = args[:name] if args.key?(:name) @negotiation_id = args[:negotiation_id] if args.key?(:negotiation_id) @originator_role = args[:originator_role] if args.key?(:originator_role) @@ -2793,7 +2856,7 @@ module Google # Direct contact for the publisher profile. # Corresponds to the JSON property `directContact` - # @return [Google::Apis::AdexchangebuyerV1_4::ContactInformation] + # @return [String] attr_accessor :direct_contact # Exchange where this publisher profile is from. E.g. AdX, Rubicon etc... @@ -2853,7 +2916,7 @@ module Google # Programmatic contact for the publisher profile. # Corresponds to the JSON property `programmaticContact` - # @return [Google::Apis::AdexchangebuyerV1_4::ContactInformation] + # @return [String] attr_accessor :programmatic_contact # The list of domains represented in this publisher profile. Empty if this is a diff --git a/generated/google/apis/adexchangebuyer_v1_4/representations.rb b/generated/google/apis/adexchangebuyer_v1_4/representations.rb index 0236eb516..d34de0666 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/representations.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/representations.rb @@ -202,6 +202,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DealTermsGuaranteedFixedPriceTermsBillingInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DealTermsNonGuaranteedAuctionTerms class Representation < Google::Apis::Core::JsonRepresentation; end @@ -591,6 +597,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :html_snippet, as: 'HTMLSnippet' property :account_id, as: 'accountId' + property :ad_choices_destination_url, as: 'adChoicesDestinationUrl' collection :advertiser_id, as: 'advertiserId' property :advertiser_name, as: 'advertiserName' property :agency_id, as: 'agencyId' @@ -745,6 +752,7 @@ module Google class DealServingMetadataDealPauseStatus # @private class Representation < Google::Apis::Core::JsonRepresentation + property :first_paused_by, as: 'firstPausedBy' property :has_buyer_paused, as: 'hasBuyerPaused' property :has_seller_paused, as: 'hasSellerPaused' end @@ -771,6 +779,8 @@ module Google class DealTermsGuaranteedFixedPriceTerms # @private class Representation < Google::Apis::Core::JsonRepresentation + property :billing_info, as: 'billingInfo', class: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTermsBillingInfo, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTermsBillingInfo::Representation + collection :fixed_prices, as: 'fixedPrices', class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer, decorator: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer::Representation property :guaranteed_impressions, as: 'guaranteedImpressions' @@ -778,6 +788,16 @@ module Google end end + class DealTermsGuaranteedFixedPriceTermsBillingInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency_conversion_time_ms, as: 'currencyConversionTimeMs' + property :original_contracted_quantity, as: 'originalContractedQuantity' + property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation + + end + end + class DealTermsNonGuaranteedAuctionTerms # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1105,6 +1125,7 @@ module Google class PricePerBuyer # @private class Representation < Google::Apis::Core::JsonRepresentation + property :auction_tier, as: 'auctionTier' property :buyer, as: 'buyer', class: Google::Apis::AdexchangebuyerV1_4::Buyer, decorator: Google::Apis::AdexchangebuyerV1_4::Buyer::Representation property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation @@ -1141,6 +1162,8 @@ module Google property :private_auction_id, as: 'privateAuctionId' property :product_id, as: 'productId' property :publisher_profile_id, as: 'publisherProfileId' + property :publisher_provided_forecast, as: 'publisherProvidedForecast', class: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast, decorator: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast::Representation + property :revision_number, as: 'revisionNumber' property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation @@ -1174,7 +1197,6 @@ module Google collection :labels, as: 'labels', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel::Representation property :last_updater_or_commentor_role, as: 'lastUpdaterOrCommentorRole' - property :last_updater_role, as: 'lastUpdaterRole' property :name, as: 'name' property :negotiation_id, as: 'negotiationId' property :originator_role, as: 'originatorRole' @@ -1196,8 +1218,7 @@ module Google property :account_id, as: 'accountId' property :audience, as: 'audience' property :buyer_pitch_statement, as: 'buyerPitchStatement' - property :direct_contact, as: 'directContact', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation - + property :direct_contact, as: 'directContact' property :exchange, as: 'exchange' property :google_plus_link, as: 'googlePlusLink' property :is_parent, as: 'isParent' @@ -1208,8 +1229,7 @@ module Google property :name, as: 'name' property :overview, as: 'overview' property :profile_id, as: 'profileId' - property :programmatic_contact, as: 'programmaticContact', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation - + property :programmatic_contact, as: 'programmaticContact' collection :publisher_domains, as: 'publisherDomains' property :publisher_profile_id, as: 'publisherProfileId' property :publisher_provided_forecast, as: 'publisherProvidedForecast', class: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast, decorator: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast::Representation diff --git a/generated/google/apis/adexchangebuyer_v1_4/service.rb b/generated/google/apis/adexchangebuyer_v1_4/service.rb index d65904d69..ce5c5b50c 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/service.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/service.rb @@ -673,7 +673,10 @@ module Google # List all the deals for a given proposal # @param [String] proposal_id - # The proposalId to get deals for. + # The proposalId to get deals for. To search across proposals specify order_id = + # '-' as part of the URL. + # @param [String] pql_query + # Query string to retrieve specific deals. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -695,11 +698,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_marketplacedeals(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_marketplacedeals(proposal_id, pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'proposals/{proposalId}/deals', options) command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse command.params['proposalId'] = proposal_id unless proposal_id.nil? + command.query['pqlQuery'] = pql_query unless pql_query.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? diff --git a/generated/google/apis/adexchangeseller_v2_0.rb b/generated/google/apis/adexchangeseller_v2_0.rb index d1a89ee3e..dba8c9732 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 = '20151127' + REVISION = '20160513' # View and manage your Ad Exchange data AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 5070f0169..b643efadb 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -71,7 +71,7 @@ module Google # List of alias objects. # Corresponds to the JSON property `aliases` - # @return [Array] + # @return [Array] attr_accessor :aliases # ETag of the resource. diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index 23ea3182e..ce9d652e1 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -390,8 +390,7 @@ module Google class Aliases # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :aliases, as: 'aliases', class: Google::Apis::AdminDirectoryV1::Alias, decorator: Google::Apis::AdminDirectoryV1::Alias::Representation - + collection :aliases, as: 'aliases' property :etag, as: 'etag' property :kind, as: 'kind' end diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index d57373843..45fc57372 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20160411' + REVISION = '20160507' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index f2f4a7b7f..7d5830f65 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 = '20160411' + REVISION = '20160507' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/analytics_v3.rb b/generated/google/apis/analytics_v3.rb index 9a3e34f79..563e06359 100644 --- a/generated/google/apis/analytics_v3.rb +++ b/generated/google/apis/analytics_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/analytics/ module AnalyticsV3 VERSION = 'V3' - REVISION = '20160308' + REVISION = '20160401' # View and manage your Google Analytics data AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' diff --git a/generated/google/apis/analyticsreporting_v4.rb b/generated/google/apis/analyticsreporting_v4.rb new file mode 100644 index 000000000..84debcf8b --- /dev/null +++ b/generated/google/apis/analyticsreporting_v4.rb @@ -0,0 +1,37 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/analyticsreporting_v4/service.rb' +require 'google/apis/analyticsreporting_v4/classes.rb' +require 'google/apis/analyticsreporting_v4/representations.rb' + +module Google + module Apis + # Google Analytics Reporting API + # + # Accesses Analytics report data. + # + # @see https://developers.google.com/analytics/devguides/reporting/core/v4/ + module AnalyticsreportingV4 + VERSION = 'V4' + REVISION = '20160512' + + # View your Google Analytics data + AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly' + + # View and manage your Google Analytics data + AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' + end + end +end diff --git a/generated/google/apis/analyticsreporting_v4/classes.rb b/generated/google/apis/analyticsreporting_v4/classes.rb new file mode 100644 index 000000000..55774a250 --- /dev/null +++ b/generated/google/apis/analyticsreporting_v4/classes.rb @@ -0,0 +1,1385 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AnalyticsreportingV4 + + # The headers for each of the pivot sections defined in the request. + class PivotHeader + include Google::Apis::Core::Hashable + + # The total number of groups for this pivot. + # Corresponds to the JSON property `totalPivotGroupsCount` + # @return [Fixnum] + attr_accessor :total_pivot_groups_count + + # A single pivot section header. + # Corresponds to the JSON property `pivotHeaderEntries` + # @return [Array] + attr_accessor :pivot_header_entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @total_pivot_groups_count = args[:total_pivot_groups_count] if args.key?(:total_pivot_groups_count) + @pivot_header_entries = args[:pivot_header_entries] if args.key?(:pivot_header_entries) + end + end + + # A metric in the request. + class Metric + include Google::Apis::Core::Hashable + + # An alias for the metric expression is an alternate name for the + # expression. The alias can be used for filtering and sorting. This field + # is optional and is useful if the expression is not a single metric but + # a complex expression which cannot be used in filtering and sorting. + # The alias is also used in the response column header. + # Corresponds to the JSON property `alias` + # @return [String] + attr_accessor :alias + + # Specifies how the metric expression should be formatted, for example + # `INTEGER`. + # Corresponds to the JSON property `formattingType` + # @return [String] + attr_accessor :formatting_type + + # A metric expression in the request. An expression is constructed from one + # or more metrics and numbers. Accepted operators include: Plus (+), Minus + # (-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis, + # Positive cardinal numbers (0-9), can include decimals and is limited to + # 1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the + # metric expression is just a single metric name like `ga:users`. + # Adding mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics + # will result in unexpected results. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alias = args[:alias] if args.key?(:alias) + @formatting_type = args[:formatting_type] if args.key?(:formatting_type) + @expression = args[:expression] if args.key?(:expression) + end + end + + # Column headers. + class ColumnHeader + include Google::Apis::Core::Hashable + + # The dimension names in the response. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # The headers for the metrics. + # Corresponds to the JSON property `metricHeader` + # @return [Google::Apis::AnalyticsreportingV4::MetricHeader] + attr_accessor :metric_header + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric_header = args[:metric_header] if args.key?(:metric_header) + end + end + + # Dynamic segment definition for defining the segment within the request. + # A segment can select users, sessions or both. + class DynamicSegment + include Google::Apis::Core::Hashable + + # SegmentDefinition defines the segment to be a set of SegmentFilters which + # are combined together with a logical `AND` operation. + # Corresponds to the JSON property `sessionSegment` + # @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition] + attr_accessor :session_segment + + # The name of the dynamic segment. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # SegmentDefinition defines the segment to be a set of SegmentFilters which + # are combined together with a logical `AND` operation. + # Corresponds to the JSON property `userSegment` + # @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition] + attr_accessor :user_segment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @session_segment = args[:session_segment] if args.key?(:session_segment) + @name = args[:name] if args.key?(:name) + @user_segment = args[:user_segment] if args.key?(:user_segment) + end + end + + # The headers for the metrics. + class MetricHeader + include Google::Apis::Core::Hashable + + # Headers for the metrics in the response. + # Corresponds to the JSON property `metricHeaderEntries` + # @return [Array] + attr_accessor :metric_header_entries + + # Headers for the pivots in the response. + # Corresponds to the JSON property `pivotHeaders` + # @return [Array] + attr_accessor :pivot_headers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metric_header_entries = args[:metric_header_entries] if args.key?(:metric_header_entries) + @pivot_headers = args[:pivot_headers] if args.key?(:pivot_headers) + end + end + + # The data response corresponding to the request. + class Report + include Google::Apis::Core::Hashable + + # Column headers. + # Corresponds to the JSON property `columnHeader` + # @return [Google::Apis::AnalyticsreportingV4::ColumnHeader] + attr_accessor :column_header + + # The data part of the report. + # Corresponds to the JSON property `data` + # @return [Google::Apis::AnalyticsreportingV4::ReportData] + attr_accessor :data + + # Page token to retrieve the next page of results in the list. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @column_header = args[:column_header] if args.key?(:column_header) + @data = args[:data] if args.key?(:data) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Filter Clause to be used in a segment definition, can be wither a metric or + # a dimension filter. + class SegmentFilterClause + include Google::Apis::Core::Hashable + + # Dimension filter specifies the filtering options on a dimension. + # Corresponds to the JSON property `dimensionFilter` + # @return [Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter] + attr_accessor :dimension_filter + + # Metric filter to be used in a segment filter clause. + # Corresponds to the JSON property `metricFilter` + # @return [Google::Apis::AnalyticsreportingV4::SegmentMetricFilter] + attr_accessor :metric_filter + + # Matches the complement (`!`) of the filter. + # Corresponds to the JSON property `not` + # @return [Boolean] + attr_accessor :not + alias_method :not?, :not + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter) + @metric_filter = args[:metric_filter] if args.key?(:metric_filter) + @not = args[:not] if args.key?(:not) + end + end + + # Dimension filter specifies the filtering options on a dimension. + class DimensionFilter + include Google::Apis::Core::Hashable + + # The dimension to filter on. A DimensionFilter must contain a dimension. + # Corresponds to the JSON property `dimensionName` + # @return [String] + attr_accessor :dimension_name + + # How to match the dimension to the expression. The default is REGEXP. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # Should the match be case sensitive? Default is false. + # Corresponds to the JSON property `caseSensitive` + # @return [Boolean] + attr_accessor :case_sensitive + alias_method :case_sensitive?, :case_sensitive + + # Strings or regular expression to match against. Only the first value of + # the list is used for comparison unless the operator is `IN_LIST`. + # If `IN_LIST` operator, then the entire list is used to filter the + # dimensions as explained in the description of the `IN_LIST` operator. + # Corresponds to the JSON property `expressions` + # @return [Array] + attr_accessor :expressions + + # Logical `NOT` operator. If this boolean is set to true, then the matching + # dimension values will be excluded in the report. The default is false. + # Corresponds to the JSON property `not` + # @return [Boolean] + attr_accessor :not + alias_method :not?, :not + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @operator = args[:operator] if args.key?(:operator) + @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) + @expressions = args[:expressions] if args.key?(:expressions) + @not = args[:not] if args.key?(:not) + end + end + + # Dimension filter specifies the filtering options on a dimension. + class SegmentDimensionFilter + include Google::Apis::Core::Hashable + + # Maximum comparison values for `BETWEEN` match type. + # Corresponds to the JSON property `maxComparisonValue` + # @return [String] + attr_accessor :max_comparison_value + + # Name of the dimension for which the filter is being applied. + # Corresponds to the JSON property `dimensionName` + # @return [String] + attr_accessor :dimension_name + + # Should the match be case sensitive, ignored for `IN_LIST` operator. + # Corresponds to the JSON property `caseSensitive` + # @return [Boolean] + attr_accessor :case_sensitive + alias_method :case_sensitive?, :case_sensitive + + # The operator to use to match the dimension with the expressions. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # The list of expressions, only the first element is used for all operators + # Corresponds to the JSON property `expressions` + # @return [Array] + attr_accessor :expressions + + # Minimum comparison values for `BETWEEN` match type. + # Corresponds to the JSON property `minComparisonValue` + # @return [String] + attr_accessor :min_comparison_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value) + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) + @operator = args[:operator] if args.key?(:operator) + @expressions = args[:expressions] if args.key?(:expressions) + @min_comparison_value = args[:min_comparison_value] if args.key?(:min_comparison_value) + end + end + + # The main request class which specifies the Reporting API request. + class ReportRequest + include Google::Apis::Core::Hashable + + # Defines a cohort group. + # For example: + # "cohortGroup": ` + # "cohorts": [` + # "name": "cohort 1", + # "type": "FIRST_VISIT_DATE", + # "dateRange": ` "startDate": "2015-08-01", "endDate": "2015-08-01" ` + # `,` + # "name": "cohort 2" + # "type": "FIRST_VISIT_DATE" + # "dateRange": ` "startDate": "2015-07-01", "endDate": "2015-07-01" ` + # `] + # ` + # Corresponds to the JSON property `cohortGroup` + # @return [Google::Apis::AnalyticsreportingV4::CohortGroup] + attr_accessor :cohort_group + + # Dimensions requested in the request. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # The metric filter clauses. They are logically combined with the `AND` + # operator. Metric filters look at only the first date range and not the + # comparing date range. Note that filtering on metrics occurs after the + # metrics are aggregated. + # Corresponds to the JSON property `metricFilterClauses` + # @return [Array] + attr_accessor :metric_filter_clauses + + # If set to true, hides the total of all metrics for all the matching rows, + # for every date range. The default false and will return the totals. + # Corresponds to the JSON property `hideTotals` + # @return [Boolean] + attr_accessor :hide_totals + alias_method :hide_totals?, :hide_totals + + # If set to false, the response does not include rows if all the retrieved + # metrics are equal to zero. The default is false which will exclude these + # rows. + # Corresponds to the JSON property `includeEmptyRows` + # @return [Boolean] + attr_accessor :include_empty_rows + alias_method :include_empty_rows?, :include_empty_rows + + # The dimension filter clauses for filtering Dimension Values. They are + # logically combined with the `AND` operator. Note that filtering occurs + # before any dimensions are aggregated, so that the returned metrics + # represent the total for only the relevant dimensions. + # Corresponds to the JSON property `dimensionFilterClauses` + # @return [Array] + attr_accessor :dimension_filter_clauses + + # The pivot definitions. + # Corresponds to the JSON property `pivots` + # @return [Array] + attr_accessor :pivots + + # Date ranges in the request. The request can have a maximum of 2 date + # ranges. The response will contain a set of metric values for each + # combination of the dimensions for each date range in the request. So, if + # there are two date ranges, there will be two set of metric values, one for + # the original date range and one for the second date range. + # The `reportRequest.dateRanges` field should not be specified for cohorts + # or Lifetime value requests. + # If a date range is not provided, the default date range is (startDate: + # current date - 7 days, endDate: current date - 1 day) + # Corresponds to the JSON property `dateRanges` + # @return [Array] + attr_accessor :date_ranges + + # Segment the data returned for the request. A segment definition helps look + # at a subset of the segment request. A request can contain up to four + # segments. All requests should have the same segment definitions. Requests + # with segments must have the `ga:segment` dimension. + # Corresponds to the JSON property `segments` + # @return [Array] + attr_accessor :segments + + # The desired sampling level. If the sampling level is not specified the + # DEFAULT sampling level will be used. All requests should have same + # `samplingLevel`. + # Corresponds to the JSON property `samplingLevel` + # @return [String] + attr_accessor :sampling_level + + # Metrics, the quantitative measurements, requested in the request. + # Requests must specify at least one metric. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # Page size is for paging and specifies the maximum number of returned rows. + # Page size should be >= 0. A query returns the default of 1,000 rows. + # The Analytics Core Reporting API returns a maximum of 10,000 rows per + # request, no matter how many you ask for. It can also return fewer rows + # than requested, if there aren't as many dimension segments as you expect. + # For instance, there are fewer than 300 possible values for `ga:country`, + # so when segmenting only by country, you can't get more than 300 rows, + # even if you set `pageSize` to a higher value. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Sort order on output rows. To compare two rows, the elements of the + # following are applied in order until a difference is found. All date + # ranges in the output get the same row order. + # Corresponds to the JSON property `orderBys` + # @return [Array] + attr_accessor :order_bys + + # Dimension or metric filters that restrict the data returned for your + # request. To use the `filtersExpression`, supply a dimension or metric on + # which to filter, followed by the filter expression. For example, the + # following expression selects `ga:browser` dimension which starts with + # Firefox; `ga:browser=~^Firefox`. For more information on dimensions + # and metric filters, see + # [Filters reference](https://developers.google.com/analytics/devguides/ + # reporting/core/v3/reference#filters). + # Corresponds to the JSON property `filtersExpression` + # @return [String] + attr_accessor :filters_expression + + # If set to true, hides the minimum and maximum across all matching rows. + # The default is false and the value ranges are returned. + # Corresponds to the JSON property `hideValueRanges` + # @return [Boolean] + attr_accessor :hide_value_ranges + alias_method :hide_value_ranges?, :hide_value_ranges + + # Unique View Id for retrieving Analytics data. + # Corresponds to the JSON property `viewId` + # @return [String] + attr_accessor :view_id + + # A continuation token to get the next page of the results. Adding this to + # the request will return the rows after the pageToken. The pageToken should + # be the value returned in the nextPageToken parameter in the response to + # the GetReports request. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cohort_group = args[:cohort_group] if args.key?(:cohort_group) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric_filter_clauses = args[:metric_filter_clauses] if args.key?(:metric_filter_clauses) + @hide_totals = args[:hide_totals] if args.key?(:hide_totals) + @include_empty_rows = args[:include_empty_rows] if args.key?(:include_empty_rows) + @dimension_filter_clauses = args[:dimension_filter_clauses] if args.key?(:dimension_filter_clauses) + @pivots = args[:pivots] if args.key?(:pivots) + @date_ranges = args[:date_ranges] if args.key?(:date_ranges) + @segments = args[:segments] if args.key?(:segments) + @sampling_level = args[:sampling_level] if args.key?(:sampling_level) + @metrics = args[:metrics] if args.key?(:metrics) + @page_size = args[:page_size] if args.key?(:page_size) + @order_bys = args[:order_bys] if args.key?(:order_bys) + @filters_expression = args[:filters_expression] if args.key?(:filters_expression) + @hide_value_ranges = args[:hide_value_ranges] if args.key?(:hide_value_ranges) + @view_id = args[:view_id] if args.key?(:view_id) + @page_token = args[:page_token] if args.key?(:page_token) + end + end + + # A Simple segment conditions consist of one or more dimension/metric + # conditions that can be combined. + class SimpleSegment + include Google::Apis::Core::Hashable + + # A list of segment filters groups which are combined with logical `AND` + # operator. + # Corresponds to the JSON property `orFiltersForSegment` + # @return [Array] + attr_accessor :or_filters_for_segment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @or_filters_for_segment = args[:or_filters_for_segment] if args.key?(:or_filters_for_segment) + end + end + + # SegmentDefinition defines the segment to be a set of SegmentFilters which + # are combined together with a logical `AND` operation. + class SegmentDefinition + include Google::Apis::Core::Hashable + + # A segment is defined by a set of segment filters which are combined + # together with a logical `AND` operation. + # Corresponds to the JSON property `segmentFilters` + # @return [Array] + attr_accessor :segment_filters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @segment_filters = args[:segment_filters] if args.key?(:segment_filters) + end + end + + # Metric filter to be used in a segment filter clause. + class SegmentMetricFilter + include Google::Apis::Core::Hashable + + # The metric that will be filtered on. A `metricFilter` must contain a + # metric name. + # Corresponds to the JSON property `metricName` + # @return [String] + attr_accessor :metric_name + + # Specifies is the operation to perform to compare the metric. The default + # is `EQUAL`. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # The value to compare against. If the operator is `BETWEEN`, this value is + # treated as minimum comparison value. + # Corresponds to the JSON property `comparisonValue` + # @return [String] + attr_accessor :comparison_value + + # Scope for a metric defines the level at which that metric is defined. The + # specified metric scope must be equal to or greater than its primary scope + # as defined in the data model. The primary scope is defined by if the + # segment is selecting users or sessions. + # Corresponds to the JSON property `scope` + # @return [String] + attr_accessor :scope + + # Max comparison value is only used for `BETWEEN` operator. + # Corresponds to the JSON property `maxComparisonValue` + # @return [String] + attr_accessor :max_comparison_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metric_name = args[:metric_name] if args.key?(:metric_name) + @operator = args[:operator] if args.key?(:operator) + @comparison_value = args[:comparison_value] if args.key?(:comparison_value) + @scope = args[:scope] if args.key?(:scope) + @max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value) + end + end + + # The data part of the report. + class ReportData + include Google::Apis::Core::Hashable + + # Total number of matching rows for this query. + # Corresponds to the JSON property `rowCount` + # @return [Fixnum] + attr_accessor :row_count + + # If sampling was enabled, this returns the total number of samples + # present, one entry per date range. + # Corresponds to the JSON property `samplingSpaceSizes` + # @return [Array] + attr_accessor :sampling_space_sizes + + # Minimum and maximum values seen over all matching rows. These are both + # empty when `hideValueRanges` in the request is false, or when + # rowCount is zero. + # Corresponds to the JSON property `maximums` + # @return [Array] + attr_accessor :maximums + + # If sampling was enabled, this returns the total number of samples + # read, one entry per date range + # Corresponds to the JSON property `samplesReadCounts` + # @return [Array] + attr_accessor :samples_read_counts + + # Minimum and maximum values seen over all matching rows. These are both + # empty when `hideValueRanges` in the request is false, or when + # rowCount is zero. + # Corresponds to the JSON property `minimums` + # @return [Array] + attr_accessor :minimums + + # There's one ReportRow for every unique combination of dimensions. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + # For each requested date range, for the set of all rows that match + # the query, every requested value format gets a total. The total + # for a value format is computed by first totaling the metrics + # mentioned in the value format and then evaluating the value + # format as a scalar expression. E.g., The "totals" for + # `3 / (ga:sessions + 2)` we compute + # `3 / ((sum of all relevant ga:sessions) + 2)`. + # Totals are computed before pagination. + # Corresponds to the JSON property `totals` + # @return [Array] + attr_accessor :totals + + # Indicates if response to this request is golden or not. Data is + # golden when the exact same request will not produce any new results if + # asked at a later point in time. + # Corresponds to the JSON property `isDataGolden` + # @return [Boolean] + attr_accessor :is_data_golden + alias_method :is_data_golden?, :is_data_golden + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @row_count = args[:row_count] if args.key?(:row_count) + @sampling_space_sizes = args[:sampling_space_sizes] if args.key?(:sampling_space_sizes) + @maximums = args[:maximums] if args.key?(:maximums) + @samples_read_counts = args[:samples_read_counts] if args.key?(:samples_read_counts) + @minimums = args[:minimums] if args.key?(:minimums) + @rows = args[:rows] if args.key?(:rows) + @totals = args[:totals] if args.key?(:totals) + @is_data_golden = args[:is_data_golden] if args.key?(:is_data_golden) + end + end + + # The batch request containing multiple report request. + class GetReportsRequest + include Google::Apis::Core::Hashable + + # Requests, each request will have a separate response. + # There can be a maximum of 5 requests. All requests should have the same + # `dateRange`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`. + # Corresponds to the JSON property `reportRequests` + # @return [Array] + attr_accessor :report_requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @report_requests = args[:report_requests] if args.key?(:report_requests) + end + end + + # Specifies the sorting options. + class OrderBy + include Google::Apis::Core::Hashable + + # The sorting order for the field. + # Corresponds to the JSON property `sortOrder` + # @return [String] + attr_accessor :sort_order + + # The order type. The default orderType is `VALUE`. + # Corresponds to the JSON property `orderType` + # @return [String] + attr_accessor :order_type + + # The field which to sort by. The default sort order is ascending. Example: + # `ga:browser`. + # Note, that you can only specify one field for sort here. For example, + # `ga:browser, ga:city` is not valid. + # Corresponds to the JSON property `fieldName` + # @return [String] + attr_accessor :field_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sort_order = args[:sort_order] if args.key?(:sort_order) + @order_type = args[:order_type] if args.key?(:order_type) + @field_name = args[:field_name] if args.key?(:field_name) + end + end + + # Defines a cohort. A cohort is a group of users who share a common + # characteristic. For example, all users with the same acquisition date + # belong to the same cohort. + class Cohort + include Google::Apis::Core::Hashable + + # Type of the cohort. The only supported type as of now is + # `FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated + # as `FIRST_VISIT_DATE` type cohort. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # A contiguous set of days: startDate, startDate + 1 day, ..., endDate. + # The start and end dates are specified in + # [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) date format `YYYY-MM-DD`. + # Corresponds to the JSON property `dateRange` + # @return [Google::Apis::AnalyticsreportingV4::DateRange] + attr_accessor :date_range + + # A unique name for the cohort. If not defined name will be auto-generated + # with values cohort_[1234...]. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @date_range = args[:date_range] if args.key?(:date_range) + @name = args[:name] if args.key?(:name) + end + end + + # A list of segment filters in the `OR` group are combined with the logical OR + # operator. + class OrFiltersForSegment + include Google::Apis::Core::Hashable + + # List of segment filters to be combined with a `OR` operator. + # Corresponds to the JSON property `segmentFilterClauses` + # @return [Array] + attr_accessor :segment_filter_clauses + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @segment_filter_clauses = args[:segment_filter_clauses] if args.key?(:segment_filter_clauses) + end + end + + # Sequence conditions consist of one or more steps, where each step is defined + # by one or more dimension/metric conditions. Multiple steps can be combined + # with special sequence operators. + class SequenceSegment + include Google::Apis::Core::Hashable + + # If set, first step condition must match the first hit of the visitor (in + # the date range). + # Corresponds to the JSON property `firstStepShouldMatchFirstHit` + # @return [Boolean] + attr_accessor :first_step_should_match_first_hit + alias_method :first_step_should_match_first_hit?, :first_step_should_match_first_hit + + # The list of steps in the sequence. + # Corresponds to the JSON property `segmentSequenceSteps` + # @return [Array] + attr_accessor :segment_sequence_steps + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @first_step_should_match_first_hit = args[:first_step_should_match_first_hit] if args.key?(:first_step_should_match_first_hit) + @segment_sequence_steps = args[:segment_sequence_steps] if args.key?(:segment_sequence_steps) + end + end + + # SegmentFilter defines the segment to be either a simple or a sequence + # segment. A simple segment condition contains dimension and metric conditions + # to select the sessions or users. A sequence segment condition can be used to + # select users or sessions based on sequential conditions. + class SegmentFilter + include Google::Apis::Core::Hashable + + # Sequence conditions consist of one or more steps, where each step is defined + # by one or more dimension/metric conditions. Multiple steps can be combined + # with special sequence operators. + # Corresponds to the JSON property `sequenceSegment` + # @return [Google::Apis::AnalyticsreportingV4::SequenceSegment] + attr_accessor :sequence_segment + + # If true, match the complement of simple or sequence segment. + # For example, to match all visits not from "New York", we can define the + # segment as follows: + # "sessionSegment": ` + # "segmentFilters": [` + # "simpleSegment" :` + # "orFiltersForSegment": [` + # "segmentFilterClauses":[` + # "dimensionFilter": ` + # "dimensionName": "ga:city", + # "expressions": ["New York"] + # ` + # `] + # `] + # `, + # "not": "True" + # `] + # `, + # Corresponds to the JSON property `not` + # @return [Boolean] + attr_accessor :not + alias_method :not?, :not + + # A Simple segment conditions consist of one or more dimension/metric + # conditions that can be combined. + # Corresponds to the JSON property `simpleSegment` + # @return [Google::Apis::AnalyticsreportingV4::SimpleSegment] + attr_accessor :simple_segment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sequence_segment = args[:sequence_segment] if args.key?(:sequence_segment) + @not = args[:not] if args.key?(:not) + @simple_segment = args[:simple_segment] if args.key?(:simple_segment) + end + end + + # The headers for the each of the metric column corresponding to the metrics + # requested in the pivots section of the response. + class PivotHeaderEntry + include Google::Apis::Core::Hashable + + # The name of the dimensions in the pivotDimensionValues field in the + # response. + # Corresponds to the JSON property `dimensionNames` + # @return [Array] + attr_accessor :dimension_names + + # The values for the dimensions in the pivot. + # Corresponds to the JSON property `dimensionValues` + # @return [Array] + attr_accessor :dimension_values + + # Header for the metrics. + # Corresponds to the JSON property `metric` + # @return [Google::Apis::AnalyticsreportingV4::MetricHeaderEntry] + attr_accessor :metric + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension_names = args[:dimension_names] if args.key?(:dimension_names) + @dimension_values = args[:dimension_values] if args.key?(:dimension_values) + @metric = args[:metric] if args.key?(:metric) + end + end + + # A group of dimension filters. Set the operator value to specify how + # the filters are logically combined. + class DimensionFilterClause + include Google::Apis::Core::Hashable + + # The operator for combining multiple dimension filters. If unspecified, it + # is treated as an `OR`. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # The repeated set of filters. They are logically combined based on the + # operator specified. + # Corresponds to the JSON property `filters` + # @return [Array] + attr_accessor :filters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operator = args[:operator] if args.key?(:operator) + @filters = args[:filters] if args.key?(:filters) + end + end + + # A segment sequence definition. + class SegmentSequenceStep + include Google::Apis::Core::Hashable + + # Specifies if the step immediately precedes or can be any time before the + # next step. + # Corresponds to the JSON property `matchType` + # @return [String] + attr_accessor :match_type + + # A sequence is specified with a list of Or grouped filters which are + # combined with `AND` operator. + # Corresponds to the JSON property `orFiltersForSegment` + # @return [Array] + attr_accessor :or_filters_for_segment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @match_type = args[:match_type] if args.key?(:match_type) + @or_filters_for_segment = args[:or_filters_for_segment] if args.key?(:or_filters_for_segment) + end + end + + # The Pivot describes the pivot section in the request. + # The Pivot helps rearrange the information in the table for certain reports + # by pivoting your data on a second dimension. + class Pivot + include Google::Apis::Core::Hashable + + # A list of dimensions to show as pivot columns. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # Metrics to aggregate and return. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # Specifies the maximum number of groups to return. + # The default value is 10, also the maximum value is 1,000. + # Corresponds to the JSON property `maxGroupCount` + # @return [Fixnum] + attr_accessor :max_group_count + + # DimensionFilterClauses are logically combined with an `AND` operator: only + # data that is included by all these DimensionFilterClauses contributes to + # the values in this pivot region. Dimension filters can be used to restrict + # the columns shown in the pivot region. For example if you have + # `ga:browser` as the requested dimension in the pivot region, and you + # specify key filters to restrict `ga:browser` to only "IE" or "Firefox", + # then only those two browsers would show up as columns. + # Corresponds to the JSON property `dimensionFilterClauses` + # @return [Array] + attr_accessor :dimension_filter_clauses + + # If k metrics were requested, then the response will contain some + # data-dependent multiple of k columns in the report. E.g., if you pivoted + # on the dimension `ga:browser` then you'd get k columns for "Firefox", k + # columns for "IE", k columns for "Chrome", etc. The ordering of the groups + # of columns is determined by descending order of "total" for the first of + # the k values. Ties are broken by lexicographic ordering of the first + # pivot dimension, then lexicographic ordering of the second pivot + # dimension, and so on. E.g., if the totals for the first value for + # Firefox, IE, and Chrome were 8, 2, 8, respectively, the order of columns + # would be Chrome, Firefox, IE. + # The following let you choose which of the groups of k columns are + # included in the response. + # Corresponds to the JSON property `startGroup` + # @return [Fixnum] + attr_accessor :start_group + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metrics = args[:metrics] if args.key?(:metrics) + @max_group_count = args[:max_group_count] if args.key?(:max_group_count) + @dimension_filter_clauses = args[:dimension_filter_clauses] if args.key?(:dimension_filter_clauses) + @start_group = args[:start_group] if args.key?(:start_group) + end + end + + # Used to return a list of metrics for a single DateRange / dimension + # combination + class DateRangeValues + include Google::Apis::Core::Hashable + + # Each value corresponds to each Metric in the request. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + # The values of each pivot region. + # Corresponds to the JSON property `pivotValueRegions` + # @return [Array] + attr_accessor :pivot_value_regions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @values = args[:values] if args.key?(:values) + @pivot_value_regions = args[:pivot_value_regions] if args.key?(:pivot_value_regions) + end + end + + # Represents a group of metric filters. + # Set the operator value to specify how the filters are logically combined. + class MetricFilterClause + include Google::Apis::Core::Hashable + + # The operator for combining multiple metric filters. If unspecified, it is + # treated as an `OR`. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # The repeated set of filters. They are logically combined based on the + # operator specified. + # Corresponds to the JSON property `filters` + # @return [Array] + attr_accessor :filters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operator = args[:operator] if args.key?(:operator) + @filters = args[:filters] if args.key?(:filters) + end + end + + # The segment definition, if the report needs to be segmented. + # A Segment is a subset of the Analytics data. For example, of the entire + # set of users, one Segment might be users from a particular country or city. + class Segment + include Google::Apis::Core::Hashable + + # Dynamic segment definition for defining the segment within the request. + # A segment can select users, sessions or both. + # Corresponds to the JSON property `dynamicSegment` + # @return [Google::Apis::AnalyticsreportingV4::DynamicSegment] + attr_accessor :dynamic_segment + + # The segment ID of a built-in or custom segment, for example `gaid::-3`. + # Corresponds to the JSON property `segmentId` + # @return [String] + attr_accessor :segment_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dynamic_segment = args[:dynamic_segment] if args.key?(:dynamic_segment) + @segment_id = args[:segment_id] if args.key?(:segment_id) + end + end + + # A contiguous set of days: startDate, startDate + 1 day, ..., endDate. + # The start and end dates are specified in + # [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) date format `YYYY-MM-DD`. + class DateRange + include Google::Apis::Core::Hashable + + # The start date for the query in the format `YYYY-MM-DD`. + # Corresponds to the JSON property `startDate` + # @return [String] + attr_accessor :start_date + + # The end date for the query in the format `YYYY-MM-DD`. + # Corresponds to the JSON property `endDate` + # @return [String] + attr_accessor :end_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @start_date = args[:start_date] if args.key?(:start_date) + @end_date = args[:end_date] if args.key?(:end_date) + end + end + + # A row in the report. + class ReportRow + include Google::Apis::Core::Hashable + + # List of requested dimensions. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # List of metrics for each requested DateRange + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metrics = args[:metrics] if args.key?(:metrics) + end + end + + # Defines a cohort group. + # For example: + # "cohortGroup": ` + # "cohorts": [` + # "name": "cohort 1", + # "type": "FIRST_VISIT_DATE", + # "dateRange": ` "startDate": "2015-08-01", "endDate": "2015-08-01" ` + # `,` + # "name": "cohort 2" + # "type": "FIRST_VISIT_DATE" + # "dateRange": ` "startDate": "2015-07-01", "endDate": "2015-07-01" ` + # `] + # ` + class CohortGroup + include Google::Apis::Core::Hashable + + # Enable Life Time Value (LTV). LTV measures lifetime value for users + # acquired through different channels. + # Please see: + # [Cohort Analysis](https://support.google.com/analytics/answer/6074676) and + # [Lifetime Value](https://support.google.com/analytics/answer/6182550) + # If the value of lifetimeValue is false: + # - The metric values are similar to the values in the web interface cohort + # report. + # - The cohort definition date ranges must be aligned to the calendar week + # and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in + # the cohort definition should be a Sunday and the `endDate` should be the + # following Saturday, and for `ga:cohortNthMonth`, the `startDate` + # should be the 1st of the month and `endDate` should be the last day + # of the month. + # When the lifetimeValue is true: + # - The metric values will correspond to the values in the web interface + # LifeTime value report. + # - The Lifetime Value report shows you how user value (Revenue) and + # engagement (Appviews, Goal Completions, Sessions, and Session Duration) + # grow during the 90 days after a user is acquired. + # - The metrics are calculated as a cumulative average per user per the time + # increment. + # - The cohort definition date ranges need not be aligned to the calendar + # week and month boundaries. + # - The `viewId` must be an + # [app view ID](https://support.google.com/analytics/answer/2649553# + # WebVersusAppViews) + # Corresponds to the JSON property `lifetimeValue` + # @return [Boolean] + attr_accessor :lifetime_value + alias_method :lifetime_value?, :lifetime_value + + # The definition for the cohort. + # Corresponds to the JSON property `cohorts` + # @return [Array] + attr_accessor :cohorts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @lifetime_value = args[:lifetime_value] if args.key?(:lifetime_value) + @cohorts = args[:cohorts] if args.key?(:cohorts) + end + end + + # The main response class which holds the reports from the Reporting API + # `batchGet` call. + class GetReportsResponse + include Google::Apis::Core::Hashable + + # Responses corresponding to each of the request. + # Corresponds to the JSON property `reports` + # @return [Array] + attr_accessor :reports + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reports = args[:reports] if args.key?(:reports) + end + end + + # Header for the metrics. + class MetricHeaderEntry + include Google::Apis::Core::Hashable + + # The type of the metric, for example `INTEGER`. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The name of the header. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @name = args[:name] if args.key?(:name) + end + end + + # MetricFilter specifies the filter on a metric. + class MetricFilter + include Google::Apis::Core::Hashable + + # The metric that will be filtered on. A metricFilter must contain a metric + # name. A metric name can be an alias earlier defined as a metric or it can + # also be a metric expression. + # Corresponds to the JSON property `metricName` + # @return [String] + attr_accessor :metric_name + + # Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the + # comparisonValue, the default is `EQUAL`. If the operator is + # `IS_MISSING`, checks if the metric is missing and would ignore the + # comparisonValue. + # Corresponds to the JSON property `operator` + # @return [String] + attr_accessor :operator + + # The value to compare against. + # Corresponds to the JSON property `comparisonValue` + # @return [String] + attr_accessor :comparison_value + + # Logical `NOT` operator. If this boolean is set to true, then the matching + # metric values will be excluded in the report. The default is false. + # Corresponds to the JSON property `not` + # @return [Boolean] + attr_accessor :not + alias_method :not?, :not + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metric_name = args[:metric_name] if args.key?(:metric_name) + @operator = args[:operator] if args.key?(:operator) + @comparison_value = args[:comparison_value] if args.key?(:comparison_value) + @not = args[:not] if args.key?(:not) + end + end + + # A dimension in the request. + class Dimension + include Google::Apis::Core::Hashable + + # If non-empty, we place dimension values into buckets after string to + # int64. Dimension values that are not the string representation of an + # integral value will be converted to zero. The bucket values have to be in + # increasing order. Each bucket is closed on the lower end, and open on the + # upper end. The "first" bucket includes all values less than the first + # boundary, the "last" bucket includes all values up to infinity. Dimension + # values that fall in a bucket get transformed to a new dimension value. For + # example, if one gives a list of "0, 1, 3, 4, 7", then we return the + # following buckets: + # - bucket #1: values < 0, dimension value "<0" + # - bucket #2: values in [0,1), dimension value "0" + # - bucket #3: values in [1,3), dimension value "1-2" + # - bucket #4: values in [3,4), dimension value "3" + # - bucket #5: values in [4,7), dimension value "4-6" + # - bucket #6: values >= 7, dimension value "7+" + # NOTE: If you are applying histogram mutation on any dimension, and using + # that dimension in sort, you will want to use the sort type + # `HISTOGRAM_BUCKET` for that purpose. Without that the dimension values + # will be sorted according to dictionary + # (lexicographic) order. For example the ascending dictionary order is: + # "<50", "1001+", "121-1000", "50-120" + # And the ascending `HISTOGRAM_BUCKET` order is: + # "<50", "50-120", "121-1000", "1001+" + # The client has to explicitly request `"orderType": "HISTOGRAM_BUCKET"` + # for a histogram-mutated dimension. + # Corresponds to the JSON property `histogramBuckets` + # @return [Array] + attr_accessor :histogram_buckets + + # Name of the dimension to fetch, for example `ga:browser`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @histogram_buckets = args[:histogram_buckets] if args.key?(:histogram_buckets) + @name = args[:name] if args.key?(:name) + end + end + + # The metric values in the pivot region. + class PivotValueRegion + include Google::Apis::Core::Hashable + + # The values of the metrics in each of the pivot regions. + # 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) + @values = args[:values] if args.key?(:values) + end + end + end + end +end diff --git a/generated/google/apis/analyticsreporting_v4/representations.rb b/generated/google/apis/analyticsreporting_v4/representations.rb new file mode 100644 index 000000000..d82cd1b4e --- /dev/null +++ b/generated/google/apis/analyticsreporting_v4/representations.rb @@ -0,0 +1,597 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AnalyticsreportingV4 + + class PivotHeader + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metric + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ColumnHeader + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DynamicSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricHeader + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Report + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SegmentFilterClause + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DimensionFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SegmentDimensionFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SimpleSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SegmentDefinition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SegmentMetricFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetReportsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderBy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Cohort + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrFiltersForSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SequenceSegment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SegmentFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotHeaderEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DimensionFilterClause + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SegmentSequenceStep + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Pivot + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DateRangeValues + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricFilterClause + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Segment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DateRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportRow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CohortGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetReportsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricHeaderEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Dimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotValueRegion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotHeader + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :total_pivot_groups_count, as: 'totalPivotGroupsCount' + collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation + + end + end + + class Metric + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alias, as: 'alias' + property :formatting_type, as: 'formattingType' + property :expression, as: 'expression' + end + end + + class ColumnHeader + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dimensions, as: 'dimensions' + property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation + + end + end + + class DynamicSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation + + property :name, as: 'name' + property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation + + end + end + + class MetricHeader + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :metric_header_entries, as: 'metricHeaderEntries', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation + + collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation + + end + end + + class Report + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation + + property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class SegmentFilterClause + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation + + property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation + + property :not, as: 'not' + end + end + + class DimensionFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension_name, as: 'dimensionName' + property :operator, as: 'operator' + property :case_sensitive, as: 'caseSensitive' + collection :expressions, as: 'expressions' + property :not, as: 'not' + end + end + + class SegmentDimensionFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_comparison_value, as: 'maxComparisonValue' + property :dimension_name, as: 'dimensionName' + property :case_sensitive, as: 'caseSensitive' + property :operator, as: 'operator' + collection :expressions, as: 'expressions' + property :min_comparison_value, as: 'minComparisonValue' + end + end + + class ReportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation + + collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation + + collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation + + property :hide_totals, as: 'hideTotals' + property :include_empty_rows, as: 'includeEmptyRows' + collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation + + collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation + + collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation + + collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation + + property :sampling_level, as: 'samplingLevel' + collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation + + property :page_size, as: 'pageSize' + collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsreportingV4::OrderBy, decorator: Google::Apis::AnalyticsreportingV4::OrderBy::Representation + + property :filters_expression, as: 'filtersExpression' + property :hide_value_ranges, as: 'hideValueRanges' + property :view_id, as: 'viewId' + property :page_token, as: 'pageToken' + end + end + + class SimpleSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation + + end + end + + class SegmentDefinition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation + + end + end + + class SegmentMetricFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metric_name, as: 'metricName' + property :operator, as: 'operator' + property :comparison_value, as: 'comparisonValue' + property :scope, as: 'scope' + property :max_comparison_value, as: 'maxComparisonValue' + end + end + + class ReportData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :row_count, as: 'rowCount' + collection :sampling_space_sizes, as: 'samplingSpaceSizes' + collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation + + collection :samples_read_counts, as: 'samplesReadCounts' + collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation + + collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation + + collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation + + property :is_data_golden, as: 'isDataGolden' + end + end + + class GetReportsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :report_requests, as: 'reportRequests', class: Google::Apis::AnalyticsreportingV4::ReportRequest, decorator: Google::Apis::AnalyticsreportingV4::ReportRequest::Representation + + end + end + + class OrderBy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sort_order, as: 'sortOrder' + property :order_type, as: 'orderType' + property :field_name, as: 'fieldName' + end + end + + class Cohort + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation + + property :name, as: 'name' + end + end + + class OrFiltersForSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :segment_filter_clauses, as: 'segmentFilterClauses', class: Google::Apis::AnalyticsreportingV4::SegmentFilterClause, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilterClause::Representation + + end + end + + class SequenceSegment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit' + collection :segment_sequence_steps, as: 'segmentSequenceSteps', class: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep, decorator: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep::Representation + + end + end + + class SegmentFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation + + property :not, as: 'not' + property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation + + end + end + + class PivotHeaderEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dimension_names, as: 'dimensionNames' + collection :dimension_values, as: 'dimensionValues' + property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation + + end + end + + class DimensionFilterClause + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operator, as: 'operator' + collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation + + end + end + + class SegmentSequenceStep + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :match_type, as: 'matchType' + collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation + + end + end + + class Pivot + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation + + collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation + + property :max_group_count, as: 'maxGroupCount' + collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation + + property :start_group, as: 'startGroup' + end + end + + class DateRangeValues + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values' + collection :pivot_value_regions, as: 'pivotValueRegions', class: Google::Apis::AnalyticsreportingV4::PivotValueRegion, decorator: Google::Apis::AnalyticsreportingV4::PivotValueRegion::Representation + + end + end + + class MetricFilterClause + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operator, as: 'operator' + collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation + + end + end + + class Segment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation + + property :segment_id, as: 'segmentId' + end + end + + class DateRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start_date, as: 'startDate' + property :end_date, as: 'endDate' + end + end + + class ReportRow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dimensions, as: 'dimensions' + collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation + + end + end + + class CohortGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :lifetime_value, as: 'lifetimeValue' + collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation + + end + end + + class GetReportsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reports, as: 'reports', class: Google::Apis::AnalyticsreportingV4::Report, decorator: Google::Apis::AnalyticsreportingV4::Report::Representation + + end + end + + class MetricHeaderEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :name, as: 'name' + end + end + + class MetricFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :metric_name, as: 'metricName' + property :operator, as: 'operator' + property :comparison_value, as: 'comparisonValue' + property :not, as: 'not' + end + end + + class Dimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :histogram_buckets, as: 'histogramBuckets' + property :name, as: 'name' + end + end + + class PivotValueRegion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values' + end + end + end + end +end diff --git a/generated/google/apis/analyticsreporting_v4/service.rb b/generated/google/apis/analyticsreporting_v4/service.rb new file mode 100644 index 000000000..c16c996d0 --- /dev/null +++ b/generated/google/apis/analyticsreporting_v4/service.rb @@ -0,0 +1,88 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module AnalyticsreportingV4 + # Google Analytics Reporting API + # + # Accesses Analytics report data. + # + # @example + # require 'google/apis/analyticsreporting_v4' + # + # Analyticsreporting = Google::Apis::AnalyticsreportingV4 # Alias the module + # service = Analyticsreporting::AnalyticsReportingService.new + # + # @see https://developers.google.com/analytics/devguides/reporting/core/v4/ + class AnalyticsReportingService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://analyticsreporting.googleapis.com/', '') + end + + # Returns the Analytics data. + # @param [Google::Apis::AnalyticsreportingV4::GetReportsRequest] get_reports_request_object + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AnalyticsreportingV4::GetReportsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AnalyticsreportingV4::GetReportsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/reports:batchGet', options) + command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation + command.request_object = get_reports_request_object + command.response_representation = Google::Apis::AnalyticsreportingV4::GetReportsResponse::Representation + command.response_class = Google::Apis::AnalyticsreportingV4::GetReportsResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index 676e0eb45..91934db6b 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20160408' + REVISION = '20160511' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index d5c6dd9d8..a297a8438 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -343,7 +343,8 @@ module Google # means that the EMM's app is a device owner. "managedProfile" means that the # EMM's app is the profile owner (and there is a separate personal profile which # is not managed). "containerApp" means that the EMM's app is managing the - # Android for Work container app on the device. + # Android for Work container app on the device. ?unmanagedProfile? means that + # the EMM?s app is managing a managed user on an unmanaged device # Corresponds to the JSON property `managementType` # @return [String] attr_accessor :management_type @@ -882,6 +883,37 @@ module Google end end + # + class PageInfo + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `resultPerPage` + # @return [Fixnum] + attr_accessor :result_per_page + + # + # Corresponds to the JSON property `startIndex` + # @return [Fixnum] + attr_accessor :start_index + + # + # Corresponds to the JSON property `totalResults` + # @return [Fixnum] + attr_accessor :total_results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result_per_page = args[:result_per_page] if args.key?(:result_per_page) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + end + end + # A permission represents some extra capability, to be granted to an Android app, # which requires explicit consent. An enterprise admin must consent to these # permissions on behalf of their users before an entitlement for the app can be @@ -1163,6 +1195,45 @@ module Google end end + # The matching products. + class ProductsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # androidenterprise#productsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # General pagination information. + # Corresponds to the JSON property `pageInfo` + # @return [Google::Apis::AndroidenterpriseV1::PageInfo] + attr_accessor :page_info + + # Information about a product (e.g. an app) in the Google Play Store, for + # display to an enterprise admin. + # Corresponds to the JSON property `product` + # @return [Array] + attr_accessor :product + + # Pagination information for token pagination. + # Corresponds to the JSON property `tokenPagination` + # @return [Google::Apis::AndroidenterpriseV1::TokenPagination] + attr_accessor :token_pagination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @page_info = args[:page_info] if args.key?(:page_info) + @product = args[:product] if args.key?(:product) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + end + end + # Definition of a Google Play for Work store cluster, a list of products # displayed as part of a store page. class StoreCluster @@ -1191,7 +1262,7 @@ module Google # this field. Duplicated values are allowed, but ordering between elements with # duplicate order is undefined. # The value of this field is never visible to a user, it is used solely for the - # purpose of defining an ordering. Maximum length is 20 characters. + # purpose of defining an ordering. Maximum length is 256 characters. # Corresponds to the JSON property `orderInPage` # @return [String] attr_accessor :order_in_page @@ -1345,6 +1416,31 @@ module Google end end + # + class TokenPagination + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `previousPageToken` + # @return [String] + attr_accessor :previous_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token) + end + end + # A user resource represents an individual user within the enterprise's domain. # Note that each user is associated with a Google account based on the user's # corporate email address (which must be in one of the enterprise's domains). As diff --git a/generated/google/apis/androidenterprise_v1/representations.rb b/generated/google/apis/androidenterprise_v1/representations.rb index cfe5f42f4..912fb665f 100644 --- a/generated/google/apis/androidenterprise_v1/representations.rb +++ b/generated/google/apis/androidenterprise_v1/representations.rb @@ -160,6 +160,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PageInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Permission class Representation < Google::Apis::Core::JsonRepresentation; end @@ -202,6 +208,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ProductsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class StoreCluster class Representation < Google::Apis::Core::JsonRepresentation; end @@ -232,6 +244,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TokenPagination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class User class Representation < Google::Apis::Core::JsonRepresentation; end @@ -465,6 +483,15 @@ module Google end end + class PageInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :result_per_page, as: 'resultPerPage' + property :start_index, as: 'startIndex' + property :total_results, as: 'totalResults' + end + end + class Permission # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -535,6 +562,19 @@ module Google end end + class ProductsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :page_info, as: 'pageInfo', class: Google::Apis::AndroidenterpriseV1::PageInfo, decorator: Google::Apis::AndroidenterpriseV1::PageInfo::Representation + + collection :product, as: 'product', class: Google::Apis::AndroidenterpriseV1::Product, decorator: Google::Apis::AndroidenterpriseV1::Product::Representation + + property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidenterpriseV1::TokenPagination, decorator: Google::Apis::AndroidenterpriseV1::TokenPagination::Representation + + end + end + class StoreCluster # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -584,6 +624,14 @@ module Google end end + class TokenPagination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :previous_page_token, as: 'previousPageToken' + end + end + class User # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/androidenterprise_v1/service.rb b/generated/google/apis/androidenterprise_v1/service.rb index 6739c530b..6d6404839 100644 --- a/generated/google/apis/androidenterprise_v1/service.rb +++ b/generated/google/apis/androidenterprise_v1/service.rb @@ -1630,7 +1630,11 @@ module Google execute_or_queue_command(command, &block) end - # Approves the specified product (and the relevant app permissions, if any). + # Approves the specified product and the relevant app permissions, if any. The + # maximum number of products that you can approve per enterprise customer is 1, + # 000. + # To learn how to use Google Play for Work to design and create a store layout + # to display approved products to your users, see Store Layout Design. # @param [String] enterprise_id # The ID of the enterprise. # @param [String] product_id @@ -1840,6 +1844,64 @@ module Google execute_or_queue_command(command, &block) end + # Finds approved products that match a query. + # @param [String] enterprise_id + # The ID of the enterprise. + # @param [Boolean] approved + # Specifies whether to search among all products (false) or among only products + # that have been approved (true). Only "true" is supported, and should be + # specified. + # @param [String] language + # The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results + # are returned in the language best matching the preferred language. + # @param [Fixnum] max_results + # Specifies the maximum number of products that can be returned per request. If + # not specified, uses a default value of 100, which is also the maximum + # retrievable within a single response. + # @param [String] query + # The search query as typed in the Google Play Store search box. If omitted, all + # approved apps will be returned (using the pagination parameters). + # @param [String] token + # A pagination token is contained in a requestÂ’s response when there are more + # products. The token can be used in a subsequent request to obtain more + # products, and so forth. This parameter cannot be used in the initial request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidenterpriseV1::ProductsListResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_products(enterprise_id, approved: nil, language: nil, max_results: nil, query: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'enterprises/{enterpriseId}/products', options) + command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsListResponse::Representation + command.response_class = Google::Apis::AndroidenterpriseV1::ProductsListResponse + command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil? + command.query['approved'] = approved unless approved.nil? + command.query['language'] = language unless language.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['query'] = query unless query.nil? + command.query['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # This method has been deprecated. To programmatically approve applications, you # must use the iframe mechanism via the generateApprovalUrl and approve # methods of the Products resource. For more information, see the Play EMM API diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 4ebc0216c..9af343c0d 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20160324' + REVISION = '20160507' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index 32019aff3..6a9e47d49 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 = '20160407' + REVISION = '20160509' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/autoscaler_v1beta2.rb b/generated/google/apis/autoscaler_v1beta2.rb index 7d484a526..aa0a22854 100644 --- a/generated/google/apis/autoscaler_v1beta2.rb +++ b/generated/google/apis/autoscaler_v1beta2.rb @@ -26,7 +26,7 @@ module Google # @see http://developers.google.com/compute/docs/autoscaler module AutoscalerV1beta2 VERSION = 'V1beta2' - REVISION = '20150629' + REVISION = '20160511' # View and manage your Google Compute Engine resources AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute' diff --git a/generated/google/apis/autoscaler_v1beta2/classes.rb b/generated/google/apis/autoscaler_v1beta2/classes.rb index e2a9bb7e8..9c143b627 100644 --- a/generated/google/apis/autoscaler_v1beta2/classes.rb +++ b/generated/google/apis/autoscaler_v1beta2/classes.rb @@ -308,6 +308,11 @@ module Google # @return [String] attr_accessor :creation_timestamp + # + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + # # Corresponds to the JSON property `endTime` # @return [String] @@ -338,7 +343,7 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#Operation for Operation + # [Output Only] Type of the resource. Always compute#operation for Operation # resources. # Corresponds to the JSON property `kind` # @return [String] @@ -417,6 +422,7 @@ module Google def update!(**args) @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) @end_time = args[:end_time] if args.key?(:end_time) @error = args[:error] if args.key?(:error) @http_error_message = args[:http_error_message] if args.key?(:http_error_message) @@ -614,16 +620,11 @@ module Google # @return [String] attr_accessor :id - # [Output Only] Type of the resource. Always kind#zone for zones. + # [Output Only] Type of the resource. Always compute#zone for zones. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # - # Corresponds to the JSON property `maintenanceWindows` - # @return [Array] - attr_accessor :maintenance_windows - # # Corresponds to the JSON property `name` # @return [String] @@ -634,7 +635,7 @@ module Google # @return [String] attr_accessor :region - # [Output Only] Server defined URL for the resource. + # # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -655,49 +656,11 @@ module Google @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) - @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows) @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) end - - # - class MaintenanceWindow - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `beginTime` - # @return [String] - attr_accessor :begin_time - - # - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @begin_time = args[:begin_time] if args.key?(:begin_time) - @description = args[:description] if args.key?(:description) - @end_time = args[:end_time] if args.key?(:end_time) - @name = args[:name] if args.key?(:name) - end - end end # @@ -724,7 +687,7 @@ module Google # @return [String] attr_accessor :next_page_token - # Server defined URL for this resource (output only). + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link diff --git a/generated/google/apis/autoscaler_v1beta2/representations.rb b/generated/google/apis/autoscaler_v1beta2/representations.rb index 72e0d8721..8dafd8733 100644 --- a/generated/google/apis/autoscaler_v1beta2/representations.rb +++ b/generated/google/apis/autoscaler_v1beta2/representations.rb @@ -102,12 +102,6 @@ module Google class Zone class Representation < Google::Apis::Core::JsonRepresentation; end - - class MaintenanceWindow - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end include Google::Apis::Core::JsonObjectSupport end @@ -197,6 +191,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :client_operation_id, as: 'clientOperationId' property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' property :end_time, as: 'endTime' property :error, as: 'error', class: Google::Apis::AutoscalerV1beta2::Operation::Error, decorator: Google::Apis::AutoscalerV1beta2::Operation::Error::Representation @@ -278,23 +273,11 @@ module Google property :description, as: 'description' property :id, as: 'id' property :kind, as: 'kind' - collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::AutoscalerV1beta2::Zone::MaintenanceWindow, decorator: Google::Apis::AutoscalerV1beta2::Zone::MaintenanceWindow::Representation - property :name, as: 'name' property :region, as: 'region' property :self_link, as: 'selfLink' property :status, as: 'status' end - - class MaintenanceWindow - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :begin_time, as: 'beginTime' - property :description, as: 'description' - property :end_time, as: 'endTime' - property :name, as: 'name' - end - end end class ZoneList diff --git a/generated/google/apis/autoscaler_v1beta2/service.rb b/generated/google/apis/autoscaler_v1beta2/service.rb index bd57dbb81..3ae017e78 100644 --- a/generated/google/apis/autoscaler_v1beta2/service.rb +++ b/generated/google/apis/autoscaler_v1beta2/service.rb @@ -426,10 +426,10 @@ module Google end # - # @param [String] project # @param [String] filter # @param [Fixnum] max_results # @param [String] page_token + # @param [String] project # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -451,14 +451,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_zones(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones', options) + def list_zones(filter: nil, max_results: nil, page_token: nil, project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'zones', options) command.response_representation = Google::Apis::AutoscalerV1beta2::ZoneList::Representation command.response_class = Google::Apis::AutoscalerV1beta2::ZoneList - command.params['project'] = project unless project.nil? command.query['filter'] = filter unless filter.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index a28219a42..6f63474ef 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 = '20160408' + REVISION = '20160511' # 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 bbaddf067..15461ce4a 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -238,7 +238,7 @@ module Google # when reading the data. The default value is 0. This property is useful if you # have header rows in the file that should be skipped. # Corresponds to the JSON property `skipLeadingRows` - # @return [Fixnum] + # @return [String] attr_accessor :skip_leading_rows def initialize(**args) @@ -714,6 +714,11 @@ module Google # @return [Google::Apis::BigqueryV2::CsvOptions] attr_accessor :csv_options + # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS. + # Corresponds to the JSON property `googleSheetsOptions` + # @return [Google::Apis::BigqueryV2::GoogleSheetsOptions] + attr_accessor :google_sheets_options + # [Optional] Indicates if BigQuery should allow extra values that are not # represented in the table schema. If true, the extra values are ignored. If # false, records with extra columns are treated as bad records, and if there are @@ -744,13 +749,13 @@ module Google # @return [Google::Apis::BigqueryV2::TableSchema] attr_accessor :schema - # [Required] The data format. For CSV files, specify "CSV". For newline- - # delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify " - # AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". [ - # Experimental] For Google Cloud Bigtable, specify "BIGTABLE". Please note that - # reading from Google Cloud Bigtable is experimental and has to be enabled for - # your project. Please contact Google Cloud Support to enable this for your - # project. + # [Required] The data format. For CSV files, specify "CSV". For Google sheets, + # specify "GOOGLE_SHEETS". For newline-delimited JSON, specify " + # NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud + # Datastore backups, specify "DATASTORE_BACKUP". [Experimental] For Google Cloud + # Bigtable, specify "BIGTABLE". Please note that reading from Google Cloud + # Bigtable is experimental and has to be enabled for your project. Please + # contact Google Cloud Support to enable this for your project. # Corresponds to the JSON property `sourceFormat` # @return [String] attr_accessor :source_format @@ -758,12 +763,11 @@ module Google # [Required] The fully-qualified URIs that point to your data in Google Cloud. # For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character # and it must come after the 'bucket' name. Size limits related to load jobs - # apply to external data sources, plus an additional limit of 10 GB maximum size - # across all URIs. For Google Cloud Bigtable URIs: Exactly one URI can be - # specified and it has be a fully specified and valid HTTPS URL for a Google - # Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can - # be specified, and it must end with '.backup_info'. Also, the '*' wildcard - # character is not allowed. + # apply to external data sources. For Google Cloud Bigtable URIs: Exactly one + # URI can be specified and it has be a fully specified and valid HTTPS URL for a + # Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one + # URI can be specified, and it must end with '.backup_info'. Also, the '*' + # wildcard character is not allowed. # Corresponds to the JSON property `sourceUris` # @return [Array] attr_accessor :source_uris @@ -778,6 +782,7 @@ module Google @bigtable_options = args[:bigtable_options] if args.key?(:bigtable_options) @compression = args[:compression] if args.key?(:compression) @csv_options = args[:csv_options] if args.key?(:csv_options) + @google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options) @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values) @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records) @schema = args[:schema] if args.key?(:schema) @@ -880,18 +885,23 @@ module Google end # - class IntervalPartitionConfiguration + class GoogleSheetsOptions include Google::Apis::Core::Hashable - # - # Corresponds to the JSON property `expirationMs` + # [Optional] The number of rows at the top of a sheet that BigQuery will skip + # when reading the data. The default value is 0. This property is useful if you + # have header rows that should be skipped. When autodetect is on, behavior is + # the following: * skipLeadingRows unspecified - Autodetect tries to detect + # headers in the first row. If they are not detected, the row is read as data. + # Otherwise data is read starting from the second row. * skipLeadingRows is 0 - + # Instructs autodetect that there are no headers and data should be read + # starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 + # rows and tries to detect headers in row N. If headers are not detected, row N + # is just skipped. Otherwise row N is used to extract column names for the + # detected schema. + # Corresponds to the JSON property `skipLeadingRows` # @return [String] - attr_accessor :expiration_ms - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type + attr_accessor :skip_leading_rows def initialize(**args) update!(**args) @@ -899,8 +909,7 @@ module Google # Update properties of this object def update!(**args) - @expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms) - @type = args[:type] if args.key?(:type) + @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows) end end @@ -1128,6 +1137,13 @@ module Google attr_accessor :allow_quoted_newlines alias_method :allow_quoted_newlines?, :allow_quoted_newlines + # [Experimental] Indicates if we should automatically infer the options and + # schema for CSV and JSON sources. + # Corresponds to the JSON property `autodetect` + # @return [Boolean] + attr_accessor :autodetect + alias_method :autodetect?, :autodetect + # [Optional] Specifies whether the job is allowed to create new tables. The # following values are supported: CREATE_IF_NEEDED: If the table does not exist, # BigQuery creates the table. CREATE_NEVER: The table must already exist. If it @@ -1262,6 +1278,7 @@ module Google def update!(**args) @allow_jagged_rows = args[:allow_jagged_rows] if args.key?(:allow_jagged_rows) @allow_quoted_newlines = args[:allow_quoted_newlines] if args.key?(:allow_quoted_newlines) + @autodetect = args[:autodetect] if args.key?(:autodetect) @create_disposition = args[:create_disposition] if args.key?(:create_disposition) @destination_table = args[:destination_table] if args.key?(:destination_table) @encoding = args[:encoding] if args.key?(:encoding) @@ -1354,10 +1371,10 @@ module Google # [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this # query. The default value is true. If set to false, the query will use BigQuery' - # s updated SQL dialect with improved standards compliance. When using BigQuery' - # s updated SQL, the values of allowLargeResults and flattenResults are ignored. - # Queries with useLegacySql set to false will be run as if allowLargeResults is - # true and flattenResults is false. + # s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When + # useLegacySql is set to false, the values of allowLargeResults and + # flattenResults are ignored; query will be run as if allowLargeResults is true + # and flattenResults is false. # Corresponds to the JSON property `useLegacySql` # @return [Boolean] attr_accessor :use_legacy_sql @@ -1687,6 +1704,12 @@ module Google # @return [Array] attr_accessor :referenced_tables + # [Output-only, Experimental] The schema of the results. Present only for + # successful dry run of non-legacy SQL queries. + # Corresponds to the JSON property `schema` + # @return [Google::Apis::BigqueryV2::TableSchema] + attr_accessor :schema + # [Output-only] Total bytes billed for the job. # Corresponds to the JSON property `totalBytesBilled` # @return [String] @@ -1707,6 +1730,7 @@ module Google @cache_hit = args[:cache_hit] if args.key?(:cache_hit) @query_plan = args[:query_plan] if args.key?(:query_plan) @referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables) + @schema = args[:schema] if args.key?(:schema) @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed) @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) end @@ -1970,10 +1994,10 @@ module Google # [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this # query. The default value is true. If set to false, the query will use BigQuery' - # s updated SQL dialect with improved standards compliance. When using BigQuery' - # s updated SQL, the values of allowLargeResults and flattenResults are ignored. - # Queries with useLegacySql set to false will be run as if allowLargeResults is - # true and flattenResults is false. + # s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When + # useLegacySql is set to false, the values of allowLargeResults and + # flattenResults are ignored; query will be run as if allowLargeResults is true + # and flattenResults is false. # Corresponds to the JSON property `useLegacySql` # @return [Boolean] attr_accessor :use_legacy_sql @@ -2192,19 +2216,18 @@ module Google # @return [String] attr_accessor :num_bytes + # [Output-only] The number of bytes in the table that are considered "long-term + # storage". + # Corresponds to the JSON property `numLongTermBytes` + # @return [String] + attr_accessor :num_long_term_bytes + # [Output-only] The number of rows of data in this table, excluding any data in # the streaming buffer. # Corresponds to the JSON property `numRows` # @return [String] attr_accessor :num_rows - # [Experimental] List of partition configurations for this table. Currently only - # one configuration can be specified and it can only be an interval partition - # with type daily. - # Corresponds to the JSON property `partitionConfigurations` - # @return [Array] - attr_accessor :partition_configurations - # [Optional] Describes the schema of this table. # Corresponds to the JSON property `schema` # @return [Google::Apis::BigqueryV2::TableSchema] @@ -2227,6 +2250,11 @@ module Google # @return [Google::Apis::BigqueryV2::TableReference] attr_accessor :table_reference + # [Experimental] If specified, configures time-based partitioning for this table. + # Corresponds to the JSON property `timePartitioning` + # @return [Google::Apis::BigqueryV2::TimePartitioning] + attr_accessor :time_partitioning + # [Output-only] Describes the table type. The following values are supported: # TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. # EXTERNAL: A table that references data stored in an external storage system, @@ -2257,12 +2285,13 @@ module Google @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) @location = args[:location] if args.key?(:location) @num_bytes = args[:num_bytes] if args.key?(:num_bytes) + @num_long_term_bytes = args[:num_long_term_bytes] if args.key?(:num_long_term_bytes) @num_rows = args[:num_rows] if args.key?(:num_rows) - @partition_configurations = args[:partition_configurations] if args.key?(:partition_configurations) @schema = args[:schema] if args.key?(:schema) @self_link = args[:self_link] if args.key?(:self_link) @streaming_buffer = args[:streaming_buffer] if args.key?(:streaming_buffer) @table_reference = args[:table_reference] if args.key?(:table_reference) + @time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning) @type = args[:type] if args.key?(:type) @view = args[:view] if args.key?(:view) end @@ -2597,26 +2626,6 @@ module Google end end - # [Required] A partition configuration. Only one type of partition should be - # configured. - class TablePartitionConfiguration - include Google::Apis::Core::Hashable - - # [Pick one] Configures an interval partition. - # Corresponds to the JSON property `interval` - # @return [Google::Apis::BigqueryV2::IntervalPartitionConfiguration] - attr_accessor :interval - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @interval = args[:interval] if args.key?(:interval) - end - end - # class TableReference include Google::Apis::Core::Hashable @@ -2687,6 +2696,33 @@ module Google end end + # + class TimePartitioning + include Google::Apis::Core::Hashable + + # [Optional] Number of milliseconds for which to keep the storage for a + # partition. + # Corresponds to the JSON property `expirationMs` + # @return [String] + attr_accessor :expiration_ms + + # [Required] The only type supported is DAY, which will generate one partition + # per day based on data loading time. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms) + @type = args[:type] if args.key?(:type) + end + end + # class UserDefinedFunctionResource include Google::Apis::Core::Hashable diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 8cd3f16f9..7efca2ca1 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -106,7 +106,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class IntervalPartitionConfiguration + class GoogleSheetsOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -298,12 +298,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TablePartitionConfiguration - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class TableReference class Representation < Google::Apis::Core::JsonRepresentation; end @@ -322,6 +316,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TimePartitioning + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UserDefinedFunctionResource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -489,6 +489,8 @@ module Google property :compression, as: 'compression' property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation + property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation + property :ignore_unknown_values, as: 'ignoreUnknownValues' property :max_bad_records, as: 'maxBadRecords' property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation @@ -519,11 +521,10 @@ module Google end end - class IntervalPartitionConfiguration + class GoogleSheetsOptions # @private class Representation < Google::Apis::Core::JsonRepresentation - property :expiration_ms, as: 'expirationMs' - property :type, as: 'type' + property :skip_leading_rows, as: 'skipLeadingRows' end end @@ -589,6 +590,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :allow_jagged_rows, as: 'allowJaggedRows' property :allow_quoted_newlines, as: 'allowQuotedNewlines' + property :autodetect, as: 'autodetect' property :create_disposition, as: 'createDisposition' property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation @@ -711,6 +713,8 @@ module Google collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation + property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation + property :total_bytes_billed, as: 'totalBytesBilled' property :total_bytes_processed, as: 'totalBytesProcessed' end @@ -835,9 +839,8 @@ module Google property :last_modified_time, as: 'lastModifiedTime' property :location, as: 'location' property :num_bytes, as: 'numBytes' + property :num_long_term_bytes, as: 'numLongTermBytes' property :num_rows, as: 'numRows' - collection :partition_configurations, as: 'partitionConfigurations', class: Google::Apis::BigqueryV2::TablePartitionConfiguration, decorator: Google::Apis::BigqueryV2::TablePartitionConfiguration::Representation - property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation property :self_link, as: 'selfLink' @@ -845,6 +848,8 @@ module Google property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation + property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation + property :type, as: 'type' property :view, as: 'view', class: Google::Apis::BigqueryV2::ViewDefinition, decorator: Google::Apis::BigqueryV2::ViewDefinition::Representation @@ -944,14 +949,6 @@ module Google end end - class TablePartitionConfiguration - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :interval, as: 'interval', class: Google::Apis::BigqueryV2::IntervalPartitionConfiguration, decorator: Google::Apis::BigqueryV2::IntervalPartitionConfiguration::Representation - - end - end - class TableReference # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -977,6 +974,14 @@ module Google end end + class TimePartitioning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expiration_ms, as: 'expirationMs' + property :type, as: 'type' + end + end + class UserDefinedFunctionResource # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 5eb970978..b6eaa9372 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 = '20160410' + REVISION = '20160510' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb index c4fd87e8c..04aecaebc 100644 --- a/generated/google/apis/classroom_v1.rb +++ b/generated/google/apis/classroom_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Classroom API # - # Google Classroom API + # Manages classes, rosters, and invitations in Google Classroom. # # @see https://developers.google.com/classroom/ module ClassroomV1 VERSION = 'V1' - REVISION = '20151013' + REVISION = '20160428' # Manage your Google Classroom classes AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses' diff --git a/generated/google/apis/classroom_v1/service.rb b/generated/google/apis/classroom_v1/service.rb index 498e033ea..8bffe53a5 100644 --- a/generated/google/apis/classroom_v1/service.rb +++ b/generated/google/apis/classroom_v1/service.rb @@ -22,7 +22,7 @@ module Google module ClassroomV1 # Google Classroom API # - # Google Classroom API + # Manages classes, rosters, and invitations in Google Classroom. # # @example # require 'google/apis/classroom_v1' diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 3cb790241..2273c408c 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/container-builder/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20160413' + REVISION = '20160512' # 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/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index 38135c16e..0c5a755bd 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -193,6 +193,14 @@ module Google attr_accessor :done alias_method :done?, :done + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + # The normal response of the operation in case of success. If the original # method returns no data on success, such as `Delete`, the response is # `google.protobuf.Empty`. If the original method is standard @@ -205,14 +213,6 @@ module Google # @return [Hash] attr_accessor :response - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - # The server-assigned name, which is only unique within the same service that # originally returns it. If you use the default HTTP mapping, the # `name` should have the format of `operations/some/unique/name`. @@ -228,8 +228,8 @@ module Google def update!(**args) @error = args[:error] if args.key?(:error) @done = args[:done] if args.key?(:done) - @response = args[:response] if args.key?(:response) @metadata = args[:metadata] if args.key?(:metadata) + @response = args[:response] if args.key?(:response) @name = args[:name] if args.key?(:name) end end @@ -265,12 +265,6 @@ module Google class StorageSource include Google::Apis::Core::Hashable - # Google Cloud Storage generation for the object. If the generation is - # omitted, the latest generation will be used. - # Corresponds to the JSON property `generation` - # @return [String] - attr_accessor :generation - # Google Cloud Storage bucket containing source (see # [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) @@ -279,6 +273,12 @@ module Google # @return [String] attr_accessor :bucket + # Google Cloud Storage generation for the object. If the generation is + # omitted, the latest generation will be used. + # Corresponds to the JSON property `generation` + # @return [String] + attr_accessor :generation + # Google Cloud Storage object containing source. # This object must be a gzipped archive file (.tar.gz) containing source to # build. @@ -292,8 +292,8 @@ module Google # Update properties of this object def update!(**args) - @generation = args[:generation] if args.key?(:generation) @bucket = args[:bucket] if args.key?(:bucket) + @generation = args[:generation] if args.key?(:generation) @object = args[:object] if args.key?(:object) end end @@ -372,6 +372,12 @@ module Google # @return [String] attr_accessor :create_time + # Customer-readable message about the current status. + # @OutputOnly + # Corresponds to the JSON property `statusDetail` + # @return [String] + attr_accessor :status_detail + # List of images expected to be built and pushed to Google Container # Registry. If an image is listed here and the image is not produced by # one of the build steps, the build will fail. Any images present when @@ -415,6 +421,7 @@ module Google @steps = args[:steps] if args.key?(:steps) @source = args[:source] if args.key?(:source) @create_time = args[:create_time] if args.key?(:create_time) + @status_detail = args[:status_detail] if args.key?(:status_detail) @images = args[:images] if args.key?(:images) @start_time = args[:start_time] if args.key?(:start_time) @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket) @@ -475,17 +482,17 @@ module Google # @return [String] attr_accessor :dir - # Additional environment variables to set for this step's container. - # Corresponds to the JSON property `env` - # @return [Array] - attr_accessor :env - # Name of the container image to use for creating this stage in the # pipeline, as presented to `docker pull`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # Additional environment variables to set for this step's container. + # Corresponds to the JSON property `env` + # @return [Array] + attr_accessor :env + def initialize(**args) update!(**args) end @@ -494,8 +501,8 @@ module Google def update!(**args) @args = args[:args] if args.key?(:args) @dir = args[:dir] if args.key?(:dir) - @env = args[:env] if args.key?(:env) @name = args[:name] if args.key?(:name) + @env = args[:env] if args.key?(:env) end end diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index b282a7b48..21df18c2a 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -125,8 +125,8 @@ module Google property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation property :done, as: 'done' - hash :response, as: 'response' hash :metadata, as: 'metadata' + hash :response, as: 'response' property :name, as: 'name' end end @@ -142,8 +142,8 @@ module Google class StorageSource # @private class Representation < Google::Apis::Core::JsonRepresentation - property :generation, as: 'generation' property :bucket, as: 'bucket' + property :generation, as: 'generation' property :object, as: 'object' end end @@ -170,6 +170,7 @@ module Google property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation property :create_time, as: 'createTime' + property :status_detail, as: 'statusDetail' collection :images, as: 'images' property :start_time, as: 'startTime' property :logs_bucket, as: 'logsBucket' @@ -197,8 +198,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :args, as: 'args' property :dir, as: 'dir' - collection :env, as: 'env' property :name, as: 'name' + collection :env, as: 'env' end end diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb index 471adf2b4..ee2ea2338 100644 --- a/generated/google/apis/cloudbuild_v1/service.rb +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -46,41 +46,6 @@ module Google super('https://cloudbuild.googleapis.com/', '') end - # Returns information about a previously requested build. - # The Build that is returned includes its status (e.g., success or failure, - # or in-progress), and timing information. - # @param [String] project_id - # ID of the project. - # @param [String] id - # ID of the build. - # @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 [String] fields - # Selector specifying which fields to include in a partial response. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::CloudbuildV1::Build] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options) - command.response_representation = Google::Apis::CloudbuildV1::Build::Representation - command.response_class = Google::Apis::CloudbuildV1::Build - command.params['projectId'] = project_id unless project_id.nil? - command.params['id'] = id unless id.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['fields'] = fields unless fields.nil? - execute_or_queue_command(command, &block) - end - # Starts a build with the specified configuration. # The long-running Operation returned by this method will include the ID of # the build, which can be passed to GetBuild to determine its status (e.g., @@ -117,6 +82,41 @@ module Google execute_or_queue_command(command, &block) end + # Returns information about a previously requested build. + # The Build that is returned includes its status (e.g., success or failure, + # or in-progress), and timing information. + # @param [String] project_id + # ID of the project. + # @param [String] id + # ID of the build. + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::Build] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options) + command.response_representation = Google::Apis::CloudbuildV1::Build::Representation + command.response_class = Google::Apis::CloudbuildV1::Build + command.params['projectId'] = project_id unless project_id.nil? + command.params['id'] = id unless id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + # Lists previously requested builds. # Previously requested builds may still be in-progress, or may have finished # successfully or unsuccessfully. diff --git a/generated/google/apis/cloudmonitoring_v2beta2.rb b/generated/google/apis/cloudmonitoring_v2beta2.rb index 131a1acbc..2f472df60 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 = '20160403' + REVISION = '20160415' # 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_beta.rb b/generated/google/apis/compute_beta.rb index 2cdd95d1a..b083289ef 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -20,12 +20,12 @@ module Google module Apis # Compute Engine API # - # API for the Google Compute Engine service. + # Creates and runs virtual machines on Google Cloud Platform. # # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20160407' + REVISION = '20160426' # 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_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 72fb24b2b..01dd408a2 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1272,6 +1272,32 @@ module Google end end + # + class CustomerEncryptionKeyProtectedDisk + include Google::Apis::Core::Hashable + + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `diskEncryptionKey` + # @return [Google::Apis::ComputeBeta::CustomerEncryptionKey] + attr_accessor :disk_encryption_key + + # Specifies a valid partial or full URL to an existing Persistent Disk resource. + # This field is only applicable for persistent disks. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) + @source = args[:source] if args.key?(:source) + end + end + # Deprecation status for a public resource. class DeprecationStatus include Google::Apis::Core::Hashable @@ -1365,13 +1391,9 @@ module Google # @return [String] attr_accessor :label_fingerprint - # Labels to apply to this disk. These can be later modified by the setLabels() - # method. Each label key & value must comply with RFC1035. Specifically, the - # name must be 1-63 characters long and match the regular expression [a-z]([-a- - # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, - # and all following characters must be a dash, lowercase letter, or digit, - # except the last character, which cannot be a dash. A label value can also be - # empty (e.g. "example-label": ""). + # Labels to apply to this disk. These can be later modified by the setLabels + # method. Each label key/value pair must comply with RFC1035. Label values may + # be empty. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1638,6 +1660,39 @@ module Google end end + # + class DiskMoveRequest + include Google::Apis::Core::Hashable + + # The URL of the destination zone to move the disk. This can be a full or + # partial URL. For example, the following are all valid URLs to a zone: + # - https://www.googleapis.com/compute/v1/projects/project/zones/zone + # - projects/project/zones/zone + # - zones/zone + # Corresponds to the JSON property `destinationZone` + # @return [String] + attr_accessor :destination_zone + + # The URL of the target disk to move. This can be a full or partial URL. For + # example, the following are all valid URLs to a disk: + # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + # - projects/project/zones/zone/disks/disk + # - zones/zone/disks/disk + # Corresponds to the JSON property `targetDisk` + # @return [String] + attr_accessor :target_disk + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination_zone = args[:destination_zone] if args.key?(:destination_zone) + @target_disk = args[:target_disk] if args.key?(:target_disk) + end + end + # A DiskType resource. class DiskType include Google::Apis::Core::Hashable @@ -2212,7 +2267,7 @@ module Google attr_accessor :ip_address # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, - # AH or SCTP. + # AH, SCTP or ICMP. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol @@ -2498,7 +2553,13 @@ module Google # @return [String] attr_accessor :label_fingerprint - # The labels to set for this resource. + # A list of labels to apply for this resource. Each label key & value must + # comply with RFC1035. Specifically, the name must be 1-63 characters long and + # match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first + # character must be a lowercase letter, and all following characters must be a + # dash, lowercase letter, or digit, except the last character, which cannot be a + # dash. For example, "webserver-frontend": "images". A label value can also be + # empty (e.g. "my-label": ""). # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -2980,13 +3041,9 @@ module Google # @return [String] attr_accessor :label_fingerprint - # Labels to apply to this image. These can be later modified by the setLabels() - # method. Each label key & value must comply with RFC1035. Specifically, the - # name must be 1-63 characters long and match the regular expression [a-z]([-a- - # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, - # and all following characters must be a dash, lowercase letter, or digit, - # except the last character, which cannot be a dash. A label value can also be - # empty (e.g. "example-label": ""). + # Labels to apply to this image. These can be later modified by the setLabels + # method. Each label key/value pair must comply with RFC1035. Label values may + # be empty. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -3613,9 +3670,8 @@ module Google # @return [String] attr_accessor :description - # [Output Only] The fingerprint of the target pools information. You can use - # this optional field for optimistic locking when you update the target pool - # entries. + # [Output Only] The fingerprint of the resource data. You can use this optional + # field for optimistic locking when you update the resource. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -4472,6 +4528,40 @@ module Google end end + # + class MoveInstanceRequest + include Google::Apis::Core::Hashable + + # The URL of the destination zone to move the instance. This can be a full or + # partial URL. For example, the following are all valid URLs to a zone: + # - https://www.googleapis.com/compute/v1/projects/project/zones/zone + # - projects/project/zones/zone + # - zones/zone + # Corresponds to the JSON property `destinationZone` + # @return [String] + attr_accessor :destination_zone + + # The URL of the target instance to move. This can be a full or partial URL. For + # example, the following are all valid URLs to an instance: + # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ + # instance + # - projects/project/zones/zone/instances/instance + # - zones/zone/instances/instance + # Corresponds to the JSON property `targetInstance` + # @return [String] + attr_accessor :target_instance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination_zone = args[:destination_zone] if args.key?(:destination_zone) + @target_instance = args[:target_instance] if args.key?(:target_instance) + end + end + # class InstanceProperties include Google::Apis::Core::Hashable @@ -4815,7 +4905,14 @@ module Google # @return [String] attr_accessor :label_fingerprint - # The new labels for the resource, in the form of key/value pairs. + # A list of labels to apply for this instance. Changing instance labels will + # also change the instance tags. + # Each label key & value must comply with RFC1035. Specifically, the name must + # be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0- + # 9])? which means the first character must be a lowercase letter, and all + # following characters must be a dash, lowercase letter, or digit, except the + # last character, which cannot be a dash. For example, "webserver-frontend": " + # images". A label value can also be empty (e.g. "my-label": ""). # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -4852,6 +4949,30 @@ module Google end end + # + class InstancesStartWithEncryptionKeyRequest + include Google::Apis::Core::Hashable + + # Array of disks associated with this instance that are protected with a + # customer-supplied encryption key. + # In order to start the instance, the disk url and its corresponding key must be + # provided. + # If the disk is not protected with a customer-supplied encryption key it should + # not be specified. + # Corresponds to the JSON property `disks` + # @return [Array] + attr_accessor :disks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disks = args[:disks] if args.key?(:disks) + end + end + # A license resource. class License include Google::Apis::Core::Hashable @@ -4922,6 +5043,12 @@ module Google # @return [String] attr_accessor :id + # [Output Only] Whether this machine type has a shared CPU. + # Corresponds to the JSON property `isSharedCpu` + # @return [Boolean] + attr_accessor :is_shared_cpu + alias_method :is_shared_cpu?, :is_shared_cpu + # [Output Only] The type of the resource. Always compute#machineType for machine # types. # Corresponds to the JSON property `kind` @@ -4971,6 +5098,7 @@ module Google @description = args[:description] if args.key?(:description) @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus) @id = args[:id] if args.key?(:id) + @is_shared_cpu = args[:is_shared_cpu] if args.key?(:is_shared_cpu) @kind = args[:kind] if args.key?(:kind) @maximum_persistent_disks = args[:maximum_persistent_disks] if args.key?(:maximum_persistent_disks) @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] if args.key?(:maximum_persistent_disks_size_gb) @@ -5520,8 +5648,9 @@ module Google # @return [String] attr_accessor :network - # [Output Only] An optional IPV4 internal network address assigned to the - # instance for this network interface. + # An IPV4 internal network address to assign to the instance for this network + # interface. If not specified by user an unused internal IP is assigned by + # system. # Corresponds to the JSON property `networkIP` # @return [String] attr_accessor :network_ip @@ -5532,9 +5661,9 @@ module Google # subnet mode, then this field should be specified. If you specify this property, # you can specify the subnetwork as a full or partial URL. For example, the # following are all valid URLs: - # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/ + # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ # subnetworks/subnetwork - # - zones/zone/subnetworks/subnetwork + # - regions/region/subnetworks/subnetwork # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork @@ -7329,13 +7458,9 @@ module Google # @return [String] attr_accessor :label_fingerprint - # Labels to apply to this snapshot. These can be later modified by the setLabels( - # ) method. Each label key & value must comply with RFC1035. Specifically, the - # name must be 1-63 characters long and match the regular expression [a-z]([-a- - # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, - # and all following characters must be a dash, lowercase letter, or digit, - # except the last character, which cannot be a dash. A label value can also be - # empty (e.g. "example-label": ""). + # Labels to apply to this snapshot. These can be later modified by the setLabels + # method. Each label key/value pair must comply with RFC1035. Label values may + # be empty. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -9295,7 +9420,7 @@ module Google attr_accessor :self_link # The list of expected URL mappings. Request to update this UrlMap will succeed - # only all of the test cases pass. + # only if all of the test cases pass. # Corresponds to the JSON property `tests` # @return [Array] attr_accessor :tests diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 18eb962c2..c3c579832 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -172,6 +172,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CustomerEncryptionKeyProtectedDisk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DeprecationStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -196,6 +202,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DiskMoveRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DiskType class Representation < Google::Apis::Core::JsonRepresentation; end @@ -556,6 +568,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MoveInstanceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceProperties class Representation < Google::Apis::Core::JsonRepresentation; end @@ -616,6 +634,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstancesStartWithEncryptionKeyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class License class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1583,6 +1607,15 @@ module Google end end + class CustomerEncryptionKeyProtectedDisk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation + + property :source, as: 'source' + end + end + class DeprecationStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1652,6 +1685,14 @@ module Google end end + class DiskMoveRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination_zone, as: 'destinationZone' + property :target_disk, as: 'targetDisk' + end + end + class DiskType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2340,6 +2381,14 @@ module Google end end + class MoveInstanceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination_zone, as: 'destinationZone' + property :target_instance, as: 'targetInstance' + end + end + class InstanceProperties # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2447,6 +2496,14 @@ module Google end end + class InstancesStartWithEncryptionKeyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk::Representation + + end + end + class License # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2466,6 +2523,7 @@ module Google property :description, as: 'description' property :guest_cpus, as: 'guestCpus' property :id, as: 'id' + property :is_shared_cpu, as: 'isSharedCpu' property :kind, as: 'kind' property :maximum_persistent_disks, as: 'maximumPersistentDisks' property :maximum_persistent_disks_size_gb, as: 'maximumPersistentDisksSizeGb' diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 80890e6ec..7c6380d29 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -22,7 +22,7 @@ module Google module ComputeBeta # Compute Engine API # - # API for the Google Compute Engine service. + # Creates and runs virtual machines on Google Cloud Platform. # # @example # require 'google/apis/compute_beta' @@ -68,11 +68,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -273,11 +273,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -397,11 +397,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -603,11 +603,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -976,11 +976,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1183,11 +1183,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1306,11 +1306,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1386,11 +1386,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1643,11 +1643,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1751,7 +1751,8 @@ module Google execute_or_queue_command(command, &block) end - # Sets the labels on the target disk. + # Sets the labels on a disk. To learn more about labels, read the Labeling or + # Tagging Resources documentation. # @param [String] project # Project ID for this request. # @param [String] zone @@ -1970,11 +1971,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2173,11 +2174,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2379,11 +2380,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2664,11 +2665,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2901,11 +2902,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -3063,11 +3064,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -3217,11 +3218,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -3413,11 +3414,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -3734,11 +3735,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -4140,11 +4141,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -4203,7 +4204,8 @@ module Google execute_or_queue_command(command, &block) end - # Sets the labels on the target image. + # Sets the labels on an image. To learn more about labels, read the Labeling or + # Tagging Resources documentation. # @param [String] project # Project ID for this request. # @param [String] resource @@ -4352,11 +4354,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -4615,11 +4617,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5119,11 +5121,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5328,11 +5330,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5414,11 +5416,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5752,11 +5754,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5919,11 +5921,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -6310,11 +6312,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -6462,7 +6464,8 @@ module Google execute_or_queue_command(command, &block) end - # Sets labels for the specified instance to the data included in the request. + # Sets labels on an instance. To learn more about labels, read the Labeling or + # Tagging Resources documentation. # @param [String] project # Project ID for this request. # @param [String] zone @@ -6725,6 +6728,51 @@ module Google execute_or_queue_command(command, &block) end + # Starts an instance that was stopped using the using the instances().stop + # method. For more information, see Restart an instance. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance resource to start. + # @param [Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest] instances_start_with_encryption_key_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options) + command.request_representation = Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest::Representation + command.request_object = instances_start_with_encryption_key_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Stops a running instance, shutting it down cleanly, and allows you to restart # the instance at a later time. Stopped instances do not incur per-minute, # virtual machine usage charges while they are stopped, but any resources that @@ -6870,11 +6918,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -6993,11 +7041,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7189,11 +7237,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7328,6 +7376,82 @@ module Google execute_or_queue_command(command, &block) end + # Moves a persistent disk from one zone to another. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeBeta::DiskMoveRequest] disk_move_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def move_disk(project, disk_move_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/moveDisk', options) + command.request_representation = Google::Apis::ComputeBeta::DiskMoveRequest::Representation + command.request_object = disk_move_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Moves an instance and its attached persistent disks from one zone to another. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeBeta::MoveInstanceRequest] move_instance_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def move_instance(project, move_instance_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/moveInstance', options) + command.request_representation = Google::Apis::ComputeBeta::MoveInstanceRequest::Representation + command.request_object = move_instance_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets metadata common to all instances within the specified project using the # data included in the request. # @param [String] project @@ -7505,11 +7629,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7624,11 +7748,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7703,11 +7827,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7950,11 +8074,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8279,11 +8403,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8481,11 +8605,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8544,7 +8668,8 @@ module Google execute_or_queue_command(command, &block) end - # Sets the labels on the target snapshot. + # Sets the labels on a snapshot. To learn more about labels, read the Labeling + # or Tagging Resources documentation. # @param [String] project # Project ID for this request. # @param [String] resource @@ -8759,11 +8884,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8879,11 +9004,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8983,8 +9108,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified subnetwork. Get a list of available subnetworks by - # making a list() request. + # Returns the specified subnetwork. Get a list of available subnetworks list() + # request. # @param [String] project # Project ID for this request. # @param [String] region @@ -9085,11 +9210,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -9326,11 +9451,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -9604,11 +9729,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -9806,11 +9931,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -10013,11 +10138,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -10225,11 +10350,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -10476,11 +10601,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -10735,11 +10860,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -10942,11 +11067,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -11224,11 +11349,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -11469,11 +11594,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -11676,11 +11801,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -11882,11 +12007,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -12001,11 +12126,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 2d20d71aa..78396136e 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Compute Engine API # - # API for the Google Compute Engine service. + # Creates and runs virtual machines on Google Cloud Platform. # # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20160407' + REVISION = '20160426' # 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 a59eea80b..9a0352e1b 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -2114,7 +2114,7 @@ module Google attr_accessor :ip_address # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, - # AH or SCTP. + # AH, SCTP or ICMP. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol @@ -2820,6 +2820,13 @@ module Google # @return [String] attr_accessor :disk_size_gb + # The name of the image family to which this image belongs. You can create disks + # by specifying an image family instead of a specific image name. The image + # family always returns its latest image that is not deprecated. + # Corresponds to the JSON property `family` + # @return [String] + attr_accessor :family + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -2899,6 +2906,7 @@ module Google @deprecated = args[:deprecated] if args.key?(:deprecated) @description = args[:description] if args.key?(:description) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @family = args[:family] if args.key?(:family) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @licenses = args[:licenses] if args.key?(:licenses) @@ -3418,9 +3426,8 @@ module Google # @return [String] attr_accessor :description - # [Output Only] The fingerprint of the target pools information. You can use - # this optional field for optimistic locking when you update the target pool - # entries. + # [Output Only] The fingerprint of the resource data. You can use this optional + # field for optimistic locking when you update the resource. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -5266,8 +5273,9 @@ module Google # @return [String] attr_accessor :network - # [Output Only] An optional IPV4 internal network address assigned to the - # instance for this network interface. + # An IPV4 internal network address to assign to the instance for this network + # interface. If not specified by user an unused internal IP is assigned by + # system. # Corresponds to the JSON property `networkIP` # @return [String] attr_accessor :network_ip @@ -5278,9 +5286,9 @@ module Google # subnet mode, then this field should be specified. If you specify this property, # you can specify the subnetwork as a full or partial URL. For example, the # following are all valid URLs: - # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/ + # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ # subnetworks/subnetwork - # - zones/zone/subnetworks/subnetwork + # - regions/region/subnetworks/subnetwork # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork @@ -8429,7 +8437,7 @@ module Google attr_accessor :self_link # The list of expected URL mappings. Request to update this UrlMap will succeed - # only all of the test cases pass. + # only if all of the test cases pass. # Corresponds to the JSON property `tests` # @return [Array] attr_accessor :tests diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 6adefbfb7..c0be967da 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -1823,6 +1823,7 @@ module Google property :description, as: 'description' property :disk_size_gb, as: 'diskSizeGb' + property :family, as: 'family' property :id, as: 'id' property :kind, as: 'kind' collection :licenses, as: 'licenses' diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 373394c0e..87b0709e1 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -22,7 +22,7 @@ module Google module ComputeV1 # Compute Engine API # - # API for the Google Compute Engine service. + # Creates and runs virtual machines on Google Cloud Platform. # # @example # require 'google/apis/compute_v1' @@ -68,11 +68,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -263,11 +263,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -333,11 +333,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -529,11 +529,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -848,11 +848,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1004,11 +1004,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1117,11 +1117,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1187,11 +1187,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1434,11 +1434,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1663,11 +1663,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -1815,11 +1815,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2011,11 +2011,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2242,11 +2242,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2428,11 +2428,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2539,11 +2539,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2683,11 +2683,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -2869,11 +2869,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -3139,11 +3139,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -3395,6 +3395,44 @@ module Google execute_or_queue_command(command, &block) end + # Returns the latest image that is part of an image family and is not deprecated. + # @param [String] project + # Project ID for this request. + # @param [String] family + # Name of the image resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Image] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Image] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_image_from_family(project, family, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/images/family/{family}', options) + command.response_representation = Google::Apis::ComputeV1::Image::Representation + command.response_class = Google::Apis::ComputeV1::Image + command.params['project'] = project unless project.nil? + command.params['family'] = family unless family.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates an image in the specified project using the data included in the # request. # @param [String] project @@ -3456,11 +3494,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -3576,11 +3614,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -3829,11 +3867,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -4185,11 +4223,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -4384,11 +4422,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -4460,11 +4498,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -4744,11 +4782,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -4860,11 +4898,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5236,11 +5274,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5698,11 +5736,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5811,11 +5849,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -5997,11 +6035,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -6338,11 +6376,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -6447,11 +6485,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -6632,11 +6670,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -6783,11 +6821,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -6969,11 +7007,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7038,11 +7076,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7132,8 +7170,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns the specified subnetwork. Get a list of available subnetworks by - # making a list() request. + # Returns the specified subnetwork. Get a list of available subnetworks list() + # request. # @param [String] project # Project ID for this request. # @param [String] region @@ -7234,11 +7272,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7421,11 +7459,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7648,11 +7686,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7799,11 +7837,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -7996,11 +8034,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8154,11 +8192,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8395,11 +8433,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8600,11 +8638,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8797,11 +8835,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -8983,11 +9021,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -9177,11 +9215,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -9374,11 +9412,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -9526,11 +9564,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are @@ -9635,11 +9673,11 @@ module Google # must match the entire field. # For example, to filter for instances that do not have a name of example- # instance, you would use filter=name ne example-instance. - # Compute Engine Beta API Only: If you use filtering in the Beta API, you can - # also filter on nested fields. For example, you could filter on instances that - # have set the scheduling.automaticRestart field to true. In particular, use - # filtering on nested fields to take advantage of instance labels to organize - # and filter results based on label values. + # Compute Engine Beta API Only: When filtering in the Beta API, you can also + # filter on nested fields. For example, you could filter on instances that have + # set the scheduling.automaticRestart field to true. Use filtering on nested + # fields to take advantage of labels to organize and search for results based on + # label values. # The Beta API also supports filtering on multiple expressions by providing each # separate expression within parentheses. For example, (scheduling. # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index b4f8bfcb7..d44c142c9 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20160321' + REVISION = '20160421' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index 8d35c68a2..9ccc8ca9b 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -129,6 +129,19 @@ module Google # @return [String] attr_accessor :subnetwork + # The node pools associated with this cluster. When creating a new cluster, only + # a single node pool should be specified. This field should not be set if " + # node_config" or "initial_node_count" are specified. + # Corresponds to the JSON property `nodePools` + # @return [Array] + attr_accessor :node_pools + + # The list of Google Compute Engine [locations](/compute/docs/zones#available) + # in which the cluster's nodes should be located. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + # [Output only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -225,6 +238,8 @@ module Google @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) @addons_config = args[:addons_config] if args.key?(:addons_config) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + @node_pools = args[:node_pools] if args.key?(:node_pools) + @locations = args[:locations] if args.key?(:locations) @self_link = args[:self_link] if args.key?(:self_link) @zone = args[:zone] if args.key?(:zone) @endpoint = args[:endpoint] if args.key?(:endpoint) @@ -420,6 +435,76 @@ module Google end end + # NodePool contains the name and configuration for a cluster's node pool. Node + # pools are a set of nodes (i.e. VM's), with a common configuration and + # specification, under the control of the cluster master. They may have a set of + # Kubernetes labels applied to them, which may be used to reference them during + # pod scheduling. They may also be resized up or down, to accommodate the + # workload. + class NodePool + include Google::Apis::Core::Hashable + + # The name of the node pool. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Parameters that describe the nodes in a cluster. + # Corresponds to the JSON property `config` + # @return [Google::Apis::ContainerV1::NodeConfig] + attr_accessor :config + + # The initial node count for the pool. You must ensure that your Compute Engine + # resource quota is sufficient for this number of instances. You must also have + # available firewall and routes quota. + # Corresponds to the JSON property `initialNodeCount` + # @return [Fixnum] + attr_accessor :initial_node_count + + # Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # The version of the Kubernetes of this node. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + # [Output only] The resource URLs of [instance groups](/compute/docs/instance- + # groups/) associated with this node pool. + # Corresponds to the JSON property `instanceGroupUrls` + # @return [Array] + attr_accessor :instance_group_urls + + # The status of the nodes in this pool instance. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # [Output only] Additional information about the current status of this node + # pool instance, if available. + # Corresponds to the JSON property `statusMessage` + # @return [String] + attr_accessor :status_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @config = args[:config] if args.key?(:config) + @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) + @self_link = args[:self_link] if args.key?(:self_link) + @version = args[:version] if args.key?(:version) + @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + end + end + # CreateClusterRequest creates a cluster. class CreateClusterRequest include Google::Apis::Core::Hashable @@ -546,6 +631,13 @@ module Google # @return [Google::Apis::ContainerV1::AddonsConfig] attr_accessor :desired_addons_config + # The node pool to be upgraded. This field is mandatory if the " + # desired_node_version" or "desired_image_family" is specified and there is more + # than one node pool on the cluster. + # Corresponds to the JSON property `desiredNodePoolId` + # @return [String] + attr_accessor :desired_node_pool_id + # The Kubernetes version to change the master to. The only valid value is the # latest supported version. Use "-" to have the server automatically select the # latest version. @@ -562,6 +654,7 @@ module Google @desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version) @desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service) @desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config) + @desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id) @desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version) end end @@ -606,6 +699,16 @@ module Google # @return [Array] attr_accessor :valid_node_versions + # Default image family. + # Corresponds to the JSON property `defaultImageFamily` + # @return [String] + attr_accessor :default_image_family + + # List of valid image families. + # Corresponds to the JSON property `validImageFamilies` + # @return [Array] + attr_accessor :valid_image_families + def initialize(**args) update!(**args) end @@ -614,6 +717,51 @@ module Google def update!(**args) @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version) @valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions) + @default_image_family = args[:default_image_family] if args.key?(:default_image_family) + @valid_image_families = args[:valid_image_families] if args.key?(:valid_image_families) + end + end + + # ListNodePoolsResponse is the result of ListNodePoolsRequest. + class ListNodePoolsResponse + include Google::Apis::Core::Hashable + + # A list of node pools for a cluster. + # Corresponds to the JSON property `nodePools` + # @return [Array] + attr_accessor :node_pools + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_pools = args[:node_pools] if args.key?(:node_pools) + end + end + + # CreateNodePoolRequest creates a node pool for a cluster. + class CreateNodePoolRequest + include Google::Apis::Core::Hashable + + # NodePool contains the name and configuration for a cluster's node pool. Node + # pools are a set of nodes (i.e. VM's), with a common configuration and + # specification, under the control of the cluster master. They may have a set of + # Kubernetes labels applied to them, which may be used to reference them during + # pod scheduling. They may also be resized up or down, to accommodate the + # workload. + # Corresponds to the JSON property `nodePool` + # @return [Google::Apis::ContainerV1::NodePool] + attr_accessor :node_pool + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_pool = args[:node_pool] if args.key?(:node_pool) end end end diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index b174eed07..528258165 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -64,6 +64,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NodePool + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CreateClusterRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -100,6 +106,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListNodePoolsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateNodePoolRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListClustersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -126,6 +144,9 @@ module Google property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation property :subnetwork, as: 'subnetwork' + collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation + + collection :locations, as: 'locations' property :self_link, as: 'selfLink' property :zone, as: 'zone' property :endpoint, as: 'endpoint' @@ -187,6 +208,21 @@ module Google end end + class NodePool + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation + + property :initial_node_count, as: 'initialNodeCount' + property :self_link, as: 'selfLink' + property :version, as: 'version' + collection :instance_group_urls, as: 'instanceGroupUrls' + property :status, as: 'status' + property :status_message, as: 'statusMessage' + end + end + class CreateClusterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -224,6 +260,7 @@ module Google property :desired_monitoring_service, as: 'desiredMonitoringService' property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation + property :desired_node_pool_id, as: 'desiredNodePoolId' property :desired_master_version, as: 'desiredMasterVersion' end end @@ -242,6 +279,24 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :default_cluster_version, as: 'defaultClusterVersion' collection :valid_node_versions, as: 'validNodeVersions' + property :default_image_family, as: 'defaultImageFamily' + collection :valid_image_families, as: 'validImageFamilies' + end + end + + class ListNodePoolsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation + + end + end + + class CreateNodePoolRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation + end end end diff --git a/generated/google/apis/container_v1/service.rb b/generated/google/apis/container_v1/service.rb index 6ff88e9ea..045fc8132 100644 --- a/generated/google/apis/container_v1/service.rb +++ b/generated/google/apis/container_v1/service.rb @@ -283,6 +283,167 @@ module Google execute_or_queue_command(command, &block) end + # Lists the node pools for a cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::ListNodePoolsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options) + command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation + command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the node pool requested. + # @param [String] project_id + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [String] node_pool_id + # The name of the node pool. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::NodePool] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options) + command.response_representation = Google::Apis::ContainerV1::NodePool::Representation + command.response_class = Google::Apis::ContainerV1::NodePool + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a node pool for a cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options) + command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation + command.request_object = create_node_pool_request_object + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a node pool from a cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project number](https:// + # developers.google.com/console/help/new/#projectnumber). + # @param [String] zone + # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in + # which the cluster resides. + # @param [String] cluster_id + # The name of the cluster. + # @param [String] node_pool_id + # The name of the node pool to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options) + command.response_representation = Google::Apis::ContainerV1::Operation::Representation + command.response_class = Google::Apis::ContainerV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists all operations in a project in a specific zone or all zones. # @param [String] project_id # The Google Developers Console [project ID or project number](https://support. diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 48d12530b..a56a84502 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 module ContentV2 VERSION = 'V2' - REVISION = '20160331' + REVISION = '20160419' # 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 ac368ffdd..9a58567b2 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -2733,7 +2733,9 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the cancellation. + # The reason for the cancellation. Orders that are cancelled with a noIventory + # reason will lead to the removal of the product from POG until you make an + # update to that product. This will not affect your Shopping ads. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -2766,7 +2768,7 @@ module Google # @return [String] attr_accessor :email - # If set, this indicates the user had a choice to opt in or out of providing + # If set, this indicates the user explicitly chose to opt in or out of providing # marketing rights to the merchant. If unset, this indicates the user has # already made this choice in a previous purchase, and was thus not shown the # marketing right opt in/out checkbox during the Purchases on Google checkout @@ -4792,7 +4794,10 @@ module Google # @return [String] attr_accessor :multipack - # An identifier of the item. + # An identifier of the item. Leading and trailing whitespaces are stripped and + # multiple whitespaces are replaced by a single whitespace upon submission. Only + # valid unicode characters are accepted. See the products feed specification for + # details. # Corresponds to the JSON property `offerId` # @return [String] attr_accessor :offer_id @@ -4813,7 +4818,7 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :price - # Your category of the item (formatted as in product feeds specification). + # Your category of the item (formatted as in products feed specification). # Corresponds to the JSON property `productType` # @return [String] attr_accessor :product_type @@ -4828,7 +4833,7 @@ module Google # @return [Google::Apis::ContentV2::Price] attr_accessor :sale_price - # Date range during which the item is on sale (see product feed specifications). + # Date range during which the item is on sale (see products feed specification). # Corresponds to the JSON property `salePriceEffectiveDate` # @return [String] attr_accessor :sale_price_effective_date @@ -5886,7 +5891,7 @@ module Google # @return [String] attr_accessor :email - # If set, this indicates the user had a choice to opt in or out of providing + # If set, this indicates the user explicitly chose to opt in or out of providing # marketing rights to the merchant. If unset, this indicates the user has # already made this choice in a previous purchase, and was thus not shown the # marketing right opt in/out checkbox during the Purchases on Google checkout diff --git a/generated/google/apis/customsearch_v1.rb b/generated/google/apis/customsearch_v1.rb index 8c84d2a3a..cae9782ad 100644 --- a/generated/google/apis/customsearch_v1.rb +++ b/generated/google/apis/customsearch_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/custom-search/v1/using_rest module CustomsearchV1 VERSION = 'V1' - REVISION = '20151130' + REVISION = '20160411' end end end diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index c11d55355..cca6550be 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -20,24 +20,15 @@ module Google module Apis # Google Cloud Dataproc API # - # An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. + # Manages Hadoop-based clusters and jobs on Google Cloud Platform. # # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20160219' + REVISION = '20160503' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' - - # Administrate log data for your projects - AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin' - - # View log data for your projects - AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read' - - # Submit log data for your projects - AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write' end end end diff --git a/generated/google/apis/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index 8985c00a7..d931dac6b 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -22,25 +22,6 @@ module Google module Apis module DataprocV1 - # Media resource. - class Media - include Google::Apis::Core::Hashable - - # Name of the media resource. - # Corresponds to the JSON property `resourceName` - # @return [String] - attr_accessor :resource_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @resource_name = args[:resource_name] if args.key?(:resource_name) - end - end - # Describes the identifying information, config, and status of a cluster of # Google Compute Engine instances. class Cluster diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 63df16fb4..c519ae6bd 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -22,12 +22,6 @@ module Google module Apis module DataprocV1 - class Media - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Cluster class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,13 +238,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Media - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :resource_name, as: 'resourceName' - end - end - class Cluster # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1/service.rb b/generated/google/apis/dataproc_v1/service.rb index 54000dffb..775290b4b 100644 --- a/generated/google/apis/dataproc_v1/service.rb +++ b/generated/google/apis/dataproc_v1/service.rb @@ -22,7 +22,7 @@ module Google module DataprocV1 # Google Cloud Dataproc API # - # An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. + # Manages Hadoop-based clusters and jobs on Google Cloud Platform. # # @example # require 'google/apis/dataproc_v1' @@ -46,90 +46,6 @@ module Google super('https://dataproc.googleapis.com/', '') end - # Method for media upload. Upload is supported on the URI `/upload/v1/media/`+ - # name``. - # @param [String] resource_name - # Name of the media that is being downloaded. See ByteStream.ReadRequest. - # resource_name. - # @param [Google::Apis::DataprocV1::Media] media_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 [IO, String] upload_source - # IO stream or filename containing content to upload - # @param [String] content_type - # Content type of the uploaded content. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::Media] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def upload_medium(resource_name, media_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) - if upload_source.nil? - command = make_simple_command(:post, 'v1/media/{+resourceName}', options) - else - command = make_upload_command(:post, 'v1/media/{+resourceName}', options) - command.upload_source = upload_source - command.upload_content_type = content_type - end - command.request_representation = Google::Apis::DataprocV1::Media::Representation - command.request_object = media_object - command.response_representation = Google::Apis::DataprocV1::Media::Representation - command.response_class = Google::Apis::DataprocV1::Media - command.params['resourceName'] = resource_name unless resource_name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Method for media download. Download is supported on the URI `/v1/media/`+name`? - # alt=media`. - # @param [String] resource_name - # Name of the media that is being downloaded. See ByteStream.ReadRequest. - # resource_name. - # @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 [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataprocV1::Media] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'v1/media/{+resourceName}', options) - else - command = make_download_command(:get, 'v1/media/{+resourceName}', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::DataprocV1::Media::Representation - command.response_class = Google::Apis::DataprocV1::Media - command.params['resourceName'] = resource_name unless resource_name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Creates a cluster in a project. # @param [String] project_id # [Required] The ID of the Google Cloud Platform project that the cluster @@ -180,8 +96,13 @@ module Google # For example, to change the number of workers in a cluster to 5, the # update_mask parameter would be specified as config.worker_config.num_instances, # and the `PATCH` request body would specify the new value, as follows: ` " - # config":` "workerConfig":` "numInstances":"5" ` ` ` Note: Currently, config. - # worker_config.num_instances is the only field that can be updated. + # config":` "workerConfig":` "numInstances":"5" ` ` ` Similarly, to change the + # number of preemptible workers in a cluster to 5, the update_mask parameter + # would be config.secondary_worker_config.num_instances, and the `PATCH` request + # body would be set as follows: ` "config":` "secondaryWorkerConfig":` " + # numInstances":"5" ` ` ` Note: Currently, config.worker_config.num_instances + # and config.secondary_worker_config.num_instances are the only fields that can + # be updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 5fc37a473..6d647e632 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20160406' + REVISION = '20160426' # 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/dfareporting_v2_3.rb b/generated/google/apis/dfareporting_v2_3.rb index b6796942a..04208204c 100644 --- a/generated/google/apis/dfareporting_v2_3.rb +++ b/generated/google/apis/dfareporting_v2_3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/reporting/ module DfareportingV2_3 VERSION = 'V2_3' - REVISION = '20160323' + REVISION = '20160509' # View and manage DoubleClick for Advertisers reports AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting' diff --git a/generated/google/apis/dfareporting_v2_3/classes.rb b/generated/google/apis/dfareporting_v2_3/classes.rb index c8a81bc04..d4172db83 100644 --- a/generated/google/apis/dfareporting_v2_3/classes.rb +++ b/generated/google/apis/dfareporting_v2_3/classes.rb @@ -2373,7 +2373,8 @@ module Google attr_accessor :background_color # Click-through URL for backup image. Applicable to the following creative types: - # ENHANCED_BANNER, FLASH_INPAGE, and HTML5_BANNER. + # FLASH_INPAGE, and HTML5_BANNER. Applicable to ENHANCED_BANNER when the + # primary asset type is not HTML_IMAGE. # Corresponds to the JSON property `backupImageClickThroughUrl` # @return [String] attr_accessor :backup_image_click_through_url @@ -2385,13 +2386,14 @@ module Google # all features detected by DCM for all the assets of this creative and can then # be modified by the client. To reset this field, copy over all the # creativeAssets' detected features. Applicable to the following creative types: - # ENHANCED_BANNER and HTML5_BANNER. + # HTML5_BANNER. Applicable to ENHANCED_BANNER when the primary asset is not + # HTML_IMAGE. # Corresponds to the JSON property `backupImageFeatures` # @return [Array] attr_accessor :backup_image_features - # Reporting label used for HTML5 banner backup image. Applicable to the - # following creative types: ENHANCED_BANNER. + # Reporting label used for HTML5 banner backup image. Applicable to + # ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. # Corresponds to the JSON property `backupImageReportingLabel` # @return [String] attr_accessor :backup_image_reporting_label @@ -2410,8 +2412,9 @@ module Google # should be exactly one entry in this list for each image creative asset. A # click tag is matched with a corresponding creative asset by matching the # clickTag.name field with the creativeAsset.assetIdentifier.name field. - # Applicable to the following creative types: ENHANCED_BANNER, ENHANCED_IMAGE, - # FLASH_INPAGE, HTML5_BANNER. + # Applicable to the following creative types: ENHANCED_IMAGE, FLASH_INPAGE + # HTML5_BANNER. Applicable to ENHANCED_BANNER when the primary asset type is not + # HTML_IMAGE. # Corresponds to the JSON property `clickTags` # @return [Array] attr_accessor :click_tags @@ -2447,8 +2450,8 @@ module Google # Whether Flash assets associated with the creative need to be automatically # converted to HTML5. This flag is enabled by default and users can choose to # disable it if they don't want the system to generate and use HTML5 asset for - # this creative. Applicable to the following creative types: ENHANCED_BANNER and - # FLASH_INPAGE. + # this creative. Applicable to the following creative type: FLASH_INPAGE. + # Applicable to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. # Corresponds to the JSON property `convertFlashToHtml5` # @return [Boolean] attr_accessor :convert_flash_to_html5 @@ -2486,7 +2489,8 @@ module Google # ENHANCED_IMAGE creatives, these are read-only and auto-generated from # clickTags, For ENHANCED_BANNER, an event is also created from the # backupImageReportingLabel. Applicable to the following creative types: - # ENHANCED_BANNER, ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID. + # ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID. Applicable to ENHANCED_BANNER + # when the primary asset is not HTML_IMAGE. # Corresponds to the JSON property `exitCustomEvents` # @return [Array] attr_accessor :exit_custom_events @@ -2582,7 +2586,8 @@ module Google # The internal Flash version for this creative as calculated by DoubleClick # Studio. This is a read-only field. Applicable to the following creative types: - # FLASH_INPAGE, ENHANCED_BANNER, all RICH_MEDIA, and all VPAID. + # FLASH_INPAGE, all RICH_MEDIA, and all VPAID. Applicable to ENHANCED_BANNER + # when the primary asset type is not HTML_IMAGE. # Corresponds to the JSON property `requiredFlashVersion` # @return [Fixnum] attr_accessor :required_flash_version @@ -2642,13 +2647,13 @@ module Google attr_accessor :subaccount_id # Third-party URL used to record backup image impressions. Applicable to the - # following creative types: all RICH_MEDIA + # following creative types: all RICH_MEDIA. # Corresponds to the JSON property `thirdPartyBackupImageImpressionsUrl` # @return [String] attr_accessor :third_party_backup_image_impressions_url # Third-party URL used to record rich media impressions. Applicable to the - # following creative types: all RICH_MEDIA + # following creative types: all RICH_MEDIA. # Corresponds to the JSON property `thirdPartyRichMediaImpressionsUrl` # @return [String] attr_accessor :third_party_rich_media_impressions_url @@ -2662,6 +2667,7 @@ module Google # List of timer events configured for the creative. For ENHANCED_IMAGE creatives, # these are read-only and auto-generated from clickTags. Applicable to the # following creative types: ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID. + # Applicable to ENHANCED_BANNER when the primary asset is not HTML_IMAGE. # Corresponds to the JSON property `timerCustomEvents` # @return [Array] attr_accessor :timer_custom_events @@ -2773,8 +2779,8 @@ module Google include Google::Apis::Core::Hashable # Whether ActionScript3 is enabled for the flash asset. This is a read-only - # field. Applicable to the following creative types: FLASH_INPAGE and - # ENHANCED_BANNER. + # field. Applicable to the following creative type: FLASH_INPAGE. Applicable to + # ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. # Corresponds to the JSON property `actionScript3` # @return [Boolean] attr_accessor :action_script3 @@ -2873,8 +2879,8 @@ module Google attr_accessor :file_size # Flash version of the asset. This is a read-only field. Applicable to the - # following creative types: FLASH_INPAGE, ENHANCED_BANNER, all RICH_MEDIA, and - # all VPAID. + # following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. + # Applicable to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. # Corresponds to the JSON property `flashVersion` # @return [Fixnum] attr_accessor :flash_version @@ -2982,8 +2988,8 @@ module Google # TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO assets # and is applicable to INSTREAM_VIDEO and VPAID_LINEAR creatives. # ALTERNATE_VIDEO refers to the DCM representation of child asset videos from - # Studio, and is applicable to VPAID_LINEAR creatives. These cannot be added or - # removed within DCM. + # Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be + # added or removed within DCM. # For VPAID_LINEAR creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO # assets that are marked active serve as backup in case the VPAID creative # cannot be served. Only PARENT_VIDEO assets can be added or removed for an @@ -3177,27 +3183,30 @@ module Google # Rules validated during code generation that generated a warning. This is a # read-only, auto-generated field. # Possible values are: - # - "CLICK_TAG_NON_TOP_LEVEL" + # - "ADMOB_REFERENCED" + # - "ASSET_FORMAT_UNSUPPORTED_DCM" + # - "ASSET_INVALID" + # - "CLICK_TAG_HARD_CODED" + # - "CLICK_TAG_INVALID" + # - "CLICK_TAG_IN_GWD" # - "CLICK_TAG_MISSING" # - "CLICK_TAG_MORE_THAN_ONE" - # - "CLICK_TAG_INVALID" - # - "ORPHANED_ASSET" - # - "PRIMARY_HTML_MISSING" + # - "CLICK_TAG_NON_TOP_LEVEL" + # - "COMPONENT_UNSUPPORTED_DCM" + # - "ENABLER_UNSUPPORTED_METHOD_DCM" # - "EXTERNAL_FILE_REFERENCED" - # - "MRAID_REFERENCED" - # - "ADMOB_REFERENCED" + # - "FILE_DETAIL_EMPTY" # - "FILE_TYPE_INVALID" - # - "ZIP_INVALID" + # - "GWD_PROPERTIES_INVALID" + # - "HTML5_FEATURE_UNSUPPORTED" # - "LINKED_FILE_NOT_FOUND" # - "MAX_FLASH_VERSION_11" + # - "MRAID_REFERENCED" # - "NOT_SSL_COMPLIANT" - # - "FILE_DETAIL_EMPTY" - # - "ASSET_INVALID" - # - "GWD_PROPERTIES_INVALID" - # - "ENABLER_UNSUPPORTED_METHOD_DCM" - # - "ASSET_FORMAT_UNSUPPORTED_DCM" - # - "COMPONENT_UNSUPPORTED_DCM" - # - "HTML5_FEATURE_UNSUPPORTED' " + # - "ORPHANED_ASSET" + # - "PRIMARY_HTML_MISSING" + # - "SVG_INVALID" + # - "ZIP_INVALID" # Corresponds to the JSON property `warnedValidationRules` # @return [Array] attr_accessor :warned_validation_rules diff --git a/generated/google/apis/discovery_v1.rb b/generated/google/apis/discovery_v1.rb index 537452c4b..626ca9d5a 100644 --- a/generated/google/apis/discovery_v1.rb +++ b/generated/google/apis/discovery_v1.rb @@ -20,8 +20,8 @@ module Google module Apis # APIs Discovery Service # - # Lets you discover information about other Google APIs, such as what APIs are - # available, the resource and method details for each API. + # Provides information about other Google APIs, such as what APIs are available, + # the resource, and method details for each API. # # @see https://developers.google.com/discovery/ module DiscoveryV1 diff --git a/generated/google/apis/discovery_v1/service.rb b/generated/google/apis/discovery_v1/service.rb index d737d2bea..9d2f292e3 100644 --- a/generated/google/apis/discovery_v1/service.rb +++ b/generated/google/apis/discovery_v1/service.rb @@ -22,8 +22,8 @@ module Google module DiscoveryV1 # APIs Discovery Service # - # Lets you discover information about other Google APIs, such as what APIs are - # available, the resource and method details for each API. + # Provides information about other Google APIs, such as what APIs are available, + # the resource, and method details for each API. # # @example # require 'google/apis/discovery_v1' diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index 0b9197413..bd9a2b74d 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -20,13 +20,12 @@ module Google module Apis # Google Cloud DNS API # - # The Google Cloud DNS API provides services for configuring and serving - # authoritative DNS records. + # Configures and serves authoritative DNS records. # # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20160224' + REVISION = '20160509' # 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/dns_v1/service.rb b/generated/google/apis/dns_v1/service.rb index b6d6d3698..e454ef9ce 100644 --- a/generated/google/apis/dns_v1/service.rb +++ b/generated/google/apis/dns_v1/service.rb @@ -22,8 +22,7 @@ module Google module DnsV1 # Google Cloud DNS API # - # The Google Cloud DNS API provides services for configuring and serving - # authoritative DNS records. + # Configures and serves authoritative DNS records. # # @example # require 'google/apis/dns_v1' diff --git a/generated/google/apis/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index 35700944f..1f7dc9d7c 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '20160225' + REVISION = '20160426' end end end diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index c0deac93e..65d671c28 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 = '20160407' + REVISION = '20160506' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index fc3dea112..f29641917 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -20,12 +20,13 @@ module Google module Apis # Drive API # - # The API to interact with Drive. + # Manages files in Drive including uploading, downloading, searching, detecting + # changes, and updating sharing permissions. # # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20160408' + REVISION = '20160506' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index d3c42e7ae..170c9d866 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -22,7 +22,8 @@ module Google module DriveV2 # Drive API # - # The API to interact with Drive. + # Manages files in Drive including uploading, downloading, searching, detecting + # changes, and updating sharing permissions. # # @example # require 'google/apis/drive_v2' diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index aa998d65d..a09fbd69d 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -20,12 +20,13 @@ module Google module Apis # Drive API # - # The API to interact with Drive. + # Manages files in Drive including uploading, downloading, searching, detecting + # changes, and updating sharing permissions. # # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20160408' + REVISION = '20160506' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3/service.rb b/generated/google/apis/drive_v3/service.rb index 5cca99fbe..80420eb41 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -22,7 +22,8 @@ module Google module DriveV3 # Drive API # - # The API to interact with Drive. + # Manages files in Drive including uploading, downloading, searching, detecting + # changes, and updating sharing permissions. # # @example # require 'google/apis/drive_v3' diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index 154a9c955..bd16c2285 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 = '20160407' + REVISION = '20160509' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index 32c4f9e77..7b43fa529 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesManagementV1management VERSION = 'V1management' - REVISION = '20160407' + REVISION = '20160509' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' diff --git a/generated/google/apis/games_management_v1management/classes.rb b/generated/google/apis/games_management_v1management/classes.rb index b1198f0c1..11736e387 100644 --- a/generated/google/apis/games_management_v1management/classes.rb +++ b/generated/google/apis/games_management_v1management/classes.rb @@ -364,6 +364,11 @@ module Google # @return [String] attr_accessor :player_id + # This is a JSON template for profile settings + # Corresponds to the JSON property `profileSettings` + # @return [Google::Apis::GamesManagementV1management::ProfileSettings] + attr_accessor :profile_settings + # The player's title rewarded for their game activities. # Corresponds to the JSON property `title` # @return [String] @@ -385,6 +390,7 @@ module Google @name = args[:name] if args.key?(:name) @original_player_id = args[:original_player_id] if args.key?(:original_player_id) @player_id = args[:player_id] if args.key?(:player_id) + @profile_settings = args[:profile_settings] if args.key?(:profile_settings) @title = args[:title] if args.key?(:title) end @@ -477,6 +483,34 @@ module Google end end + # This is a JSON template for profile settings + class ProfileSettings + include Google::Apis::Core::Hashable + + # Uniquely identifies the type of this resource. Value is always the fixed + # string gamesManagement#profileSettings. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The player's current profile visibility. This field is visible to both 1P and + # 3P APIs. + # Corresponds to the JSON property `profileVisible` + # @return [Boolean] + attr_accessor :profile_visible + alias_method :profile_visible?, :profile_visible + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @profile_visible = args[:profile_visible] if args.key?(:profile_visible) + end + end + # This is a JSON template for multiple quests reset all request. class QuestsResetMultipleForAllRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/games_management_v1management/representations.rb b/generated/google/apis/games_management_v1management/representations.rb index 0f9b6a2e0..316de97da 100644 --- a/generated/google/apis/games_management_v1management/representations.rb +++ b/generated/google/apis/games_management_v1management/representations.rb @@ -100,6 +100,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ProfileSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class QuestsResetMultipleForAllRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -212,6 +218,8 @@ module Google property :original_player_id, as: 'originalPlayerId' property :player_id, as: 'playerId' + property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesManagementV1management::ProfileSettings, decorator: Google::Apis::GamesManagementV1management::ProfileSettings::Representation + property :title, as: 'title' end @@ -242,6 +250,14 @@ module Google end end + class ProfileSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :profile_visible, as: 'profileVisible' + end + end + class QuestsResetMultipleForAllRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 340b9584b..db24ff29d 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 = '20160407' + REVISION = '20160509' # 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/classes.rb b/generated/google/apis/games_v1/classes.rb index 4f80d2211..b752eaf7b 100644 --- a/generated/google/apis/games_v1/classes.rb +++ b/generated/google/apis/games_v1/classes.rb @@ -2038,6 +2038,11 @@ module Google # @return [String] attr_accessor :player_id + # This is a JSON template for profile settings + # Corresponds to the JSON property `profileSettings` + # @return [Google::Apis::GamesV1::ProfileSettings] + attr_accessor :profile_settings + # The player's title rewarded for their game activities. # Corresponds to the JSON property `title` # @return [String] @@ -2059,6 +2064,7 @@ module Google @name = args[:name] if args.key?(:name) @original_player_id = args[:original_player_id] if args.key?(:original_player_id) @player_id = args[:player_id] if args.key?(:player_id) + @profile_settings = args[:profile_settings] if args.key?(:profile_settings) @title = args[:title] if args.key?(:title) end @@ -2646,6 +2652,34 @@ module Google end end + # This is a JSON template for profile settings + class ProfileSettings + include Google::Apis::Core::Hashable + + # Uniquely identifies the type of this resource. Value is always the fixed + # string games#profileSettings. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The player's current profile visibility. This field is visible to both 1P and + # 3P APIs. + # Corresponds to the JSON property `profileVisible` + # @return [Boolean] + attr_accessor :profile_visible + alias_method :profile_visible?, :profile_visible + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @profile_visible = args[:profile_visible] if args.key?(:profile_visible) + end + end + # This is a JSON template for a push token resource. class PushToken include Google::Apis::Core::Hashable diff --git a/generated/google/apis/games_v1/representations.rb b/generated/google/apis/games_v1/representations.rb index 6bac2cbd6..dd3d109ab 100644 --- a/generated/google/apis/games_v1/representations.rb +++ b/generated/google/apis/games_v1/representations.rb @@ -382,6 +382,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ProfileSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PushToken class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1135,6 +1141,8 @@ module Google property :original_player_id, as: 'originalPlayerId' property :player_id, as: 'playerId' + property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesV1::ProfileSettings, decorator: Google::Apis::GamesV1::ProfileSettings::Representation + property :title, as: 'title' end @@ -1295,6 +1303,14 @@ module Google end end + class ProfileSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :profile_visible, as: 'profileVisible' + end + end + class PushToken # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 5325eeb57..69656d682 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/genomics/ module GenomicsV1 VERSION = 'V1' - REVISION = '20160411' + REVISION = '20160512' # 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 d099dcdce..5e2fbe060 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -2526,6 +2526,16 @@ module Google # @return [Array] attr_accessor :metadata + # User-specified, mutable name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A textual description of this variant set. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + def initialize(**args) update!(**args) end @@ -2537,6 +2547,8 @@ module Google @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) @reference_bounds = args[:reference_bounds] if args.key?(:reference_bounds) @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) end end @@ -3299,6 +3311,11 @@ module Google # @return [String] attr_accessor :create_time + # The time at which the job stopped running. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + # The original request that started the operation. Note that this will be in # current version of the API. If the operation was started with v1beta2 API and # a GetOperation is performed on v1 API, a v1 request will be returned. @@ -3320,6 +3337,7 @@ module Google def update!(**args) @project_id = args[:project_id] if args.key?(:project_id) @create_time = args[:create_time] if args.key?(:create_time) + @end_time = args[:end_time] if args.key?(:end_time) @request = args[:request] if args.key?(:request) @events = args[:events] if args.key?(:events) end diff --git a/generated/google/apis/genomics_v1/representations.rb b/generated/google/apis/genomics_v1/representations.rb index 1294c5607..2a1730eea 100644 --- a/generated/google/apis/genomics_v1/representations.rb +++ b/generated/google/apis/genomics_v1/representations.rb @@ -1087,6 +1087,8 @@ module Google collection :metadata, as: 'metadata', class: Google::Apis::GenomicsV1::VariantSetMetadata, decorator: Google::Apis::GenomicsV1::VariantSetMetadata::Representation + property :name, as: 'name' + property :description, as: 'description' end end @@ -1292,6 +1294,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :project_id, as: 'projectId' property :create_time, as: 'createTime' + property :end_time, as: 'endTime' hash :request, as: 'request' collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index 959ec89c7..03e678624 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -1897,8 +1897,8 @@ module Google # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object # @param [String] update_mask # An optional mask specifying which fields to update. Supported fields: * - # metadata. Leaving `updateMask` unset is equivalent to specifying all mutable - # fields. + # metadata. * name. * description. Leaving `updateMask` unset is equivalent to + # specifying all mutable fields. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index e77da216e..43a843fea 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '20160407' + REVISION = '20160420' end end end diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index 69c74afe1..c0cf66fe5 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -890,12 +890,6 @@ module Google # @return [String] attr_accessor :password - # Whether return sts id token and refresh token instead of gitkit token. - # Corresponds to the JSON property `returnSecureToken` - # @return [Boolean] - attr_accessor :return_secure_token - alias_method :return_secure_token?, :return_secure_token - def initialize(**args) update!(**args) end @@ -909,7 +903,6 @@ module Google @id_token = args[:id_token] if args.key?(:id_token) @instance_id = args[:instance_id] if args.key?(:instance_id) @password = args[:password] if args.key?(:password) - @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) end end @@ -1302,6 +1295,11 @@ module Google # @return [String] attr_accessor :kind + # The local ID of the user. + # Corresponds to the JSON property `localId` + # @return [String] + attr_accessor :local_id + # The new email the user attempts to change to. # Corresponds to the JSON property `newEmail` # @return [String] @@ -1338,6 +1336,7 @@ module Google @expires_in = args[:expires_in] if args.key?(:expires_in) @id_token = args[:id_token] if args.key?(:id_token) @kind = args[:kind] if args.key?(:kind) + @local_id = args[:local_id] if args.key?(:local_id) @new_email = args[:new_email] if args.key?(:new_email) @password_hash = args[:password_hash] if args.key?(:password_hash) @photo_url = args[:photo_url] if args.key?(:photo_url) @@ -1354,6 +1353,11 @@ module Google # @return [String] attr_accessor :display_name + # User's identifier at IDP. + # Corresponds to the JSON property `federatedId` + # @return [String] + attr_accessor :federated_id + # The user's photo url at the IDP. # Corresponds to the JSON property `photoUrl` # @return [String] @@ -1372,6 +1376,7 @@ module Google # Update properties of this object def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) + @federated_id = args[:federated_id] if args.key?(:federated_id) @photo_url = args[:photo_url] if args.key?(:photo_url) @provider_id = args[:provider_id] if args.key?(:provider_id) end diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index 0c4e75d2a..9dc7aff62 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -463,7 +463,6 @@ module Google property :id_token, as: 'idToken' property :instance_id, as: 'instanceId' property :password, as: 'password' - property :return_secure_token, as: 'returnSecureToken' end end @@ -561,6 +560,7 @@ module Google property :expires_in, as: 'expiresIn' property :id_token, as: 'idToken' property :kind, as: 'kind' + property :local_id, as: 'localId' property :new_email, as: 'newEmail' property :password_hash, :base64 => true, as: 'passwordHash' property :photo_url, as: 'photoUrl' @@ -573,6 +573,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' + property :federated_id, as: 'federatedId' property :photo_url, as: 'photoUrl' property :provider_id, as: 'providerId' end diff --git a/generated/google/apis/pagespeedonline_v2.rb b/generated/google/apis/pagespeedonline_v2.rb index bea8a14c5..aa918ee10 100644 --- a/generated/google/apis/pagespeedonline_v2.rb +++ b/generated/google/apis/pagespeedonline_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/speed/docs/insights/v2/getting-started module PagespeedonlineV2 VERSION = 'V2' - REVISION = '20160306' + REVISION = '20160413' end end end diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index 942084653..8b5671eea 100644 --- a/generated/google/apis/plus_domains_v1.rb +++ b/generated/google/apis/plus_domains_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Google+ Domains API # - # The Google+ API enables developers to build on top of the Google+ platform. + # Builds on top of the Google+ platform for Google Apps Domains. # # @see https://developers.google.com/+/domains/ module PlusDomainsV1 VERSION = 'V1' - REVISION = '20160412' + REVISION = '20160511' # 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_domains_v1/service.rb b/generated/google/apis/plus_domains_v1/service.rb index 77de142f4..307d79af7 100644 --- a/generated/google/apis/plus_domains_v1/service.rb +++ b/generated/google/apis/plus_domains_v1/service.rb @@ -22,7 +22,7 @@ module Google module PlusDomainsV1 # Google+ Domains API # - # The Google+ API enables developers to build on top of the Google+ platform. + # Builds on top of the Google+ platform for Google Apps Domains. # # @example # require 'google/apis/plus_domains_v1' diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index de165c28a..a03e98d49 100644 --- a/generated/google/apis/plus_v1.rb +++ b/generated/google/apis/plus_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Google+ API # - # The Google+ API enables developers to build on top of the Google+ platform. + # Builds on top of the Google+ platform. # # @see https://developers.google.com/+/api/ module PlusV1 VERSION = 'V1' - REVISION = '20160412' + REVISION = '20160511' # Know the list of people in your circles, your age range, and language 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 5d2cb7329..cf30a8446 100644 --- a/generated/google/apis/plus_v1/service.rb +++ b/generated/google/apis/plus_v1/service.rb @@ -22,7 +22,7 @@ module Google module PlusV1 # Google+ API # - # The Google+ API enables developers to build on top of the Google+ platform. + # Builds on top of the Google+ platform. # # @example # require 'google/apis/plus_v1' diff --git a/generated/google/apis/proximitybeacon_v1beta1.rb b/generated/google/apis/proximitybeacon_v1beta1.rb index 82f16a6dc..b15ed0319 100644 --- a/generated/google/apis/proximitybeacon_v1beta1.rb +++ b/generated/google/apis/proximitybeacon_v1beta1.rb @@ -20,12 +20,15 @@ module Google module Apis # Google Proximity Beacon API # - # This API provides services to register, manage, index, and search beacons. + # Registers, manages, indexes, and searches beacons. # # @see https://developers.google.com/beacons/proximity/ module ProximitybeaconV1beta1 VERSION = 'V1beta1' - REVISION = '20150729' + REVISION = '20160429' + + # View and modify your beacons + AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry' end end end diff --git a/generated/google/apis/proximitybeacon_v1beta1/classes.rb b/generated/google/apis/proximitybeacon_v1beta1/classes.rb index ec845ade2..04534b9b2 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/classes.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/classes.rb @@ -56,10 +56,10 @@ module Google # of doubles representing degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. Example of normalization code in Python: def - # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0, + # NormalizeLongitude(longitude): """Wraps decimal degrees longitude to [-180.0, # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <= # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """ - # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90. + # Wraps decimal degrees latitude and longitude to [-90.0, 90.0] and [-180.0, 180. # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360, # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude( # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 == @@ -99,6 +99,39 @@ module Google # @return [Hash] attr_accessor :properties + # Write-only registration parameters for beacons using Eddystone-EID format. Two + # ways of securely registering an Eddystone-EID beacon with the service are + # supported: 1. Perform an ECDH key exchange via this API, including a previous + # call to `GET /v1beta1/eidparams`. In this case the fields ` + # beacon_ecdh_public_key` and `service_ecdh_public_key` should be populated and ` + # beacon_identity_key` should not be populated. This method ensures that only + # the two parties in the ECDH key exchange can compute the identity key, which + # becomes a secret between them. 2. Derive or obtain the beacon's identity key + # via other secure means (perhaps an ECDH key exchange between the beacon and a + # mobile device or any other secure method), and then submit the resulting + # identity key to the service. In this case `beacon_identity_key` field should + # be populated, and neither of `beacon_ecdh_public_key` nor ` + # service_ecdh_public_key` fields should be. The security of this method depends + # on how securely the parties involved (in particular the bluetooth client) + # handle the identity key, and obviously on how securely the identity key was + # generated. See [the Eddystone specification](https://github.com/google/ + # eddystone/tree/master/eddystone-eid) at GitHub. + # Corresponds to the JSON property `ephemeralIdRegistration` + # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration] + attr_accessor :ephemeral_id_registration + + # Some beacons may require a user to provide an authorization key before + # changing any of its configuration (e.g. broadcast frames, transmit power). + # This field provides a place to store and control access to that key. This + # field is populated in responses to `GET /v1beta1/beacons/3!beaconId` from + # users with write access to the given beacon. That is to say: If the user is + # authorized to write the beacon's confidential data in the service, the service + # considers them authorized to configure the beacon. Note that this key grants + # nothing on the service, only on the beacon itself. + # Corresponds to the JSON property `provisioningKey` + # @return [String] + attr_accessor :provisioning_key + def initialize(**args) update!(**args) end @@ -114,6 +147,8 @@ module Google @expected_stability = args[:expected_stability] if args.key?(:expected_stability) @description = args[:description] if args.key?(:description) @properties = args[:properties] if args.key?(:properties) + @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration) + @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key) end end @@ -150,10 +185,10 @@ module Google # of doubles representing degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. Example of normalization code in Python: def - # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0, + # NormalizeLongitude(longitude): """Wraps decimal degrees longitude to [-180.0, # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <= # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """ - # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90. + # Wraps decimal degrees latitude and longitude to [-90.0, 90.0] and [-180.0, 180. # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360, # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude( # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 == @@ -209,6 +244,89 @@ module Google end end + # Write-only registration parameters for beacons using Eddystone-EID format. Two + # ways of securely registering an Eddystone-EID beacon with the service are + # supported: 1. Perform an ECDH key exchange via this API, including a previous + # call to `GET /v1beta1/eidparams`. In this case the fields ` + # beacon_ecdh_public_key` and `service_ecdh_public_key` should be populated and ` + # beacon_identity_key` should not be populated. This method ensures that only + # the two parties in the ECDH key exchange can compute the identity key, which + # becomes a secret between them. 2. Derive or obtain the beacon's identity key + # via other secure means (perhaps an ECDH key exchange between the beacon and a + # mobile device or any other secure method), and then submit the resulting + # identity key to the service. In this case `beacon_identity_key` field should + # be populated, and neither of `beacon_ecdh_public_key` nor ` + # service_ecdh_public_key` fields should be. The security of this method depends + # on how securely the parties involved (in particular the bluetooth client) + # handle the identity key, and obviously on how securely the identity key was + # generated. See [the Eddystone specification](https://github.com/google/ + # eddystone/tree/master/eddystone-eid) at GitHub. + class EphemeralIdRegistration + include Google::Apis::Core::Hashable + + # The beacon's public key used for the Elliptic curve Diffie-Hellman key + # exchange. When this field is populated, `service_ecdh_public_key` must also be + # populated, and `beacon_identity_key` must not be. + # Corresponds to the JSON property `beaconEcdhPublicKey` + # @return [String] + attr_accessor :beacon_ecdh_public_key + + # The service's public key used for the Elliptic curve Diffie-Hellman key + # exchange. When this field is populated, `beacon_ecdh_public_key` must also be + # populated, and `beacon_identity_key` must not be. + # Corresponds to the JSON property `serviceEcdhPublicKey` + # @return [String] + attr_accessor :service_ecdh_public_key + + # The private key of the beacon. If this field is populated, ` + # beacon_ecdh_public_key` and `service_ecdh_public_key` must not be populated. + # Corresponds to the JSON property `beaconIdentityKey` + # @return [String] + attr_accessor :beacon_identity_key + + # Indicates the nominal period between each rotation of the beacon's ephemeral + # ID. "Nominal" because the beacon should randomize the actual interval. See [ + # the spec at github](https://github.com/google/eddystone/tree/master/eddystone- + # eid) for details. This value corresponds to a power-of-two scaler on the + # beacon's clock: when the scaler value is K, the beacon will begin broadcasting + # a new ephemeral ID on average every 2^K seconds. + # Corresponds to the JSON property `rotationPeriodExponent` + # @return [Fixnum] + attr_accessor :rotation_period_exponent + + # The initial clock value of the beacon. The beacon's clock must have begun + # counting at this value immediately prior to transmitting this value to the + # resolving service. Significant delay in transmitting this value to the service + # risks registration or resolution failures. If a value is not provided, the + # default is zero. + # Corresponds to the JSON property `initialClockValue` + # @return [String] + attr_accessor :initial_clock_value + + # An initial ephemeral ID calculated using the clock value submitted as ` + # initial_clock_value`, and the secret key generated by the Diffie-Hellman key + # exchange using `service_ecdh_public_key` and `service_ecdh_public_key`. This + # initial EID value will be used by the service to confirm that the key exchange + # process was successful. + # Corresponds to the JSON property `initialEid` + # @return [String] + attr_accessor :initial_eid + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key) + @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key) + @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key) + @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent) + @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value) + @initial_eid = args[:initial_eid] if args.key?(:initial_eid) + end + end + # A generic empty message that you can re-use to avoid defining duplicated empty # messages in your APIs. A typical example is to use it as the request or the # response type of an API method. For instance: service Foo ` rpc Bar(google. @@ -382,6 +500,43 @@ module Google end end + # Information a client needs to provision and register beacons that broadcast + # Eddystone-EID format beacon IDs, using Elliptic curve Diffie-Hellman key + # exchange. See [the Eddystone specification](https://github.com/google/ + # eddystone/tree/master/eddystone-eid) at GitHub. + class EphemeralIdRegistrationParams + include Google::Apis::Core::Hashable + + # The beacon service's public key for use by a beacon to derive its Identity Key + # using Elliptic Curve Diffie-Hellman key exchange. + # Corresponds to the JSON property `serviceEcdhPublicKey` + # @return [String] + attr_accessor :service_ecdh_public_key + + # Indicates the minimum rotation period supported by the service. See + # EddystoneEidRegistration.rotation_period_exponent + # Corresponds to the JSON property `minRotationPeriodExponent` + # @return [Fixnum] + attr_accessor :min_rotation_period_exponent + + # Indicates the maximum rotation period supported by the service. See + # EddystoneEidRegistration.rotation_period_exponent + # Corresponds to the JSON property `maxRotationPeriodExponent` + # @return [Fixnum] + attr_accessor :max_rotation_period_exponent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key) + @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent) + @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent) + end + end + # Response that contains the requested diagnostics. class ListDiagnosticsResponse include Google::Apis::Core::Hashable @@ -412,7 +567,8 @@ module Google class Diagnostics include Google::Apis::Core::Hashable - # Resource name of the beacon. + # Resource name of the beacon. For Eddystone-EID beacons, this may be the beacon' + # s current EID, or the beacon's "stable" Eddystone-UID. # Corresponds to the JSON property `beaconName` # @return [String] attr_accessor :beacon_name @@ -422,8 +578,8 @@ module Google # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a # year and month where the day is not significant, e.g. credit card expiration # date. The year may be 0 to represent a month and day independent of year, e.g. - # anniversary date. Related types are [google.type.TimeOfDay][] and `google. - # protobuf.Timestamp`. + # anniversary date. Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. # Corresponds to the JSON property `estimatedLowBatteryDate` # @return [Google::Apis::ProximitybeaconV1beta1::Date] attr_accessor :estimated_low_battery_date @@ -450,24 +606,23 @@ module Google # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a # year and month where the day is not significant, e.g. credit card expiration # date. The year may be 0 to represent a month and day independent of year, e.g. - # anniversary date. Related types are [google.type.TimeOfDay][] and `google. - # protobuf.Timestamp`. + # anniversary date. Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. class Date include Google::Apis::Core::Hashable - # Year of date. Must be from 1 to 9,999, or 0 if specifying a date without a - # year. + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. # Corresponds to the JSON property `year` # @return [Fixnum] attr_accessor :year - # Month of year of date. Must be from 1 to 12. + # Month of year. Must be from 1 to 12. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if - # specifying a year/month where the day is not sigificant. + # specifying a year/month where the day is not significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day @@ -529,8 +684,7 @@ module Google # @return [String] attr_accessor :telemetry - # Time when the beacon was observed. Being sourced from a mobile device, this - # time may be suspect. + # Time when the beacon was observed. # Corresponds to the JSON property `timestampMs` # @return [String] attr_accessor :timestamp_ms @@ -582,12 +736,6 @@ module Google # @return [String] attr_accessor :beacon_name - # Free text used to identify or describe the beacon in a registered - # establishment. For example: "entrance", "room 101", etc. May be empty. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - # Attachments matching the type(s) requested. May be empty if no attachment # types were requested, or if none matched. # Corresponds to the JSON property `attachments` @@ -602,7 +750,6 @@ module Google def update!(**args) @advertised_id = args[:advertised_id] if args.key?(:advertised_id) @beacon_name = args[:beacon_name] if args.key?(:beacon_name) - @description = args[:description] if args.key?(:description) @attachments = args[:attachments] if args.key?(:attachments) end end diff --git a/generated/google/apis/proximitybeacon_v1beta1/representations.rb b/generated/google/apis/proximitybeacon_v1beta1/representations.rb index 0354d4faf..c26c59d25 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/representations.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/representations.rb @@ -46,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class EphemeralIdRegistration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class EphemeralIdRegistrationParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListDiagnosticsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -151,6 +163,9 @@ module Google property :expected_stability, as: 'expectedStability' property :description, as: 'description' hash :properties, as: 'properties' + property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation + + property :provisioning_key, :base64 => true, as: 'provisioningKey' end end @@ -177,6 +192,18 @@ module Google end end + class EphemeralIdRegistration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey' + property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey' + property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey' + property :rotation_period_exponent, as: 'rotationPeriodExponent' + property :initial_clock_value, as: 'initialClockValue' + property :initial_eid, :base64 => true, as: 'initialEid' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -233,6 +260,15 @@ module Google end end + class EphemeralIdRegistrationParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey' + property :min_rotation_period_exponent, as: 'minRotationPeriodExponent' + property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent' + end + end + class ListDiagnosticsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -294,7 +330,6 @@ module Google property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation property :beacon_name, as: 'beaconName' - property :description, as: 'description' collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation end diff --git a/generated/google/apis/proximitybeacon_v1beta1/service.rb b/generated/google/apis/proximitybeacon_v1beta1/service.rb index e9c1edf86..2e5926fab 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/service.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/service.rb @@ -22,7 +22,7 @@ module Google module ProximitybeaconV1beta1 # Google Proximity Beacon API # - # This API provides services to register, manage, index, and search beacons. + # Registers, manages, indexes, and searches beacons. # # @example # require 'google/apis/proximitybeacon_v1beta1' @@ -47,8 +47,14 @@ module Google end # Registers a previously unregistered beacon given its `advertisedId`. These IDs - # are unique within the system. An ID can be registered only once. + # are unique within the system. An ID can be registered only once. Authenticate + # using an [OAuth access token](https://developers.google.com/identity/protocols/ + # OAuth2) from a signed-in user with **Is owner** or **Can edit** permissions in + # the Google Developers Console project. # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object + # @param [String] project_id + # The project id of the project the beacon will be registered to. If the project + # id is not specified then the project making the request is used. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -66,12 +72,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def register_beacon(beacon_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def register_beacon(beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/beacons:register', options) command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation command.request_object = beacon_object command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -79,9 +86,21 @@ module Google # Decommissions the specified beacon in the service. This beacon will no longer # be returned from `beaconinfo.getforobserved`. This operation is permanent -- - # you will not be able to re-register a beacon with this ID again. + # you will not be able to re-register a beacon with this ID again. Authenticate + # using an [OAuth access token](https://developers.google.com/identity/protocols/ + # OAuth2) from a signed-in user with **Is owner** or **Can edit** permissions in + # the Google Developers Console project. # @param [String] beacon_name - # Beacon that should be decommissioned. Required. + # Beacon that should be decommissioned. A beacon name has the format "beacons/N! + # beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is + # a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4` + # for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID + # beacons, you may use either the current EID of the beacon's "stable" UID. + # Required. + # @param [String] project_id + # The project id of the beacon to decommission. If the project id is not + # specified then the project making the request is used. The project id must + # match the project that owns the beacon. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -99,19 +118,37 @@ 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 decommission_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block) + def decommission_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+beaconName}:decommission', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Returns detailed information about the specified beacon. + # Returns detailed information about the specified beacon. Authenticate using an + # [OAuth access token](https://developers.google.com/identity/protocols/OAuth2) + # from a signed-in user with **viewer**, **Is owner** or **Can edit** + # permissions in the Google Developers Console project. Requests may supply an + # Eddystone-EID beacon name in the form: `beacons/4!beaconId` where the ` + # beaconId` is the base16 ephemeral ID broadcast by the beacon. The returned ` + # Beacon` object will contain the beacon's stable Eddystone-UID. Clients not + # authorized to resolve the beacon's ephemeral Eddystone-EID broadcast will + # receive an error. # @param [String] beacon_name - # Beacon that is requested. + # Resource name of this beacon. A beacon name has the format "beacons/N!beaconId" + # where the beaconId is the base16 ID broadcast by the beacon and N is a code + # for the beacon's type. Possible values are `3` for Eddystone-UID, `4` for + # Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID + # beacons, you may use either the current EID or the beacon's "stable" UID. + # Required. + # @param [String] project_id + # The project id of the beacon to request. If the project id is not specified + # then the project making the request is used. The project id must match the + # project that owns the beacon. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -129,11 +166,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block) + def get_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+beaconName}', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -141,6 +179,9 @@ module Google # Searches the beacon registry for beacons that match the given search criteria. # Only those beacons that the client has permission to list will be returned. + # Authenticate using an [OAuth access token](https://developers.google.com/ + # identity/protocols/OAuth2) from a signed-in user with **viewer**, **Is owner** + # or **Can edit** permissions in the Google Developers Console project. # @param [String] q # Filter query string that supports the following field filters: * `description:" # "` For example: `description:"Room 3"` Returns beacons whose description @@ -167,8 +208,8 @@ module Google # Returns beacons whose registered location is within the given circle. When any # of these fields are given, all are required. Latitude and longitude must be # decimal degrees between -90.0 and 90.0 and between -180.0 and 180.0 - # respectively. Radius must be an integer number of meters less than 1,000,000 ( - # 1000 km). * `property:"="` For example: `property:"battery-type=CR2032"` + # respectively. Radius must be an integer number of meters between 10 and 1,000, + # 000 (1000 km). * `property:"="` For example: `property:"battery-type=CR2032"` # Returns beacons which have a property of the given name and value. Supports # multiple filters which will be combined with OR logic. The entire name=value # string must be double-quoted as one string. * `attachment_type:""` For example: @@ -187,6 +228,9 @@ module Google # @param [Fixnum] page_size # The maximum number of records to return for this request, up to a server- # defined upper limit. + # @param [String] project_id + # The project id to list beacons under. If not present then the project + # credential that made the request is used as the project. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -204,13 +248,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_beacons(q: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_beacons(q: nil, page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/beacons', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse command.query['q'] = q unless q.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -220,8 +265,11 @@ module Google # not populate in the submitted beacon will be permanently erased**, so you # should follow the "read, modify, write" pattern to avoid inadvertently # destroying data. Changes to the beacon status via this method will be silently - # ignored. To update beacon status, use the separate methods on this API for (de) - # activation and decommissioning. + # ignored. To update beacon status, use the separate methods on this API for + # activation, deactivation, and decommissioning. Authenticate using an [OAuth + # access token](https://developers.google.com/identity/protocols/OAuth2) from a + # signed-in user with **Is owner** or **Can edit** permissions in the Google + # Developers Console project. # @param [String] beacon_name # Resource name of this beacon. A beacon name has the format "beacons/N!beaconId" # where the beaconId is the base16 ID broadcast by the beacon and N is a code @@ -229,6 +277,10 @@ module Google # or `5` for AltBeacon. This field must be left empty when registering. After # reading a beacon, clients can use the name for future operations. # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object + # @param [String] project_id + # The project id of the beacon to update. If the project id is not specified + # then the project making the request is used. The project id must match the + # project that owns the beacon. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -246,24 +298,37 @@ 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_beacon(beacon_name, beacon_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def update_beacon(beacon_name, beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1beta1/{+beaconName}', options) command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation command.request_object = beacon_object command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # (Re)activates a beacon. A beacon that is active will return information and + # Activates a beacon. A beacon that is active will return information and # attachment data when queried via `beaconinfo.getforobserved`. Calling this # method on an already active beacon will do nothing (but will return a - # successful response code). + # successful response code). Authenticate using an [OAuth access token](https:// + # developers.google.com/identity/protocols/OAuth2) from a signed-in user with ** + # Is owner** or **Can edit** permissions in the Google Developers Console + # project. # @param [String] beacon_name - # The beacon to activate. Required. + # Beacon that should be activated. A beacon name has the format "beacons/N! + # beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is + # a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4` + # for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID + # beacons, you may use either the current EID or the beacon's "stable" UID. + # Required. + # @param [String] project_id + # The project id of the beacon to activate. If the project id is not specified + # then the project making the request is used. The project id must match the + # project that owns the beacon. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -281,11 +346,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def activate_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block) + def activate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -294,9 +360,21 @@ module Google # Deactivates a beacon. Once deactivated, the API will not return information # nor attachment data for the beacon when queried via `beaconinfo.getforobserved` # . Calling this method on an already inactive beacon will do nothing (but will - # return a successful response code). + # return a successful response code). Authenticate using an [OAuth access token]( + # https://developers.google.com/identity/protocols/OAuth2) from a signed-in user + # with **Is owner** or **Can edit** permissions in the Google Developers Console + # project. # @param [String] beacon_name - # The beacon name of this beacon. + # Beacon that should be deactivated. A beacon name has the format "beacons/N! + # beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is + # a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4` + # for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID + # beacons, you may use either the current EID or the beacon's "stable" UID. + # Required. + # @param [String] project_id + # The project id of the beacon to deactivate. If the project id is not specified + # then the project making the request is used. The project id must match the + # project that owns the beacon. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -314,11 +392,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def deactivate_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block) + def deactivate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -331,10 +410,21 @@ module Google # parts, the namespace and the type. The namespace must be one of the values # returned by the `namespaces` endpoint, while the type can be a string of any # characters except for the forward slash (`/`) up to 100 characters in length. - # Attachment data can be up to 1024 bytes long. + # Attachment data can be up to 1024 bytes long. Authenticate using an [OAuth + # access token](https://developers.google.com/identity/protocols/OAuth2) from a + # signed-in user with **Is owner** or **Can edit** permissions in the Google + # Developers Console project. # @param [String] beacon_name - # The beacon on which the attachment should be created. Required. + # Beacon on which the attachment should be created. A beacon name has the format + # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + # beacon and N is a code for the beacon's type. Possible values are `3` for + # Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. + # For Eddystone-EID beacons, you may use either the current EID or the beacon's " + # stable" UID. Required. # @param [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] beacon_attachment_object + # @param [String] project_id + # The project id of the project the attachment will belong to. If the project id + # is not specified then the project making the request is used. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -352,13 +442,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options) command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation command.request_object = beacon_attachment_object command.response_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment command.params['beaconName'] = beacon_name unless beacon_name.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -368,12 +459,25 @@ module Google # namespaced-type pattern. To control which namespaced types are returned, you # add the `namespacedType` query parameter to the request. You must either use `* # /*`, to return all attachments, or the namespace must be one of the ones - # returned from the `namespaces` endpoint. + # returned from the `namespaces` endpoint. Authenticate using an [OAuth access + # token](https://developers.google.com/identity/protocols/OAuth2) from a signed- + # in user with **viewer**, **Is owner** or **Can edit** permissions in the + # Google Developers Console project. # @param [String] beacon_name - # The beacon whose attachments are to be fetched. Required. + # Beacon whose attachments should be fetched. A beacon name has the format " + # beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + # beacon and N is a code for the beacon's type. Possible values are `3` for + # Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. + # For Eddystone-EID beacons, you may use either the current EID or the beacon's " + # stable" UID. Required. # @param [String] namespaced_type # Specifies the namespace and type of attachment to include in response in # namespace/type format. Accepts `*/*` to specify "all types in all namespaces". + # @param [String] project_id + # The project id to list beacon attachments under. This field can be used when "* + # " is specified to mean all attachment namespaces. Projects may have multiple + # attachments with multiple namespaces. If "*" is specified and the projectId + # string is empty, then the project making the request is used. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -391,12 +495,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_beacon_attachments(beacon_name, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_beacon_attachments(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+beaconName}/attachments', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse command.params['beaconName'] = beacon_name unless beacon_name.nil? command.query['namespacedType'] = namespaced_type unless namespaced_type.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -406,10 +511,17 @@ module Google # unique attachment name (`attachmentName`) which is returned when you fetch the # attachment data via this API. You specify this with the delete request to # control which attachment is removed. This operation cannot be undone. + # Authenticate using an [OAuth access token](https://developers.google.com/ + # identity/protocols/OAuth2) from a signed-in user with **Is owner** or **Can + # edit** permissions in the Google Developers Console project. # @param [String] attachment_name # The attachment name (`attachmentName`) of the attachment to remove. For - # example: `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738` - # Required. + # example: `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For + # Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the + # beacon's current EID, or its "stable" Eddystone-UID. Required. + # @param [String] project_id + # The project id of the attachment to delete. If not provided, the project that + # is making the request is used. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -427,11 +539,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_beacon_attachment(attachment_name, fields: nil, quota_user: nil, options: nil, &block) + def delete_beacon_attachment(attachment_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+attachmentName}', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty command.params['attachmentName'] = attachment_name unless attachment_name.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -441,12 +554,25 @@ module Google # and cannot be undone. You can optionally specify `namespacedType` to choose # which attachments should be deleted. If you do not specify `namespacedType`, # all your attachments on the given beacon will be deleted. You also may - # explicitly specify `*/*` to delete all. + # explicitly specify `*/*` to delete all. Authenticate using an [OAuth access + # token](https://developers.google.com/identity/protocols/OAuth2) from a signed- + # in user with **Is owner** or **Can edit** permissions in the Google Developers + # Console project. # @param [String] beacon_name - # The beacon whose attachments are to be deleted. Required. + # The beacon whose attachments should be deleted. A beacon name has the format " + # beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + # beacon and N is a code for the beacon's type. Possible values are `3` for + # Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. + # For Eddystone-EID beacons, you may use either the current EID or the beacon's " + # stable" UID. Required. # @param [String] namespaced_type # Specifies the namespace and type of attachments to delete in `namespace/type` # format. Accepts `*/*` to specify "all types in all namespaces". Optional. + # @param [String] project_id + # The project id to delete beacon attachments under. This field can be used when + # "*" is specified to mean all attachment namespaces. Projects may have multiple + # attachments with multiple namespaces. If "*" is specified and the projectId + # string is empty, then the project making the request is used. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -464,12 +590,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block) + def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse command.params['beaconName'] = beacon_name unless beacon_name.nil? command.query['namespacedType'] = namespaced_type unless namespaced_type.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -477,7 +604,10 @@ module Google # List the diagnostics for a single beacon. You can also list diagnostics for # all the beacons owned by your Google Developers Console project by using the - # beacon name `beacons/-`. + # beacon name `beacons/-`. Authenticate using an [OAuth access token](https:// + # developers.google.com/identity/protocols/OAuth2) from a signed-in user with ** + # viewer**, **Is owner** or **Can edit** permissions in the Google Developers + # Console project. # @param [String] beacon_name # Beacon that the diagnostics are for. # @param [Fixnum] page_size @@ -489,6 +619,10 @@ module Google # @param [String] alert_filter # Requests only beacons that have the given alert. For example, to find beacons # that have low batteries use `alert_filter=LOW_BATTERY`. + # @param [String] project_id + # Requests only diagnostic records for the given project id. If not set, then + # the project making the request will be used for looking up diagnostic records. + # Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -506,7 +640,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_beacon_diagnostics(beacon_name, page_size: nil, page_token: nil, alert_filter: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_beacon_diagnostics(beacon_name, page_size: nil, page_token: nil, alert_filter: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse @@ -514,6 +648,7 @@ module Google command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['alertFilter'] = alert_filter unless alert_filter.nil? + command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -521,7 +656,12 @@ module Google # Lists all attachment namespaces owned by your Google Developers Console # project. Attachment data associated with a beacon must include a namespaced - # type, and the namespace must be owned by your project. + # type, and the namespace must be owned by your project. Authenticate using an [ + # OAuth access token](https://developers.google.com/identity/protocols/OAuth2) + # from a signed-in user with **viewer**, **Is owner** or **Can edit** + # permissions in the Google Developers Console project. + # @param [String] project_id + # The project id to list namespaces under. Optional. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -539,17 +679,92 @@ 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_namespaces(fields: nil, quota_user: nil, options: nil, &block) + def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/namespaces', options) command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the information about the specified namespace. Only the namespace + # visibility can be updated. + # @param [String] namespace_name + # Resource name of this namespace. Namespaces names have the format: namespaces/ + # namespace. + # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object + # @param [String] project_id + # The project id of the namespace to update. If the project id is not specified + # then the project making the request is used. The project id must match the + # project that owns the beacon. Optional. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::Namespace] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options) + command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation + command.request_object = namespace_object + command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace + command.params['namespaceName'] = namespace_name unless namespace_name.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the Proximity Beacon API's current public key and associated parameters + # used to initiate the Diffie-Hellman key exchange required to register a beacon + # that broadcasts the Eddystone-EID format. This key changes periodically; + # clients may cache it and re-use the same public key to provision and register + # multiple beacons. However, clients should be prepared to refresh this key when + # they encounter an error registering an Eddystone-EID beacon. + # @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::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_eidparams(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/eidparams', options) + command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation + command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Given one or more beacon observations, returns any beacon information and - # attachments accessible to your application. + # attachments accessible to your application. Authorize by using the [API key]( + # https://developers.google.com/beacons/proximity/how-tos/authorizing#APIKey) + # for the application. # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/replicapool_v1beta2.rb b/generated/google/apis/replicapool_v1beta2.rb index c03fc407d..085ed3360 100644 --- a/generated/google/apis/replicapool_v1beta2.rb +++ b/generated/google/apis/replicapool_v1beta2.rb @@ -20,13 +20,13 @@ module Google module Apis # Google Compute Engine Instance Group Manager API # - # The Google Compute Engine Instance Group Manager API provides groups of - # homogenous Compute Engine Instances. + # [Deprecated. Please use Instance Group Manager in Compute API] Provides groups + # of homogenous Compute Engine instances. # # @see https://developers.google.com/compute/docs/instance-groups/manager/v1beta2 module ReplicapoolV1beta2 VERSION = 'V1beta2' - REVISION = '20150708' + REVISION = '20160509' # 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/replicapool_v1beta2/service.rb b/generated/google/apis/replicapool_v1beta2/service.rb index 9457ffb0c..203889e81 100644 --- a/generated/google/apis/replicapool_v1beta2/service.rb +++ b/generated/google/apis/replicapool_v1beta2/service.rb @@ -22,8 +22,8 @@ module Google module ReplicapoolV1beta2 # Google Compute Engine Instance Group Manager API # - # The Google Compute Engine Instance Group Manager API provides groups of - # homogenous Compute Engine Instances. + # [Deprecated. Please use Instance Group Manager in Compute API] Provides groups + # of homogenous Compute Engine instances. # # @example # require 'google/apis/replicapool_v1beta2' diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index 7670b6b2b..baa71b131 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Apps Script Execution API # - # An API for executing Google Apps Script projects. + # Executes Google Apps Script projects. # - # @see https://developers.google.com/apps-script/execution/rest/v1/run + # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run module ScriptV1 VERSION = 'V1' - REVISION = '20150922' + REVISION = '20160426' # View and manage your mail AUTH_SCOPE = 'https://mail.google.com/' @@ -54,6 +54,9 @@ module Google # View and manage your Google Groups AUTH_GROUPS = 'https://www.googleapis.com/auth/groups' + # View and manage your spreadsheets in Google Drive + AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets' + # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' end diff --git a/generated/google/apis/script_v1/service.rb b/generated/google/apis/script_v1/service.rb index d705f9bf3..58bef3e94 100644 --- a/generated/google/apis/script_v1/service.rb +++ b/generated/google/apis/script_v1/service.rb @@ -22,7 +22,7 @@ module Google module ScriptV1 # Google Apps Script Execution API # - # An API for executing Google Apps Script projects. + # Executes Google Apps Script projects. # # @example # require 'google/apis/script_v1' @@ -30,7 +30,7 @@ module Google # Script = Google::Apis::ScriptV1 # Alias the module # service = Script::ScriptService.new # - # @see https://developers.google.com/apps-script/execution/rest/v1/run + # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run class ScriptService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb new file mode 100644 index 000000000..9f58eb5f4 --- /dev/null +++ b/generated/google/apis/sheets_v4.rb @@ -0,0 +1,43 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/sheets_v4/service.rb' +require 'google/apis/sheets_v4/classes.rb' +require 'google/apis/sheets_v4/representations.rb' + +module Google + module Apis + # Google Sheets API + # + # An API for reading and modifying Google Sheets. + # + # @see https://developers.google.com/sheets/ + module SheetsV4 + VERSION = 'V4' + REVISION = '20160511' + + # View the files in your Google Drive + AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly' + + # View your Google Spreadsheets + AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly' + + # View and manage the files in your Google Drive + AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' + + # View and manage your spreadsheets in Google Drive + AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets' + end + end +end diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb new file mode 100644 index 000000000..ec9ee1768 --- /dev/null +++ b/generated/google/apis/sheets_v4/classes.rb @@ -0,0 +1,5426 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SheetsV4 + + # The result of adding a named range. + class AddNamedRangeResponse + include Google::Apis::Core::Hashable + + # A named range. + # Corresponds to the JSON property `namedRange` + # @return [Google::Apis::SheetsV4::NamedRange] + attr_accessor :named_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @named_range = args[:named_range] if args.key?(:named_range) + end + end + + # Updates an existing protected range with the specified + # protectedRangeId. + class UpdateProtectedRangeRequest + include Google::Apis::Core::Hashable + + # A protected range. + # Corresponds to the JSON property `protectedRange` + # @return [Google::Apis::SheetsV4::ProtectedRange] + attr_accessor :protected_range + + # The fields that should be updated. At least one field must be specified. + # The root `protectedRange` is implied and should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @protected_range = args[:protected_range] if args.key?(:protected_range) + @fields = args[:fields] if args.key?(:fields) + end + end + + # The amount of padding around the cell, in pixels. + # When updating padding, every field must be specified. + class Padding + include Google::Apis::Core::Hashable + + # The right padding of the cell. + # Corresponds to the JSON property `right` + # @return [Fixnum] + attr_accessor :right + + # The left padding of the cell. + # Corresponds to the JSON property `left` + # @return [Fixnum] + attr_accessor :left + + # The top padding of the cell. + # Corresponds to the JSON property `top` + # @return [Fixnum] + attr_accessor :top + + # The bottom padding of the cell. + # Corresponds to the JSON property `bottom` + # @return [Fixnum] + attr_accessor :bottom + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @right = args[:right] if args.key?(:right) + @left = args[:left] if args.key?(:left) + @top = args[:top] if args.key?(:top) + @bottom = args[:bottom] if args.key?(:bottom) + end + end + + # Merges all cells in the range. + class MergeCellsRequest + include Google::Apis::Core::Hashable + + # How the cells should be merged. + # Corresponds to the JSON property `mergeType` + # @return [String] + attr_accessor :merge_type + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @merge_type = args[:merge_type] if args.key?(:merge_type) + @range = args[:range] if args.key?(:range) + end + end + + # The result of adding a sheet. + class AddSheetResponse + include Google::Apis::Core::Hashable + + # Properties of a sheet. + # Corresponds to the JSON property `properties` + # @return [Google::Apis::SheetsV4::SheetProperties] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @properties = args[:properties] if args.key?(:properties) + end + end + + # Metadata about a value in a pivot grouping. + class PivotGroupValueMetadata + include Google::Apis::Core::Hashable + + # The kinds of value that a cell in a spreadsheet can have. + # Corresponds to the JSON property `value` + # @return [Google::Apis::SheetsV4::ExtendedValue] + attr_accessor :value + + # True if the data corresponding to the value is collapsed. + # Corresponds to the JSON property `collapsed` + # @return [Boolean] + attr_accessor :collapsed + alias_method :collapsed?, :collapsed + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + @collapsed = args[:collapsed] if args.key?(:collapsed) + end + end + + # The result of updating an embedded object's position. + class UpdateEmbeddedObjectPositionResponse + include Google::Apis::Core::Hashable + + # The position of an embedded object such as a chart. + # Corresponds to the JSON property `position` + # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition] + attr_accessor :position + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @position = args[:position] if args.key?(:position) + end + end + + # Updates a conditional format rule at the given index, + # or moves a conditional format rule to another index. + class UpdateConditionalFormatRuleRequest + include Google::Apis::Core::Hashable + + # The sheet of the rule to move. Required if newIndex is set, + # unused otherwise. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # A rule describing a conditional format. + # Corresponds to the JSON property `rule` + # @return [Google::Apis::SheetsV4::ConditionalFormatRule] + attr_accessor :rule + + # The zero-based index of the rule that should be replaced or moved. + # Corresponds to the JSON property `index` + # @return [Fixnum] + attr_accessor :index + + # The zero-based new index the rule should end up at. + # Corresponds to the JSON property `newIndex` + # @return [Fixnum] + attr_accessor :new_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @rule = args[:rule] if args.key?(:rule) + @index = args[:index] if args.key?(:index) + @new_index = args[:new_index] if args.key?(:new_index) + end + end + + # The format of a run of text in a cell. + # Absent values indicate that the field isn't specified. + class TextFormat + include Google::Apis::Core::Hashable + + # True if the text is bold. + # Corresponds to the JSON property `bold` + # @return [Boolean] + attr_accessor :bold + alias_method :bold?, :bold + + # True if the text is italicized. + # Corresponds to the JSON property `italic` + # @return [Boolean] + attr_accessor :italic + alias_method :italic?, :italic + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `foregroundColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :foreground_color + + # The font family. + # Corresponds to the JSON property `fontFamily` + # @return [String] + attr_accessor :font_family + + # True if the text has a strikethrough. + # Corresponds to the JSON property `strikethrough` + # @return [Boolean] + attr_accessor :strikethrough + alias_method :strikethrough?, :strikethrough + + # The size of the font. + # Corresponds to the JSON property `fontSize` + # @return [Fixnum] + attr_accessor :font_size + + # True if the text is underlined. + # Corresponds to the JSON property `underline` + # @return [Boolean] + attr_accessor :underline + alias_method :underline?, :underline + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bold = args[:bold] if args.key?(:bold) + @italic = args[:italic] if args.key?(:italic) + @foreground_color = args[:foreground_color] if args.key?(:foreground_color) + @font_family = args[:font_family] if args.key?(:font_family) + @strikethrough = args[:strikethrough] if args.key?(:strikethrough) + @font_size = args[:font_size] if args.key?(:font_size) + @underline = args[:underline] if args.key?(:underline) + end + end + + # Updates a chart's specifications. + # (This does not move or resize a chart. To move or resize a chart, use + # UpdateEmbeddedObjectPositionRequest.) + class UpdateChartSpecRequest + include Google::Apis::Core::Hashable + + # The ID of the chart to update. + # Corresponds to the JSON property `chartId` + # @return [Fixnum] + attr_accessor :chart_id + + # The specifications of a chart. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::SheetsV4::ChartSpec] + attr_accessor :spec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @chart_id = args[:chart_id] if args.key?(:chart_id) + @spec = args[:spec] if args.key?(:spec) + end + end + + # A coordinate in a sheet. + # All indexes are zero-based. + class GridCoordinate + include Google::Apis::Core::Hashable + + # The sheet this coordinate is on. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # The row index of the coordinate. + # Corresponds to the JSON property `rowIndex` + # @return [Fixnum] + attr_accessor :row_index + + # The column index of the coordinate. + # Corresponds to the JSON property `columnIndex` + # @return [Fixnum] + attr_accessor :column_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @row_index = args[:row_index] if args.key?(:row_index) + @column_index = args[:column_index] if args.key?(:column_index) + end + end + + # Deletes a particular filter view. + class DeleteFilterViewRequest + include Google::Apis::Core::Hashable + + # The ID of the filter to delete. + # Corresponds to the JSON property `filterId` + # @return [Fixnum] + attr_accessor :filter_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter_id = args[:filter_id] if args.key?(:filter_id) + end + end + + # The response when updating a range of values in a spreadsheet. + class BatchUpdateValuesResponse + include Google::Apis::Core::Hashable + + # The total number of sheets where at least one cell in the sheet was + # updated. + # Corresponds to the JSON property `totalUpdatedSheets` + # @return [Fixnum] + attr_accessor :total_updated_sheets + + # The total number of columns where at least one cell in the column was + # updated. + # Corresponds to the JSON property `totalUpdatedColumns` + # @return [Fixnum] + attr_accessor :total_updated_columns + + # One UpdateValuesResponse per requested range, in the same order as + # the requests appeared. + # Corresponds to the JSON property `responses` + # @return [Array] + attr_accessor :responses + + # The total number of cells updated. + # Corresponds to the JSON property `totalUpdatedCells` + # @return [Fixnum] + attr_accessor :total_updated_cells + + # The spreadsheet the updates were applied to. + # Corresponds to the JSON property `spreadsheetId` + # @return [String] + attr_accessor :spreadsheet_id + + # The total number of rows where at least one cell in the row was updated. + # Corresponds to the JSON property `totalUpdatedRows` + # @return [Fixnum] + attr_accessor :total_updated_rows + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @total_updated_sheets = args[:total_updated_sheets] if args.key?(:total_updated_sheets) + @total_updated_columns = args[:total_updated_columns] if args.key?(:total_updated_columns) + @responses = args[:responses] if args.key?(:responses) + @total_updated_cells = args[:total_updated_cells] if args.key?(:total_updated_cells) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + @total_updated_rows = args[:total_updated_rows] if args.key?(:total_updated_rows) + end + end + + # Updates properties of the named range with the specified + # namedRangeId. + # It is an error to specify read only fields in the field mask. + class UpdateNamedRangeRequest + include Google::Apis::Core::Hashable + + # The fields that should be updated. At least one field must be specified. + # The root `namedRange` is implied and should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + # A named range. + # Corresponds to the JSON property `namedRange` + # @return [Google::Apis::SheetsV4::NamedRange] + attr_accessor :named_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fields = args[:fields] if args.key?(:fields) + @named_range = args[:named_range] if args.key?(:named_range) + end + end + + # The response when updating a range of values in a spreadsheet. + class UpdateValuesResponse + include Google::Apis::Core::Hashable + + # The range (in A1 notation) that updates were applied to. + # Corresponds to the JSON property `updatedRange` + # @return [String] + attr_accessor :updated_range + + # The number of columns where at least one cell in the column was updated. + # Corresponds to the JSON property `updatedColumns` + # @return [Fixnum] + attr_accessor :updated_columns + + # The spreadsheet the updates were applied to. + # Corresponds to the JSON property `spreadsheetId` + # @return [String] + attr_accessor :spreadsheet_id + + # The number of rows where at least one cell in the row was updated. + # Corresponds to the JSON property `updatedRows` + # @return [Fixnum] + attr_accessor :updated_rows + + # The number of cells updated. + # Corresponds to the JSON property `updatedCells` + # @return [Fixnum] + attr_accessor :updated_cells + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @updated_range = args[:updated_range] if args.key?(:updated_range) + @updated_columns = args[:updated_columns] if args.key?(:updated_columns) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + @updated_rows = args[:updated_rows] if args.key?(:updated_rows) + @updated_cells = args[:updated_cells] if args.key?(:updated_cells) + end + end + + # Properties of a spreadsheet. + class SpreadsheetProperties + include Google::Apis::Core::Hashable + + # The time zone of the spreadsheet, in CLDR format such as + # `America/New_York`. If the time zone isn't recognized, this may + # be a custom time zone such as `GMT-07:00`. + # Corresponds to the JSON property `timeZone` + # @return [String] + attr_accessor :time_zone + + # The amount of time to wait before volatile functions are recalculated. + # Corresponds to the JSON property `autoRecalc` + # @return [String] + attr_accessor :auto_recalc + + # The locale of the spreadsheet in one of the following formats: + # * an ISO 639-1 language code such as `en` + # * an ISO 639-2 language code such as `fil`, if no 639-1 code exists + # * a combination of the ISO language code and country code, such as `en_US` + # Note: when updating this field, not all locales/languages are supported. + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The title of the spreadsheet. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The format of a cell. + # Corresponds to the JSON property `defaultFormat` + # @return [Google::Apis::SheetsV4::CellFormat] + attr_accessor :default_format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @auto_recalc = args[:auto_recalc] if args.key?(:auto_recalc) + @locale = args[:locale] if args.key?(:locale) + @title = args[:title] if args.key?(:title) + @default_format = args[:default_format] if args.key?(:default_format) + end + end + + # Data about a specific cell. + class CellData + include Google::Apis::Core::Hashable + + # A hyperlink this cell points to, if any. + # This field is read-only. (To set it, use a `=HYPERLINK` formula.) + # Corresponds to the JSON property `hyperlink` + # @return [String] + attr_accessor :hyperlink + + # The format of a cell. + # Corresponds to the JSON property `effectiveFormat` + # @return [Google::Apis::SheetsV4::CellFormat] + attr_accessor :effective_format + + # Any note on the cell. + # Corresponds to the JSON property `note` + # @return [String] + attr_accessor :note + + # The formatted value of the cell. + # This is the value as it's shown to the user. + # This field is read-only. + # Corresponds to the JSON property `formattedValue` + # @return [String] + attr_accessor :formatted_value + + # The kinds of value that a cell in a spreadsheet can have. + # Corresponds to the JSON property `userEnteredValue` + # @return [Google::Apis::SheetsV4::ExtendedValue] + attr_accessor :user_entered_value + + # A data validation rule. + # Corresponds to the JSON property `dataValidation` + # @return [Google::Apis::SheetsV4::DataValidationRule] + attr_accessor :data_validation + + # The format of a cell. + # Corresponds to the JSON property `userEnteredFormat` + # @return [Google::Apis::SheetsV4::CellFormat] + attr_accessor :user_entered_format + + # A pivot table. + # Corresponds to the JSON property `pivotTable` + # @return [Google::Apis::SheetsV4::PivotTable] + attr_accessor :pivot_table + + # Runs of rich text applied to subsections of the cell. + # Runs start at specific indexes in the text and continue until the next + # run. Properties of a run will continue unless explicitly changed + # in a subsequent run (and properties of the first run will continue + # the properties of the cell unless explicitly changed). + # When writing, the new runs will overwrite any prior runs. + # Corresponds to the JSON property `textFormatRuns` + # @return [Array] + attr_accessor :text_format_runs + + # The kinds of value that a cell in a spreadsheet can have. + # Corresponds to the JSON property `effectiveValue` + # @return [Google::Apis::SheetsV4::ExtendedValue] + attr_accessor :effective_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hyperlink = args[:hyperlink] if args.key?(:hyperlink) + @effective_format = args[:effective_format] if args.key?(:effective_format) + @note = args[:note] if args.key?(:note) + @formatted_value = args[:formatted_value] if args.key?(:formatted_value) + @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value) + @data_validation = args[:data_validation] if args.key?(:data_validation) + @user_entered_format = args[:user_entered_format] if args.key?(:user_entered_format) + @pivot_table = args[:pivot_table] if args.key?(:pivot_table) + @text_format_runs = args[:text_format_runs] if args.key?(:text_format_runs) + @effective_value = args[:effective_value] if args.key?(:effective_value) + end + end + + # Unmerges cells in the given range. + class UnmergeCellsRequest + include Google::Apis::Core::Hashable + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @range = args[:range] if args.key?(:range) + end + end + + # Splits a column of text into multiple columns, + # based on a delimiter in each cell. + class TextToColumnsRequest + include Google::Apis::Core::Hashable + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `source` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :source + + # The delimiter to use. Used only if delimiterType is + # CUSTOM. + # Corresponds to the JSON property `delimiter` + # @return [String] + attr_accessor :delimiter + + # The delimiter type to use. + # Corresponds to the JSON property `delimiterType` + # @return [String] + attr_accessor :delimiter_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source = args[:source] if args.key?(:source) + @delimiter = args[:delimiter] if args.key?(:delimiter) + @delimiter_type = args[:delimiter_type] if args.key?(:delimiter_type) + end + end + + # The result of adding a new protected range. + class AddProtectedRangeResponse + include Google::Apis::Core::Hashable + + # A protected range. + # Corresponds to the JSON property `protectedRange` + # @return [Google::Apis::SheetsV4::ProtectedRange] + attr_accessor :protected_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @protected_range = args[:protected_range] if args.key?(:protected_range) + end + end + + # A condition that can evaluate to true or false. + # BooleanConditions are used by conditional formatting, + # data validation, and the criteria in filters. + class BooleanCondition + include Google::Apis::Core::Hashable + + # The values of the condition. The number of supported values depends + # on the condition type. Some support zero values, + # others one or two values, + # and ConditionType.ONE_OF_LIST supports an arbitrary number of values. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + # The type of condition. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @values = args[:values] if args.key?(:values) + @type = args[:type] if args.key?(:type) + end + end + + # Deletes the protected range with the given id. + class DeleteProtectedRangeRequest + include Google::Apis::Core::Hashable + + # The ID of the protected range to delete. + # Corresponds to the JSON property `protectedRangeId` + # @return [Fixnum] + attr_accessor :protected_range_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @protected_range_id = args[:protected_range_id] if args.key?(:protected_range_id) + end + end + + # The domain of a chart. + # For example, if charting stock prices over time, this would be the date. + class BasicChartDomain + include Google::Apis::Core::Hashable + + # The data included in a domain or series. + # Corresponds to the JSON property `domain` + # @return [Google::Apis::SheetsV4::ChartData] + attr_accessor :domain + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain = args[:domain] if args.key?(:domain) + end + end + + # A range along a single dimension on a sheet. + # All indexes are zero-based. + # Indexes are half open: the start index is inclusive + # and the end index is exclusive. + # Missing indexes indicate the range is unbounded on that side. + class DimensionRange + include Google::Apis::Core::Hashable + + # The sheet this span is on. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # The end (exclusive) of the span, or not set if unbounded. + # Corresponds to the JSON property `endIndex` + # @return [Fixnum] + attr_accessor :end_index + + # The start (inclusive) of the span, or not set if unbounded. + # Corresponds to the JSON property `startIndex` + # @return [Fixnum] + attr_accessor :start_index + + # The dimension of the span. + # Corresponds to the JSON property `dimension` + # @return [String] + attr_accessor :dimension + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @end_index = args[:end_index] if args.key?(:end_index) + @start_index = args[:start_index] if args.key?(:start_index) + @dimension = args[:dimension] if args.key?(:dimension) + end + end + + # A single response from an update. + class Response + include Google::Apis::Core::Hashable + + # The result of updating an embedded object's position. + # Corresponds to the JSON property `updateEmbeddedObjectPosition` + # @return [Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse] + attr_accessor :update_embedded_object_position + + # The result of adding a filter view. + # Corresponds to the JSON property `addFilterView` + # @return [Google::Apis::SheetsV4::AddFilterViewResponse] + attr_accessor :add_filter_view + + # The result of adding a sheet. + # Corresponds to the JSON property `addSheet` + # @return [Google::Apis::SheetsV4::AddSheetResponse] + attr_accessor :add_sheet + + # The result of the find/replace. + # Corresponds to the JSON property `findReplace` + # @return [Google::Apis::SheetsV4::FindReplaceResponse] + attr_accessor :find_replace + + # The result of adding a new protected range. + # Corresponds to the JSON property `addProtectedRange` + # @return [Google::Apis::SheetsV4::AddProtectedRangeResponse] + attr_accessor :add_protected_range + + # The result of updating a conditional format rule. + # Corresponds to the JSON property `updateConditionalFormatRule` + # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse] + attr_accessor :update_conditional_format_rule + + # The result of adding a chart to a spreadsheet. + # Corresponds to the JSON property `addChart` + # @return [Google::Apis::SheetsV4::AddChartResponse] + attr_accessor :add_chart + + # The result of deleting a conditional format rule. + # Corresponds to the JSON property `deleteConditionalFormatRule` + # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse] + attr_accessor :delete_conditional_format_rule + + # The result of duplicating a sheet. + # Corresponds to the JSON property `duplicateSheet` + # @return [Google::Apis::SheetsV4::DuplicateSheetResponse] + attr_accessor :duplicate_sheet + + # The result of a filter view being duplicated. + # Corresponds to the JSON property `duplicateFilterView` + # @return [Google::Apis::SheetsV4::DuplicateFilterViewResponse] + attr_accessor :duplicate_filter_view + + # The result of adding a named range. + # Corresponds to the JSON property `addNamedRange` + # @return [Google::Apis::SheetsV4::AddNamedRangeResponse] + attr_accessor :add_named_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position) + @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view) + @add_sheet = args[:add_sheet] if args.key?(:add_sheet) + @find_replace = args[:find_replace] if args.key?(:find_replace) + @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range) + @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule) + @add_chart = args[:add_chart] if args.key?(:add_chart) + @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule) + @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet) + @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view) + @add_named_range = args[:add_named_range] if args.key?(:add_named_range) + end + end + + # Adds a new conditional format rule at the given index. + # All subsequent rules' indexes are incremented. + class AddConditionalFormatRuleRequest + include Google::Apis::Core::Hashable + + # A rule describing a conditional format. + # Corresponds to the JSON property `rule` + # @return [Google::Apis::SheetsV4::ConditionalFormatRule] + attr_accessor :rule + + # The zero-based index where the rule should be inserted. + # Corresponds to the JSON property `index` + # @return [Fixnum] + attr_accessor :index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rule = args[:rule] if args.key?(:rule) + @index = args[:index] if args.key?(:index) + end + end + + # A filter view. + class FilterView + include Google::Apis::Core::Hashable + + # The name of the filter view. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The named range this filter view is backed by, if any. + # When writing, only one of range or namedRangeId + # may be set. + # Corresponds to the JSON property `namedRangeId` + # @return [String] + attr_accessor :named_range_id + + # The sort order per column. Later specifications are used when values + # are equal in the earlier specifications. + # Corresponds to the JSON property `sortSpecs` + # @return [Array] + attr_accessor :sort_specs + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + # The criteria for showing/hiding values per column. + # The map's key is the column index, and the value is the criteria for + # that column. + # Corresponds to the JSON property `criteria` + # @return [Hash] + attr_accessor :criteria + + # The ID of the filter view. + # Corresponds to the JSON property `filterViewId` + # @return [Fixnum] + attr_accessor :filter_view_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @title = args[:title] if args.key?(:title) + @named_range_id = args[:named_range_id] if args.key?(:named_range_id) + @sort_specs = args[:sort_specs] if args.key?(:sort_specs) + @range = args[:range] if args.key?(:range) + @criteria = args[:criteria] if args.key?(:criteria) + @filter_view_id = args[:filter_view_id] if args.key?(:filter_view_id) + end + end + + # Sorts data in rows based on a sort order per column. + class SortRangeRequest + include Google::Apis::Core::Hashable + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + # The sort order per column. Later specifications are used when values + # are equal in the earlier specifications. + # Corresponds to the JSON property `sortSpecs` + # @return [Array] + attr_accessor :sort_specs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @range = args[:range] if args.key?(:range) + @sort_specs = args[:sort_specs] if args.key?(:sort_specs) + end + end + + # A run of a text format. The format of this run continues until explicitly + # overridden in the next run. + # When updating, all fields must be set. + class TextFormatRun + include Google::Apis::Core::Hashable + + # The character index where this run starts. + # Corresponds to the JSON property `startIndex` + # @return [Fixnum] + attr_accessor :start_index + + # The format of a run of text in a cell. + # Absent values indicate that the field isn't specified. + # Corresponds to the JSON property `format` + # @return [Google::Apis::SheetsV4::TextFormat] + attr_accessor :format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @start_index = args[:start_index] if args.key?(:start_index) + @format = args[:format] if args.key?(:format) + end + end + + # Updates properties of the filter view. + class UpdateFilterViewRequest + include Google::Apis::Core::Hashable + + # A filter view. + # Corresponds to the JSON property `filter` + # @return [Google::Apis::SheetsV4::FilterView] + attr_accessor :filter + + # The fields that should be updated. At least one field must be specified. + # The root `filter` is implied and should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + @fields = args[:fields] if args.key?(:fields) + end + end + + # The result of updating a conditional format rule. + class UpdateConditionalFormatRuleResponse + include Google::Apis::Core::Hashable + + # The old index of the rule. Not set if a rule was replaced + # (because it is the same as newIndex). + # Corresponds to the JSON property `oldIndex` + # @return [Fixnum] + attr_accessor :old_index + + # A rule describing a conditional format. + # Corresponds to the JSON property `newRule` + # @return [Google::Apis::SheetsV4::ConditionalFormatRule] + attr_accessor :new_rule + + # A rule describing a conditional format. + # Corresponds to the JSON property `oldRule` + # @return [Google::Apis::SheetsV4::ConditionalFormatRule] + attr_accessor :old_rule + + # The index of the new rule. + # Corresponds to the JSON property `newIndex` + # @return [Fixnum] + attr_accessor :new_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @old_index = args[:old_index] if args.key?(:old_index) + @new_rule = args[:new_rule] if args.key?(:new_rule) + @old_rule = args[:old_rule] if args.key?(:old_rule) + @new_index = args[:new_index] if args.key?(:new_index) + end + end + + # Criteria for showing/hiding rows in a filter, filter view. + class FilterCriteria + include Google::Apis::Core::Hashable + + # A condition that can evaluate to true or false. + # BooleanConditions are used by conditional formatting, + # data validation, and the criteria in filters. + # Corresponds to the JSON property `condition` + # @return [Google::Apis::SheetsV4::BooleanCondition] + attr_accessor :condition + + # Values that should be hidden. + # Corresponds to the JSON property `hiddenValues` + # @return [Array] + attr_accessor :hidden_values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @hidden_values = args[:hidden_values] if args.key?(:hidden_values) + end + end + + # Deletes the dimensions from the sheet. + class DeleteDimensionRequest + include Google::Apis::Core::Hashable + + # A range along a single dimension on a sheet. + # All indexes are zero-based. + # Indexes are half open: the start index is inclusive + # and the end index is exclusive. + # Missing indexes indicate the range is unbounded on that side. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::DimensionRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @range = args[:range] if args.key?(:range) + end + end + + # A pivot table. + class PivotTable + include Google::Apis::Core::Hashable + + # Whether values should be listed horizontally (as columns) + # or vertically (as rows). + # Corresponds to the JSON property `valueLayout` + # @return [String] + attr_accessor :value_layout + + # Each column grouping in the pivot table. + # Corresponds to the JSON property `columns` + # @return [Array] + attr_accessor :columns + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `source` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :source + + # Each row grouping in the pivot table. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + # A list of values to include in the pivot table. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + # An optional mapping of filters per source column offset. + # The filters will be applied before aggregating data into the pivot table. + # The map's key is the column offset of the source range that you want to + # filter, and the value is the criteria for that column. + # For example, if the source was `C10:E15', a key of `0` will have the filter + # for column `C`, whereas the key `1` is for column `D`. + # Corresponds to the JSON property `criteria` + # @return [Hash] + attr_accessor :criteria + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value_layout = args[:value_layout] if args.key?(:value_layout) + @columns = args[:columns] if args.key?(:columns) + @source = args[:source] if args.key?(:source) + @rows = args[:rows] if args.key?(:rows) + @values = args[:values] if args.key?(:values) + @criteria = args[:criteria] if args.key?(:criteria) + end + end + + # A data validation rule. + class DataValidationRule + include Google::Apis::Core::Hashable + + # A condition that can evaluate to true or false. + # BooleanConditions are used by conditional formatting, + # data validation, and the criteria in filters. + # Corresponds to the JSON property `condition` + # @return [Google::Apis::SheetsV4::BooleanCondition] + attr_accessor :condition + + # A message to show the user when adding data to the cell. + # Corresponds to the JSON property `inputMessage` + # @return [String] + attr_accessor :input_message + + # True if the UI should be customized based on the kind of condition. + # If true, "List" conditions will show a dropdown. + # Corresponds to the JSON property `showCustomUi` + # @return [Boolean] + attr_accessor :show_custom_ui + alias_method :show_custom_ui?, :show_custom_ui + + # True if invalid data should be rejected. + # Corresponds to the JSON property `strict` + # @return [Boolean] + attr_accessor :strict + alias_method :strict?, :strict + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @input_message = args[:input_message] if args.key?(:input_message) + @show_custom_ui = args[:show_custom_ui] if args.key?(:show_custom_ui) + @strict = args[:strict] if args.key?(:strict) + end + end + + # Updates properties of a spreadsheet. + # It is an error to specify read only fields in the field mask. + class UpdateSpreadsheetPropertiesRequest + include Google::Apis::Core::Hashable + + # The fields that should be updated. At least one field must be specified. + # The root 'properties' is implied and should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + # Properties of a spreadsheet. + # Corresponds to the JSON property `properties` + # @return [Google::Apis::SheetsV4::SpreadsheetProperties] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fields = args[:fields] if args.key?(:fields) + @properties = args[:properties] if args.key?(:properties) + end + end + + # Source ranges for a chart. + class ChartSourceRange + include Google::Apis::Core::Hashable + + # The ranges of data for a series or domain. + # Exactly one dimension must have a length of 1, + # and all sources in the list must have the same dimension + # with length 1. + # The domain (if it exists) & all series must have the same number + # of source ranges. If using more than one source range, then the source + # range at a given offset must be contiguous across the domain and series. + # For example, these are valid configurations: + # domain sources: A1:A5 + # series1 sources: B1:B5 + # series2 sources: D6:D10 + # domain sources: A1:A5, C10:C12 + # series1 sources: B1:B5, D10:D12 + # series2 sources: C1:C5, E10:E12 + # Corresponds to the JSON property `sources` + # @return [Array] + attr_accessor :sources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sources = args[:sources] if args.key?(:sources) + end + end + + # The request for updating more than one range of values in a spreadsheet. + class BatchUpdateValuesRequest + include Google::Apis::Core::Hashable + + # How the input data should be interpreted. + # Corresponds to the JSON property `valueInputOption` + # @return [String] + attr_accessor :value_input_option + + # The new values to apply to the spreadsheet. + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value_input_option = args[:value_input_option] if args.key?(:value_input_option) + @data = args[:data] if args.key?(:data) + end + end + + # Clears the basic filter, if any exists on the sheet. + class ClearBasicFilterRequest + include Google::Apis::Core::Hashable + + # The sheet ID on which the basic filter should be cleared. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + end + end + + # A rule describing a conditional format. + class ConditionalFormatRule + include Google::Apis::Core::Hashable + + # A rule that applies a gradient color scale format, based on + # the interpolation points listed. The format of a cell will vary + # based on its contents as compared to the values of the interpolation + # points. + # Corresponds to the JSON property `gradientRule` + # @return [Google::Apis::SheetsV4::GradientRule] + attr_accessor :gradient_rule + + # A rule that may or may not match, depending on the condition. + # Corresponds to the JSON property `booleanRule` + # @return [Google::Apis::SheetsV4::BooleanRule] + attr_accessor :boolean_rule + + # The ranges that will be formatted if the condition is true. + # All the ranges must be on the same grid. + # Corresponds to the JSON property `ranges` + # @return [Array] + attr_accessor :ranges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gradient_rule = args[:gradient_rule] if args.key?(:gradient_rule) + @boolean_rule = args[:boolean_rule] if args.key?(:boolean_rule) + @ranges = args[:ranges] if args.key?(:ranges) + end + end + + # Updates the borders of a range. + # If a field is not set in the request, that means the border remains as-is. + # For example, with two subsequent UpdateBordersRequest: + # 1. range: A1:A5 `` top: RED, bottom: WHITE `` + # 2. range: A1:A5 `` left: BLUE `` + # That would result in A1:A5 having a borders of + # `` top: RED, bottom: WHITE, left: BLUE ``. + # If you want to clear a border, explicitly set the style to + # NONE. + class UpdateBordersRequest + include Google::Apis::Core::Hashable + + # A border along a cell. + # Corresponds to the JSON property `right` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :right + + # A border along a cell. + # Corresponds to the JSON property `innerVertical` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :inner_vertical + + # A border along a cell. + # Corresponds to the JSON property `top` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :top + + # A border along a cell. + # Corresponds to the JSON property `innerHorizontal` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :inner_horizontal + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + # A border along a cell. + # Corresponds to the JSON property `bottom` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :bottom + + # A border along a cell. + # Corresponds to the JSON property `left` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :left + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @right = args[:right] if args.key?(:right) + @inner_vertical = args[:inner_vertical] if args.key?(:inner_vertical) + @top = args[:top] if args.key?(:top) + @inner_horizontal = args[:inner_horizontal] if args.key?(:inner_horizontal) + @range = args[:range] if args.key?(:range) + @bottom = args[:bottom] if args.key?(:bottom) + @left = args[:left] if args.key?(:left) + end + end + + # Criteria for showing/hiding rows in a pivot table. + class PivotFilterCriteria + include Google::Apis::Core::Hashable + + # Values that should be included. Values not listed here are excluded. + # Corresponds to the JSON property `visibleValues` + # @return [Array] + attr_accessor :visible_values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @visible_values = args[:visible_values] if args.key?(:visible_values) + end + end + + # The borders of the cell. + class Borders + include Google::Apis::Core::Hashable + + # A border along a cell. + # Corresponds to the JSON property `left` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :left + + # A border along a cell. + # Corresponds to the JSON property `right` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :right + + # A border along a cell. + # Corresponds to the JSON property `top` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :top + + # A border along a cell. + # Corresponds to the JSON property `bottom` + # @return [Google::Apis::SheetsV4::Border] + attr_accessor :bottom + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @left = args[:left] if args.key?(:left) + @right = args[:right] if args.key?(:right) + @top = args[:top] if args.key?(:top) + @bottom = args[:bottom] if args.key?(:bottom) + end + end + + # A chart embedded in a sheet. + class EmbeddedChart + include Google::Apis::Core::Hashable + + # The ID of the chart. + # Corresponds to the JSON property `chartId` + # @return [Fixnum] + attr_accessor :chart_id + + # The position of an embedded object such as a chart. + # Corresponds to the JSON property `position` + # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition] + attr_accessor :position + + # The specifications of a chart. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::SheetsV4::ChartSpec] + attr_accessor :spec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @chart_id = args[:chart_id] if args.key?(:chart_id) + @position = args[:position] if args.key?(:position) + @spec = args[:spec] if args.key?(:spec) + end + end + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + class Color + include Google::Apis::Core::Hashable + + # The amount of green in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `green` + # @return [Float] + attr_accessor :green + + # The amount of blue in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `blue` + # @return [Float] + attr_accessor :blue + + # The amount of red in the color as a value in the interval [0, 1]. + # Corresponds to the JSON property `red` + # @return [Float] + attr_accessor :red + + # The fraction of this color that should be applied to the pixel. That is, + # the final pixel color is defined by the equation: + # pixel color = alpha * (this color) + (1.0 - alpha) * (background color) + # This means that a value of 1.0 corresponds to a solid color, whereas + # a value of 0.0 corresponds to a completely transparent color. This + # uses a wrapper message rather than a simple float scalar so that it is + # possible to distinguish between a default value and the value being unset. + # If omitted, this color object is to be rendered as a solid color + # (as if the alpha value had been explicitly given with a value of 1.0). + # Corresponds to the JSON property `alpha` + # @return [Float] + attr_accessor :alpha + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @green = args[:green] if args.key?(:green) + @blue = args[:blue] if args.key?(:blue) + @red = args[:red] if args.key?(:red) + @alpha = args[:alpha] if args.key?(:alpha) + end + end + + # Adds a new sheet. + # When a sheet is added at a given index, + # all subsequent sheets' indexes are incremented. + # To add an object sheet, use AddChartRequest instead. + class AddSheetRequest + include Google::Apis::Core::Hashable + + # Properties of a sheet. + # Corresponds to the JSON property `properties` + # @return [Google::Apis::SheetsV4::SheetProperties] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @properties = args[:properties] if args.key?(:properties) + end + end + + # Adds a new protected range. + class AddProtectedRangeRequest + include Google::Apis::Core::Hashable + + # A protected range. + # Corresponds to the JSON property `protectedRange` + # @return [Google::Apis::SheetsV4::ProtectedRange] + attr_accessor :protected_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @protected_range = args[:protected_range] if args.key?(:protected_range) + end + end + + # Data within a range of the spreadsheet. + class ValueRange + include Google::Apis::Core::Hashable + + # The data that was read or to be written. This is an array of arrays, + # the outer array representing all the data and each inner array + # representing a major dimension. Each item in the inner array + # corresponds with one cell. + # For output, empty trailing rows and columns will not be included. + # For input, supported value types are: bool, string, and double. + # Null and empty values will be skipped. + # To set a cell to an empty value, set the string value to an empty string. + # Corresponds to the JSON property `values` + # @return [Array>] + attr_accessor :values + + # The range the values cover, in A1 notation. + # For output, this range indicates the entire requested range, + # even though the values will exclude trailing rows and columns. + # Corresponds to the JSON property `range` + # @return [String] + attr_accessor :range + + # The major dimension of the values. + # For output, if the spreadsheet data is: A1=1,B1=2,A2=3,B2=4, + # then requesting range=A1:B2,majorDimension=ROWS will return [[1,2],[3,4]], + # whereas requesting range=A1:B2,majorDimension=COLUMNS will return + # [[1,3],[2,4]]. + # For input, with range=A1:B2,majorDimension=ROWS then [[1,2],[3,4]] + # will set A1=1,B1=2,A2=3,B2=4. With range=A1:B2,majorDimension=COLUMNS + # then [[1,2],[3,4]] will set A1=1,B1=3,A2=2,B2=4. + # When writing, if this field is not set, it defaults to ROWS. + # Corresponds to the JSON property `majorDimension` + # @return [String] + attr_accessor :major_dimension + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @values = args[:values] if args.key?(:values) + @range = args[:range] if args.key?(:range) + @major_dimension = args[:major_dimension] if args.key?(:major_dimension) + end + end + + # The result of the find/replace. + class FindReplaceResponse + include Google::Apis::Core::Hashable + + # The number of non-formula cells changed. + # Corresponds to the JSON property `valuesChanged` + # @return [Fixnum] + attr_accessor :values_changed + + # The number of rows changed. + # Corresponds to the JSON property `rowsChanged` + # @return [Fixnum] + attr_accessor :rows_changed + + # The number of occurrences (possibly multiple within a cell) changed. + # For example, if replacing "`e`" with "`o`" in "`Google Sheets`", this would + # be "`3`" because "`Google Sheets`" -> "`Googlo Shoots`". + # Corresponds to the JSON property `occurrencesChanged` + # @return [Fixnum] + attr_accessor :occurrences_changed + + # The number of formula cells changed. + # Corresponds to the JSON property `formulasChanged` + # @return [Fixnum] + attr_accessor :formulas_changed + + # The number of sheets changed. + # Corresponds to the JSON property `sheetsChanged` + # @return [Fixnum] + attr_accessor :sheets_changed + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @values_changed = args[:values_changed] if args.key?(:values_changed) + @rows_changed = args[:rows_changed] if args.key?(:rows_changed) + @occurrences_changed = args[:occurrences_changed] if args.key?(:occurrences_changed) + @formulas_changed = args[:formulas_changed] if args.key?(:formulas_changed) + @sheets_changed = args[:sheets_changed] if args.key?(:sheets_changed) + end + end + + # The format of a cell. + class CellFormat + include Google::Apis::Core::Hashable + + # The horizontal alignment of the value in cell. + # Corresponds to the JSON property `horizontalAlignment` + # @return [String] + attr_accessor :horizontal_alignment + + # How a hyperlink, if it exists, should be displayed in the cell. + # Corresponds to the JSON property `hyperlinkDisplayType` + # @return [String] + attr_accessor :hyperlink_display_type + + # The borders of the cell. + # Corresponds to the JSON property `borders` + # @return [Google::Apis::SheetsV4::Borders] + attr_accessor :borders + + # The direction of the text in the cell. + # Corresponds to the JSON property `textDirection` + # @return [String] + attr_accessor :text_direction + + # The format of a run of text in a cell. + # Absent values indicate that the field isn't specified. + # Corresponds to the JSON property `textFormat` + # @return [Google::Apis::SheetsV4::TextFormat] + attr_accessor :text_format + + # The amount of padding around the cell, in pixels. + # When updating padding, every field must be specified. + # Corresponds to the JSON property `padding` + # @return [Google::Apis::SheetsV4::Padding] + attr_accessor :padding + + # The number format of a cell. + # When updating, all fields must be set. + # Corresponds to the JSON property `numberFormat` + # @return [Google::Apis::SheetsV4::NumberFormat] + attr_accessor :number_format + + # The wrap strategy for the value in the cell. + # Corresponds to the JSON property `wrapStrategy` + # @return [String] + attr_accessor :wrap_strategy + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `backgroundColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :background_color + + # The vertical alignment of the value in cell. + # Corresponds to the JSON property `verticalAlignment` + # @return [String] + attr_accessor :vertical_alignment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment) + @hyperlink_display_type = args[:hyperlink_display_type] if args.key?(:hyperlink_display_type) + @borders = args[:borders] if args.key?(:borders) + @text_direction = args[:text_direction] if args.key?(:text_direction) + @text_format = args[:text_format] if args.key?(:text_format) + @padding = args[:padding] if args.key?(:padding) + @number_format = args[:number_format] if args.key?(:number_format) + @wrap_strategy = args[:wrap_strategy] if args.key?(:wrap_strategy) + @background_color = args[:background_color] if args.key?(:background_color) + @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment) + end + end + + # Moves one or more rows or columns. + class MoveDimensionRequest + include Google::Apis::Core::Hashable + + # A range along a single dimension on a sheet. + # All indexes are zero-based. + # Indexes are half open: the start index is inclusive + # and the end index is exclusive. + # Missing indexes indicate the range is unbounded on that side. + # Corresponds to the JSON property `source` + # @return [Google::Apis::SheetsV4::DimensionRange] + attr_accessor :source + + # The zero-based start index of where to move the source data to, + # based on the coordinates *before* the source data is removed + # from the grid. Existing data will be shifted down or right + # (depending on the dimension) to make room for the moved dimensions. + # The source dimensions are removed from the grid, so the + # the data may end up in a different index than specified. + # For example, given `A1..A5` of `0, 1, 2, 3, 4` and wanting to move + # "`1`" and "`2`" to between "`3`" and "`4`", the source would be + # `ROWS [1..3)`,and the destination index would be "`4`" + # (the zero-based index of row 5). + # The end result would be `A1..A5` of `0, 3, 1, 2, 4`. + # Corresponds to the JSON property `destinationIndex` + # @return [Fixnum] + attr_accessor :destination_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source = args[:source] if args.key?(:source) + @destination_index = args[:destination_index] if args.key?(:destination_index) + end + end + + # An axis of the chart. + # A chart may not have more than one axis per + # axis position. + class BasicChartAxis + include Google::Apis::Core::Hashable + + # The position of this axis. + # Corresponds to the JSON property `position` + # @return [String] + attr_accessor :position + + # The title of this axis. If set, this overrides any title inferred + # from headers of the data. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The format of a run of text in a cell. + # Absent values indicate that the field isn't specified. + # Corresponds to the JSON property `format` + # @return [Google::Apis::SheetsV4::TextFormat] + attr_accessor :format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @position = args[:position] if args.key?(:position) + @title = args[:title] if args.key?(:title) + @format = args[:format] if args.key?(:format) + end + end + + # Information about which values in a pivot group should be used for sorting. + class PivotGroupSortValueBucket + include Google::Apis::Core::Hashable + + # Determines the bucket from which values are chosen to sort. + # For example, in a pivot table with one row group & two column groups, + # the row group can list up to two values. The first value corresponds + # to a value within the first column group, and the second value + # corresponds to a value in the second column group. If no values + # are listed, this would indicate that the row should be sorted according + # to the "Grand Total" over the column groups. If a single value is listed, + # this would correspond to using the "Total" of that bucket. + # Corresponds to the JSON property `buckets` + # @return [Array] + attr_accessor :buckets + + # The offset in the [PivotTable.values] list which the values in this + # grouping should be sorted by. + # Corresponds to the JSON property `valuesIndex` + # @return [Fixnum] + attr_accessor :values_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buckets = args[:buckets] if args.key?(:buckets) + @values_index = args[:values_index] if args.key?(:values_index) + end + end + + # Properties about a dimension. + class DimensionProperties + include Google::Apis::Core::Hashable + + # True if this dimension is explicitly hidden. + # Corresponds to the JSON property `hiddenByUser` + # @return [Boolean] + attr_accessor :hidden_by_user + alias_method :hidden_by_user?, :hidden_by_user + + # The height (if a row) or width (if a column) of the dimension in pixels. + # Corresponds to the JSON property `pixelSize` + # @return [Fixnum] + attr_accessor :pixel_size + + # True if this dimension is being filtered. + # This field is read-only. + # Corresponds to the JSON property `hiddenByFilter` + # @return [Boolean] + attr_accessor :hidden_by_filter + alias_method :hidden_by_filter?, :hidden_by_filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hidden_by_user = args[:hidden_by_user] if args.key?(:hidden_by_user) + @pixel_size = args[:pixel_size] if args.key?(:pixel_size) + @hidden_by_filter = args[:hidden_by_filter] if args.key?(:hidden_by_filter) + end + end + + # The position of an embedded object such as a chart. + class EmbeddedObjectPosition + include Google::Apis::Core::Hashable + + # The sheet this is on. Set only if the embedded object + # is on its own sheet. Must be non-negative. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # The location an object is overlaid on top of a grid. + # Corresponds to the JSON property `overlayPosition` + # @return [Google::Apis::SheetsV4::OverlayPosition] + attr_accessor :overlay_position + + # If true, the embedded object will be put on a new sheet whose ID + # is chosen for you. Used only when writing. + # Corresponds to the JSON property `newSheet` + # @return [Boolean] + attr_accessor :new_sheet + alias_method :new_sheet?, :new_sheet + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @overlay_position = args[:overlay_position] if args.key?(:overlay_position) + @new_sheet = args[:new_sheet] if args.key?(:new_sheet) + end + end + + # A single interpolation point a gradient conditional format. + # These pin the gradient color scale according to the color, + # type and value chosen. + class InterpolationPoint + include Google::Apis::Core::Hashable + + # The value this interpolation point uses. May be a formula. + # Unused if type is MIN or + # MAX. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :color + + # How the value should be interpreted. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + @color = args[:color] if args.key?(:color) + @type = args[:type] if args.key?(:type) + end + end + + # An error in a cell. + class ErrorValue + include Google::Apis::Core::Hashable + + # The type of error. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # A message with more information about the error + # (in the spreadsheet's locale). + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @message = args[:message] if args.key?(:message) + end + end + + # Duplicates a particular filter view. + class DuplicateFilterViewRequest + include Google::Apis::Core::Hashable + + # The ID of the filter being duplicated. + # Corresponds to the JSON property `filterId` + # @return [Fixnum] + attr_accessor :filter_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter_id = args[:filter_id] if args.key?(:filter_id) + end + end + + # The request for updating any aspect of a spreadsheet. + class BatchUpdateSpreadsheetRequest + include Google::Apis::Core::Hashable + + # A list of updates to apply to the spreadsheet. + # Corresponds to the JSON property `requests` + # @return [Array] + attr_accessor :requests + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requests = args[:requests] if args.key?(:requests) + end + end + + # Properties of a sheet. + class SheetProperties + include Google::Apis::Core::Hashable + + # The name of the sheet. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The index of the sheet within the spreadsheet. + # When adding or updating sheet properties, if this field + # is excluded then the sheet will be added or moved to the end + # of the sheet list. + # Corresponds to the JSON property `index` + # @return [Fixnum] + attr_accessor :index + + # True if the sheet is hidden in the UI, false if it's visible. + # Corresponds to the JSON property `hidden` + # @return [Boolean] + attr_accessor :hidden + alias_method :hidden?, :hidden + + # Properties of a grid. + # Corresponds to the JSON property `gridProperties` + # @return [Google::Apis::SheetsV4::GridProperties] + attr_accessor :grid_properties + + # The ID of the sheet. Must be non-negative. + # This field cannot be changed once set. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # True if the sheet is an RTL sheet instead of an LTR sheet. + # Corresponds to the JSON property `rightToLeft` + # @return [Boolean] + attr_accessor :right_to_left + alias_method :right_to_left?, :right_to_left + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `tabColor` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :tab_color + + # The type of sheet. Defaults to GRID. + # This field cannot be changed once set. + # Corresponds to the JSON property `sheetType` + # @return [String] + attr_accessor :sheet_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @title = args[:title] if args.key?(:title) + @index = args[:index] if args.key?(:index) + @hidden = args[:hidden] if args.key?(:hidden) + @grid_properties = args[:grid_properties] if args.key?(:grid_properties) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @right_to_left = args[:right_to_left] if args.key?(:right_to_left) + @tab_color = args[:tab_color] if args.key?(:tab_color) + @sheet_type = args[:sheet_type] if args.key?(:sheet_type) + end + end + + # A protected range. + class ProtectedRange + include Google::Apis::Core::Hashable + + # The list of unprotected ranges within a protected sheet. + # Unprotected ranges are only supported on protected sheets. + # Corresponds to the JSON property `unprotectedRanges` + # @return [Array] + attr_accessor :unprotected_ranges + + # The description of this protected range. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The named range this protected range is backed by, if any. + # When writing, only one of range or namedRangeId + # may be set. + # Corresponds to the JSON property `namedRangeId` + # @return [String] + attr_accessor :named_range_id + + # True if the user who requested this protected range can edit the + # protected area. + # This field is read-only. + # Corresponds to the JSON property `requestingUserCanEdit` + # @return [Boolean] + attr_accessor :requesting_user_can_edit + alias_method :requesting_user_can_edit?, :requesting_user_can_edit + + # The editors of a protected range. + # Corresponds to the JSON property `editors` + # @return [Google::Apis::SheetsV4::Editors] + attr_accessor :editors + + # The ID of the protected range. + # This field is read-only. + # Corresponds to the JSON property `protectedRangeId` + # @return [Fixnum] + attr_accessor :protected_range_id + + # True if this this protected range will show a warning when editing. + # Warning-based protection means that every user can edit data in the + # protected range, except editing will prompt a warning asking the user + # to confirm the edit. + # When warning: if this field is true, then editors is ignored. + # Additionally, if this field is changed from true to false and the + # `editors` field is not set (nor included in the field mask), then + # the editors will be set to all the editors in the document. + # Corresponds to the JSON property `warningOnly` + # @return [Boolean] + attr_accessor :warning_only + alias_method :warning_only?, :warning_only + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unprotected_ranges = args[:unprotected_ranges] if args.key?(:unprotected_ranges) + @description = args[:description] if args.key?(:description) + @named_range_id = args[:named_range_id] if args.key?(:named_range_id) + @requesting_user_can_edit = args[:requesting_user_can_edit] if args.key?(:requesting_user_can_edit) + @editors = args[:editors] if args.key?(:editors) + @protected_range_id = args[:protected_range_id] if args.key?(:protected_range_id) + @warning_only = args[:warning_only] if args.key?(:warning_only) + @range = args[:range] if args.key?(:range) + end + end + + # Deletes a conditional format rule at the given index. + # All subsequent rules' indexes are decremented. + class DeleteConditionalFormatRuleRequest + include Google::Apis::Core::Hashable + + # The sheet the rule is being deleted from. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # The zero-based index of the rule to be deleted. + # Corresponds to the JSON property `index` + # @return [Fixnum] + attr_accessor :index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @index = args[:index] if args.key?(:index) + end + end + + # The specifications of a chart. + class ChartSpec + include Google::Apis::Core::Hashable + + # Determines how the charts will use hidden rows or columns. + # This value is only meaningful if the + # ChartData.sourceRange + # is used for a domain or series. + # Corresponds to the JSON property `hiddenDimensionStrategy` + # @return [String] + attr_accessor :hidden_dimension_strategy + + # The specification for a basic chart. See BasicChartType for the list + # of charts this supports. + # Corresponds to the JSON property `basicChart` + # @return [Google::Apis::SheetsV4::BasicChartSpec] + attr_accessor :basic_chart + + # The title of the chart. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # A pie chart. + # Corresponds to the JSON property `pieChart` + # @return [Google::Apis::SheetsV4::PieChartSpec] + attr_accessor :pie_chart + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hidden_dimension_strategy = args[:hidden_dimension_strategy] if args.key?(:hidden_dimension_strategy) + @basic_chart = args[:basic_chart] if args.key?(:basic_chart) + @title = args[:title] if args.key?(:title) + @pie_chart = args[:pie_chart] if args.key?(:pie_chart) + end + end + + # A combination of a source range and how to extend that source. + class SourceAndDestination + include Google::Apis::Core::Hashable + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `source` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :source + + # The number of rows or columns that data should be filled into. + # Positive numbers expand beyond the last row or last column + # of the source. Negative numbers expand before the first row + # or first column of the source. + # Corresponds to the JSON property `fillLength` + # @return [Fixnum] + attr_accessor :fill_length + + # The dimension that data should be filled into. + # Corresponds to the JSON property `dimension` + # @return [String] + attr_accessor :dimension + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source = args[:source] if args.key?(:source) + @fill_length = args[:fill_length] if args.key?(:fill_length) + @dimension = args[:dimension] if args.key?(:dimension) + end + end + + # The value of the condition. + class ConditionValue + include Google::Apis::Core::Hashable + + # A relative date (based on the current date). + # Valid only if the type is + # DATE_BEFORE, + # DATE_AFTER, + # DATE_ON_OR_BEFORE or + # DATE_ON_OR_AFTER. + # Relative dates are not supported in data validation. + # They are supported only in conditional formatting and + # conditional filters. + # Corresponds to the JSON property `relativeDate` + # @return [String] + attr_accessor :relative_date + + # A value the condition is based on. + # The value will be parsed as if the user typed into a cell. + # Formulas are supported (and must begin with an `=`). + # Corresponds to the JSON property `userEnteredValue` + # @return [String] + attr_accessor :user_entered_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @relative_date = args[:relative_date] if args.key?(:relative_date) + @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value) + end + end + + # Inserts data into the spreadsheet starting at the specified coordinate. + class PasteDataRequest + include Google::Apis::Core::Hashable + + # The data to insert. + # Corresponds to the JSON property `data` + # @return [String] + attr_accessor :data + + # A coordinate in a sheet. + # All indexes are zero-based. + # Corresponds to the JSON property `coordinate` + # @return [Google::Apis::SheetsV4::GridCoordinate] + attr_accessor :coordinate + + # The delimiter in the data. + # Corresponds to the JSON property `delimiter` + # @return [String] + attr_accessor :delimiter + + # How the data should be pasted. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # True if the data is HTML. + # Corresponds to the JSON property `html` + # @return [Boolean] + attr_accessor :html + alias_method :html?, :html + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @coordinate = args[:coordinate] if args.key?(:coordinate) + @delimiter = args[:delimiter] if args.key?(:delimiter) + @type = args[:type] if args.key?(:type) + @html = args[:html] if args.key?(:html) + end + end + + # Finds and replaces data in cells over a range, sheet, or all sheets. + class FindReplaceRequest + include Google::Apis::Core::Hashable + + # The value to search. + # Corresponds to the JSON property `find` + # @return [String] + attr_accessor :find + + # The value to use as the replacement. + # Corresponds to the JSON property `replacement` + # @return [String] + attr_accessor :replacement + + # True if the find value is a regex. + # The regular expression and replacement should follow Java regex rules + # at https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html. + # The replacement string is allowed to refer to capturing groups. + # For example, if one cell has the contents "`Google Sheets`" and another + # has "`Google Docs`", then searching for `"o.* (.*)"` with a replacement of + # `"$1 Rocks`"` would change the contents of the cells to + # "`GSheets Rocks`" and "`GDocs Rocks`" respectively. + # Corresponds to the JSON property `searchByRegex` + # @return [Boolean] + attr_accessor :search_by_regex + alias_method :search_by_regex?, :search_by_regex + + # The sheet to find/replace over. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # True to find/replace over all sheets. + # Corresponds to the JSON property `allSheets` + # @return [Boolean] + attr_accessor :all_sheets + alias_method :all_sheets?, :all_sheets + + # True if the search is case sensitive. + # Corresponds to the JSON property `matchCase` + # @return [Boolean] + attr_accessor :match_case + alias_method :match_case?, :match_case + + # True if the search should include cells with formulas. + # False to skip cells with formulas. + # Corresponds to the JSON property `includeFormulas` + # @return [Boolean] + attr_accessor :include_formulas + alias_method :include_formulas?, :include_formulas + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + # True if the find value should match the entire cell. + # Corresponds to the JSON property `matchEntireCell` + # @return [Boolean] + attr_accessor :match_entire_cell + alias_method :match_entire_cell?, :match_entire_cell + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @find = args[:find] if args.key?(:find) + @replacement = args[:replacement] if args.key?(:replacement) + @search_by_regex = args[:search_by_regex] if args.key?(:search_by_regex) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @all_sheets = args[:all_sheets] if args.key?(:all_sheets) + @match_case = args[:match_case] if args.key?(:match_case) + @include_formulas = args[:include_formulas] if args.key?(:include_formulas) + @range = args[:range] if args.key?(:range) + @match_entire_cell = args[:match_entire_cell] if args.key?(:match_entire_cell) + end + end + + # A sort order associated with a specific column or row. + class SortSpec + include Google::Apis::Core::Hashable + + # The order data should be sorted. + # Corresponds to the JSON property `sortOrder` + # @return [String] + attr_accessor :sort_order + + # The dimension the sort should be applied to. + # Corresponds to the JSON property `dimensionIndex` + # @return [Fixnum] + attr_accessor :dimension_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sort_order = args[:sort_order] if args.key?(:sort_order) + @dimension_index = args[:dimension_index] if args.key?(:dimension_index) + end + end + + # The request to copy a sheet across spreadsheets. + class CopySheetToAnotherSpreadsheetRequest + include Google::Apis::Core::Hashable + + # The ID of the spreadsheet to copy the sheet to. + # Corresponds to the JSON property `destinationSpreadsheetId` + # @return [String] + attr_accessor :destination_spreadsheet_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination_spreadsheet_id = args[:destination_spreadsheet_id] if args.key?(:destination_spreadsheet_id) + end + end + + # The number format of a cell. + # When updating, all fields must be set. + class NumberFormat + include Google::Apis::Core::Hashable + + # Pattern string used for formatting. + # Corresponds to the JSON property `pattern` + # @return [String] + attr_accessor :pattern + + # The type of the number format. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pattern = args[:pattern] if args.key?(:pattern) + @type = args[:type] if args.key?(:type) + end + end + + # Updates properties of dimensions within the specified range. + # It is an error to specify read only fields in the field mask. + class UpdateDimensionPropertiesRequest + include Google::Apis::Core::Hashable + + # The fields that should be updated. At least one field must be specified. + # The root `properties` is implied and should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + # A range along a single dimension on a sheet. + # All indexes are zero-based. + # Indexes are half open: the start index is inclusive + # and the end index is exclusive. + # Missing indexes indicate the range is unbounded on that side. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::DimensionRange] + attr_accessor :range + + # Properties about a dimension. + # Corresponds to the JSON property `properties` + # @return [Google::Apis::SheetsV4::DimensionProperties] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fields = args[:fields] if args.key?(:fields) + @range = args[:range] if args.key?(:range) + @properties = args[:properties] if args.key?(:properties) + end + end + + # The editors of a protected range. + class Editors + include Google::Apis::Core::Hashable + + # The email addresses of users with edit access to the protected range. + # Corresponds to the JSON property `users` + # @return [Array] + attr_accessor :users + + # The email addresses of groups with edit access to the protected range. + # Corresponds to the JSON property `groups` + # @return [Array] + attr_accessor :groups + + # True if anyone in the document's domain has edit access to the protected + # range. Domain protection is only supported on documents within a domain. + # Corresponds to the JSON property `domainUsersCanEdit` + # @return [Boolean] + attr_accessor :domain_users_can_edit + alias_method :domain_users_can_edit?, :domain_users_can_edit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @users = args[:users] if args.key?(:users) + @groups = args[:groups] if args.key?(:groups) + @domain_users_can_edit = args[:domain_users_can_edit] if args.key?(:domain_users_can_edit) + end + end + + # Resource that represents a spreadsheet. + class Spreadsheet + include Google::Apis::Core::Hashable + + # The ID of the spreadsheet. + # This field is read-only. + # Corresponds to the JSON property `spreadsheetId` + # @return [String] + attr_accessor :spreadsheet_id + + # Properties of a spreadsheet. + # Corresponds to the JSON property `properties` + # @return [Google::Apis::SheetsV4::SpreadsheetProperties] + attr_accessor :properties + + # The sheets that are part of a spreadsheet. + # Corresponds to the JSON property `sheets` + # @return [Array] + attr_accessor :sheets + + # The named ranges defined in a spreadsheet. + # Corresponds to the JSON property `namedRanges` + # @return [Array] + attr_accessor :named_ranges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + @properties = args[:properties] if args.key?(:properties) + @sheets = args[:sheets] if args.key?(:sheets) + @named_ranges = args[:named_ranges] if args.key?(:named_ranges) + end + end + + # Data in the grid, as well as metadata about the dimensions. + class GridData + include Google::Apis::Core::Hashable + + # Metadata about the requested columns in the grid, starting with the column + # in startColumn. + # Corresponds to the JSON property `columnMetadata` + # @return [Array] + attr_accessor :column_metadata + + # The data in the grid, one entry per row, + # starting with the row in startRow. + # The values in RowData will correspond to columns starting + # at startColumn. + # Corresponds to the JSON property `rowData` + # @return [Array] + attr_accessor :row_data + + # The first row this GridData refers to, zero-based. + # Corresponds to the JSON property `startRow` + # @return [Fixnum] + attr_accessor :start_row + + # Metadata about the requested rows in the grid, starting with the row + # in startRow. + # Corresponds to the JSON property `rowMetadata` + # @return [Array] + attr_accessor :row_metadata + + # The first column this GridData refers to, zero-based. + # Corresponds to the JSON property `startColumn` + # @return [Fixnum] + attr_accessor :start_column + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @column_metadata = args[:column_metadata] if args.key?(:column_metadata) + @row_data = args[:row_data] if args.key?(:row_data) + @start_row = args[:start_row] if args.key?(:start_row) + @row_metadata = args[:row_metadata] if args.key?(:row_metadata) + @start_column = args[:start_column] if args.key?(:start_column) + end + end + + # The definition of how a value in a pivot table should be calculated. + class PivotValue + include Google::Apis::Core::Hashable + + # A custom formula to calculate the value. The formula must start + # with an `=` character. + # Corresponds to the JSON property `formula` + # @return [String] + attr_accessor :formula + + # The column offset of the source range that this value reads from. + # For example, if the source was `C10:E15', a `sourceColumnOffset` of `0` + # means this value refers to column `C`, whereas the offset `1` would + # refer to column `D`. + # Corresponds to the JSON property `sourceColumnOffset` + # @return [Fixnum] + attr_accessor :source_column_offset + + # A function to summarize the value. + # If formula is set, the only supported values are + # SUM and + # CUSTOM. + # If sourceColumnOffset is set, then `CUSTOM` + # is not supported. + # Corresponds to the JSON property `summarizeFunction` + # @return [String] + attr_accessor :summarize_function + + # A name to use for the value. This is only used if formula was set. + # Otherwise, the column name is used. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @formula = args[:formula] if args.key?(:formula) + @source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset) + @summarize_function = args[:summarize_function] if args.key?(:summarize_function) + @name = args[:name] if args.key?(:name) + end + end + + # The default filter associated with a sheet. + class BasicFilter + include Google::Apis::Core::Hashable + + # The criteria for showing/hiding values per column. + # The map's key is the column index, and the value is the criteria for + # that column. + # Corresponds to the JSON property `criteria` + # @return [Hash] + attr_accessor :criteria + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + # The sort order per column. Later specifications are used when values + # are equal in the earlier specifications. + # Corresponds to the JSON property `sortSpecs` + # @return [Array] + attr_accessor :sort_specs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @criteria = args[:criteria] if args.key?(:criteria) + @range = args[:range] if args.key?(:range) + @sort_specs = args[:sort_specs] if args.key?(:sort_specs) + end + end + + # Duplicates the contents of a sheet. + class DuplicateSheetRequest + include Google::Apis::Core::Hashable + + # The sheet to duplicate. + # Corresponds to the JSON property `sourceSheetId` + # @return [Fixnum] + attr_accessor :source_sheet_id + + # If set, the ID of the new sheet. If not set, an ID is chosen. + # If set, the ID must not conflict with any existing sheet ID. + # Corresponds to the JSON property `newSheetId` + # @return [Fixnum] + attr_accessor :new_sheet_id + + # The zero-based index where the new sheet should be inserted. + # The index of all sheets after this are incremented. + # Corresponds to the JSON property `insertSheetIndex` + # @return [Fixnum] + attr_accessor :insert_sheet_index + + # The name of the new sheet. If empty, a new name is chosen for you. + # Corresponds to the JSON property `newSheetName` + # @return [String] + attr_accessor :new_sheet_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source_sheet_id = args[:source_sheet_id] if args.key?(:source_sheet_id) + @new_sheet_id = args[:new_sheet_id] if args.key?(:new_sheet_id) + @insert_sheet_index = args[:insert_sheet_index] if args.key?(:insert_sheet_index) + @new_sheet_name = args[:new_sheet_name] if args.key?(:new_sheet_name) + end + end + + # The result of adding a filter view. + class AddFilterViewResponse + include Google::Apis::Core::Hashable + + # A filter view. + # Corresponds to the JSON property `filter` + # @return [Google::Apis::SheetsV4::FilterView] + attr_accessor :filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + end + end + + # The result of duplicating a sheet. + class DuplicateSheetResponse + include Google::Apis::Core::Hashable + + # Properties of a sheet. + # Corresponds to the JSON property `properties` + # @return [Google::Apis::SheetsV4::SheetProperties] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @properties = args[:properties] if args.key?(:properties) + end + end + + # A border along a cell. + class Border + include Google::Apis::Core::Hashable + + # The style of the border. + # Corresponds to the JSON property `style` + # @return [String] + attr_accessor :style + + # The width of the border, in pixels. + # Border widths must be between 0 and 3 pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + # Represents a color in the RGBA color space. This representation is designed + # for simplicity of conversion to/from color representations in various + # languages over compactness; for example, the fields of this representation + # can be trivially provided to the constructor of "java.awt.Color" in Java; it + # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into + # a CSS "rgba()" string in JavaScript, as well. Here are some examples: + # Example (Java): + # import com.google.type.Color; + # // ... + # public static java.awt.Color fromProto(Color protocolor) ` + # float alpha = protocolor.hasAlpha() + # ? protocolor.getAlpha().getValue() + # : 1.0; + # return new java.awt.Color( + # protocolor.getRed(), + # protocolor.getGreen(), + # protocolor.getBlue(), + # alpha); + # ` + # public static Color toProto(java.awt.Color color) ` + # float red = (float) color.getRed(); + # float green = (float) color.getGreen(); + # float blue = (float) color.getBlue(); + # float denominator = 255.0; + # Color.Builder resultBuilder = + # Color + # .newBuilder() + # .setRed(red / denominator) + # .setGreen(green / denominator) + # .setBlue(blue / denominator); + # int alpha = color.getAlpha(); + # if (alpha != 255) ` + # result.setAlpha( + # FloatValue + # .newBuilder() + # .setValue(((float) alpha) / denominator) + # .build()); + # ` + # return resultBuilder.build(); + # ` + # // ... + # Example (iOS / Obj-C): + # // ... + # static UIColor* fromProto(Color* protocolor) ` + # float red = [protocolor red]; + # float green = [protocolor green]; + # float blue = [protocolor blue]; + # FloatValue* alpha_wrapper = [protocolor alpha]; + # float alpha = 1.0; + # if (alpha_wrapper != nil) ` + # alpha = [alpha_wrapper value]; + # ` + # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; + # ` + # static Color* toProto(UIColor* color) ` + # CGFloat red, green, blue, alpha; + # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` + # return nil; + # ` + # Color* result = [Color alloc] init]; + # [result setRed:red]; + # [result setGreen:green]; + # [result setBlue:blue]; + # if (alpha <= 0.9999) ` + # [result setAlpha:floatWrapperWithValue(alpha)]; + # ` + # [result autorelease]; + # return result; + # ` + # // ... + # Example (JavaScript): + # // ... + # var protoToCssColor = function(rgb_color) ` + # var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; + # var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); + # var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); + # if (!('alpha' in rgb_color)) ` + # return rgbToCssColor_(red, green, blue); + # ` + # var alphaFrac = rgb_color.alpha.value || 0.0; + # var rgbParams = [red, green, blue].join(','); + # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); + # `; + # var rgbToCssColor_ = function(red, green, blue) ` + # var rgbNumber = new Number((red << 16) | (green << 8) | blue); + # var hexString = rgbNumber.toString(16); + # var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; + # for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); + # ` + # resultBuilder.push(hexString); + # return resultBuilder.join(''); + # `; + # // ... + # Corresponds to the JSON property `color` + # @return [Google::Apis::SheetsV4::Color] + attr_accessor :color + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @style = args[:style] if args.key?(:style) + @width = args[:width] if args.key?(:width) + @color = args[:color] if args.key?(:color) + end + end + + # Adds a named range to the spreadsheet. + class AddNamedRangeRequest + include Google::Apis::Core::Hashable + + # A named range. + # Corresponds to the JSON property `namedRange` + # @return [Google::Apis::SheetsV4::NamedRange] + attr_accessor :named_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @named_range = args[:named_range] if args.key?(:named_range) + end + end + + # The result of adding a chart to a spreadsheet. + class AddChartResponse + include Google::Apis::Core::Hashable + + # A chart embedded in a sheet. + # Corresponds to the JSON property `chart` + # @return [Google::Apis::SheetsV4::EmbeddedChart] + attr_accessor :chart + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @chart = args[:chart] if args.key?(:chart) + end + end + + # Adds new cells to the last row with data in a sheet, + # inserting new rows into the sheet if necessary. + class AppendCellsRequest + include Google::Apis::Core::Hashable + + # The sheet ID to append the data to. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # The data to append. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + # The fields of CellData that should be updated. + # At least one field must be specified. + # The root is the CellData; 'row.values.' should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @rows = args[:rows] if args.key?(:rows) + @fields = args[:fields] if args.key?(:fields) + end + end + + # Data about each cell in a row. + class RowData + include Google::Apis::Core::Hashable + + # The values in the row, one per column. + # 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) + @values = args[:values] if args.key?(:values) + end + end + + # A single series of data in a chart. + # For example, if charting stock prices over time, multiple series may exist, + # one for the "Open Price", "High Price", "Low Price" and "Close Price". + class BasicChartSeries + include Google::Apis::Core::Hashable + + # The data included in a domain or series. + # Corresponds to the JSON property `series` + # @return [Google::Apis::SheetsV4::ChartData] + attr_accessor :series + + # The minor axis that will specify the range of values for this series. + # For example, if charting stocks over time, the "Volume" series + # may want to be pinned to the right with the prices pinned to the left, + # because the scale of trading volume is different than the scale of + # prices. + # It is an error to specify an axis that isn't a valid minor axis + # for the chart's type. + # Corresponds to the JSON property `targetAxis` + # @return [String] + attr_accessor :target_axis + + # The type of this series. Valid only if the + # chartType is + # COMBO. + # Different types will change the way the series is visualized. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @series = args[:series] if args.key?(:series) + @target_axis = args[:target_axis] if args.key?(:target_axis) + @type = args[:type] if args.key?(:type) + end + end + + # Updates all cells in the range to the values in the given Cell object. + # Only the fields listed in the fields field are updated; others are + # unchanged. + # If writing a cell with a formula, the formula's ranges will automatically + # increment for each field in the range. + # For example, if writing a cell with formula `=A1` into range B2:C4, + # B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`, + # C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`. + # To keep the formula's ranges static, use the `$` indicator. + # For example, using the formula was `=$A$1`, neither + # the row nor column would increment. + class RepeatCellRequest + include Google::Apis::Core::Hashable + + # Data about a specific cell. + # Corresponds to the JSON property `cell` + # @return [Google::Apis::SheetsV4::CellData] + attr_accessor :cell + + # The fields that should be updated. At least one field must be specified. + # The root `cell` is implied and should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cell = args[:cell] if args.key?(:cell) + @fields = args[:fields] if args.key?(:fields) + @range = args[:range] if args.key?(:range) + end + end + + # The specification for a basic chart. See BasicChartType for the list + # of charts this supports. + class BasicChartSpec + include Google::Apis::Core::Hashable + + # The type of the chart. + # Corresponds to the JSON property `chartType` + # @return [String] + attr_accessor :chart_type + + # The domain of data this is charting. + # Only a single domain is currently supported. + # Corresponds to the JSON property `domains` + # @return [Array] + attr_accessor :domains + + # The number of rows or columns in the data that are "headers". + # If not set, Google Sheets will guess how many rows are headers based + # on the data. + # (Note that BasicChartAxis.title may override the axis title + # inferred from the header values.) + # Corresponds to the JSON property `headerCount` + # @return [Fixnum] + attr_accessor :header_count + + # The data this chart is visualizing. + # Corresponds to the JSON property `series` + # @return [Array] + attr_accessor :series + + # The position of the chart legend. + # Corresponds to the JSON property `legendPosition` + # @return [String] + attr_accessor :legend_position + + # The axis on the chart. + # Corresponds to the JSON property `axis` + # @return [Array] + attr_accessor :axis + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @chart_type = args[:chart_type] if args.key?(:chart_type) + @domains = args[:domains] if args.key?(:domains) + @header_count = args[:header_count] if args.key?(:header_count) + @series = args[:series] if args.key?(:series) + @legend_position = args[:legend_position] if args.key?(:legend_position) + @axis = args[:axis] if args.key?(:axis) + end + end + + # A named range. + class NamedRange + include Google::Apis::Core::Hashable + + # The ID of the named range. + # Corresponds to the JSON property `namedRangeId` + # @return [String] + attr_accessor :named_range_id + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + # The name of the named range. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @named_range_id = args[:named_range_id] if args.key?(:named_range_id) + @range = args[:range] if args.key?(:range) + @name = args[:name] if args.key?(:name) + end + end + + # Sets the basic filter associated with a sheet. + class SetBasicFilterRequest + include Google::Apis::Core::Hashable + + # The default filter associated with a sheet. + # Corresponds to the JSON property `filter` + # @return [Google::Apis::SheetsV4::BasicFilter] + attr_accessor :filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + end + end + + # Update an embedded object's position (such as a moving or resizing a + # chart or image). + class UpdateEmbeddedObjectPositionRequest + include Google::Apis::Core::Hashable + + # The position of an embedded object such as a chart. + # Corresponds to the JSON property `newPosition` + # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition] + attr_accessor :new_position + + # The id of the object to moved. + # Corresponds to the JSON property `objectId` + # @return [Fixnum] + attr_accessor :object_id_prop + + # The fields of OverlayPosition that should be updated when + # setting a new position. Used only if + # newPosition.overlayPosition + # is set, in which case at least one field must + # be specified. The root `newPosition.overlayPosition` is implied and + # should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @new_position = args[:new_position] if args.key?(:new_position) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + @fields = args[:fields] if args.key?(:fields) + end + end + + # Automatically resizes one or more dimensions based on the contents + # of the cells in that dimension. + class AutoResizeDimensionsRequest + include Google::Apis::Core::Hashable + + # A range along a single dimension on a sheet. + # All indexes are zero-based. + # Indexes are half open: the start index is inclusive + # and the end index is exclusive. + # Missing indexes indicate the range is unbounded on that side. + # Corresponds to the JSON property `dimensions` + # @return [Google::Apis::SheetsV4::DimensionRange] + attr_accessor :dimensions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimensions = args[:dimensions] if args.key?(:dimensions) + end + end + + # The result of a filter view being duplicated. + class DuplicateFilterViewResponse + include Google::Apis::Core::Hashable + + # A filter view. + # Corresponds to the JSON property `filter` + # @return [Google::Apis::SheetsV4::FilterView] + attr_accessor :filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + end + end + + # A single grouping (either row or column) in a pivot table. + class PivotGroup + include Google::Apis::Core::Hashable + + # The order the values in this group should be sorted. + # Corresponds to the JSON property `sortOrder` + # @return [String] + attr_accessor :sort_order + + # The column offset of the source range that this grouping is based on. + # For example, if the source was `C10:E15', a `sourceColumnOffset` of `0` + # means this group refers to column `C`, whereas the offset `1` would refer + # to column `D`. + # Corresponds to the JSON property `sourceColumnOffset` + # @return [Fixnum] + attr_accessor :source_column_offset + + # True if the pivot table should include the totals for this grouping. + # Corresponds to the JSON property `showTotals` + # @return [Boolean] + attr_accessor :show_totals + alias_method :show_totals?, :show_totals + + # Information about which values in a pivot group should be used for sorting. + # Corresponds to the JSON property `valueBucket` + # @return [Google::Apis::SheetsV4::PivotGroupSortValueBucket] + attr_accessor :value_bucket + + # Metadata about values in the grouping. + # Corresponds to the JSON property `valueMetadata` + # @return [Array] + attr_accessor :value_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sort_order = args[:sort_order] if args.key?(:sort_order) + @source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset) + @show_totals = args[:show_totals] if args.key?(:show_totals) + @value_bucket = args[:value_bucket] if args.key?(:value_bucket) + @value_metadata = args[:value_metadata] if args.key?(:value_metadata) + end + end + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + class GridRange + include Google::Apis::Core::Hashable + + # The sheet this range is on. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # The start column (inclusive) of the range, or not set if unbounded. + # Corresponds to the JSON property `startColumnIndex` + # @return [Fixnum] + attr_accessor :start_column_index + + # The start row (inclusive) of the range, or not set if unbounded. + # Corresponds to the JSON property `startRowIndex` + # @return [Fixnum] + attr_accessor :start_row_index + + # The end row (exclusive) of the range, or not set if unbounded. + # Corresponds to the JSON property `endRowIndex` + # @return [Fixnum] + attr_accessor :end_row_index + + # The end column (exclusive) of the range, or not set if unbounded. + # Corresponds to the JSON property `endColumnIndex` + # @return [Fixnum] + attr_accessor :end_column_index + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @start_column_index = args[:start_column_index] if args.key?(:start_column_index) + @start_row_index = args[:start_row_index] if args.key?(:start_row_index) + @end_row_index = args[:end_row_index] if args.key?(:end_row_index) + @end_column_index = args[:end_column_index] if args.key?(:end_column_index) + end + end + + # Deletes the requested sheet. + class DeleteSheetRequest + include Google::Apis::Core::Hashable + + # The ID of the sheet to delete. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + end + end + + # The data included in a domain or series. + class ChartData + include Google::Apis::Core::Hashable + + # Source ranges for a chart. + # Corresponds to the JSON property `sourceRange` + # @return [Google::Apis::SheetsV4::ChartSourceRange] + attr_accessor :source_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source_range = args[:source_range] if args.key?(:source_range) + end + end + + # A sheet in a spreadsheet. + class Sheet + include Google::Apis::Core::Hashable + + # Properties of a sheet. + # Corresponds to the JSON property `properties` + # @return [Google::Apis::SheetsV4::SheetProperties] + attr_accessor :properties + + # The specifications of every chart on this sheet. + # Corresponds to the JSON property `charts` + # @return [Array] + attr_accessor :charts + + # The filter views in this sheet. + # Corresponds to the JSON property `filterViews` + # @return [Array] + attr_accessor :filter_views + + # The conditional format rules in this sheet. + # Corresponds to the JSON property `conditionalFormats` + # @return [Array] + attr_accessor :conditional_formats + + # The protected ranges in this sheet. + # Corresponds to the JSON property `protectedRanges` + # @return [Array] + attr_accessor :protected_ranges + + # The default filter associated with a sheet. + # Corresponds to the JSON property `basicFilter` + # @return [Google::Apis::SheetsV4::BasicFilter] + attr_accessor :basic_filter + + # The ranges that are merged together. + # Corresponds to the JSON property `merges` + # @return [Array] + attr_accessor :merges + + # Data in the grid, if this is a grid sheet. + # The number of GridData objects returned is dependent on the number of + # ranges requested on this sheet. For example, if this is representing + # `Sheet1`, and the spreadsheet was requested with ranges + # `Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a + # startRow/startColumn of `0`, + # while the second one will have `startRow 14` (zero-based row 15), + # and `startColumn 3` (zero-based column D). + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @properties = args[:properties] if args.key?(:properties) + @charts = args[:charts] if args.key?(:charts) + @filter_views = args[:filter_views] if args.key?(:filter_views) + @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats) + @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges) + @basic_filter = args[:basic_filter] if args.key?(:basic_filter) + @merges = args[:merges] if args.key?(:merges) + @data = args[:data] if args.key?(:data) + end + end + + # Copies data from the source to the destination. + class CopyPasteRequest + include Google::Apis::Core::Hashable + + # What kind of data to paste. + # Corresponds to the JSON property `pasteType` + # @return [String] + attr_accessor :paste_type + + # How that data should be oriented when pasting. + # Corresponds to the JSON property `pasteOrientation` + # @return [String] + attr_accessor :paste_orientation + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `source` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :source + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `destination` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @paste_type = args[:paste_type] if args.key?(:paste_type) + @paste_orientation = args[:paste_orientation] if args.key?(:paste_orientation) + @source = args[:source] if args.key?(:source) + @destination = args[:destination] if args.key?(:destination) + end + end + + # Updates all cells in a range with new data. + class UpdateCellsRequest + include Google::Apis::Core::Hashable + + # The data to write. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + # The fields of CellData that should be updated. + # At least one field must be specified. + # The root is the CellData; 'row.values.' should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + # A coordinate in a sheet. + # All indexes are zero-based. + # Corresponds to the JSON property `start` + # @return [Google::Apis::SheetsV4::GridCoordinate] + attr_accessor :start + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rows = args[:rows] if args.key?(:rows) + @fields = args[:fields] if args.key?(:fields) + @start = args[:start] if args.key?(:start) + @range = args[:range] if args.key?(:range) + end + end + + # The kinds of value that a cell in a spreadsheet can have. + class ExtendedValue + include Google::Apis::Core::Hashable + + # Represents a formula. + # Corresponds to the JSON property `formulaValue` + # @return [String] + attr_accessor :formula_value + + # An error in a cell. + # Corresponds to the JSON property `errorValue` + # @return [Google::Apis::SheetsV4::ErrorValue] + attr_accessor :error_value + + # Represents a boolean value. + # Corresponds to the JSON property `boolValue` + # @return [Boolean] + attr_accessor :bool_value + alias_method :bool_value?, :bool_value + + # Represents a double value. + # Note: Dates, Times and DateTimes are represented as doubles in + # "serial number" format. + # Corresponds to the JSON property `numberValue` + # @return [Float] + attr_accessor :number_value + + # Represents a string value. + # Leading single quotes are not included. For example, if the user typed + # `'123` into the UI, this would be represented as a `stringValue` of + # `"123"`. + # Corresponds to the JSON property `stringValue` + # @return [String] + attr_accessor :string_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @formula_value = args[:formula_value] if args.key?(:formula_value) + @error_value = args[:error_value] if args.key?(:error_value) + @bool_value = args[:bool_value] if args.key?(:bool_value) + @number_value = args[:number_value] if args.key?(:number_value) + @string_value = args[:string_value] if args.key?(:string_value) + end + end + + # The reply for batch updating a spreadsheet. + class BatchUpdateSpreadsheetResponse + include Google::Apis::Core::Hashable + + # The spreadsheet the updates were applied to. + # Corresponds to the JSON property `spreadsheetId` + # @return [String] + attr_accessor :spreadsheet_id + + # The reply of the updates. This maps 1:1 with the updates, although + # replies to some requests may be empty. + # Corresponds to the JSON property `replies` + # @return [Array] + attr_accessor :replies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + @replies = args[:replies] if args.key?(:replies) + end + end + + # A rule that applies a gradient color scale format, based on + # the interpolation points listed. The format of a cell will vary + # based on its contents as compared to the values of the interpolation + # points. + class GradientRule + include Google::Apis::Core::Hashable + + # A single interpolation point a gradient conditional format. + # These pin the gradient color scale according to the color, + # type and value chosen. + # Corresponds to the JSON property `maxpoint` + # @return [Google::Apis::SheetsV4::InterpolationPoint] + attr_accessor :maxpoint + + # A single interpolation point a gradient conditional format. + # These pin the gradient color scale according to the color, + # type and value chosen. + # Corresponds to the JSON property `midpoint` + # @return [Google::Apis::SheetsV4::InterpolationPoint] + attr_accessor :midpoint + + # A single interpolation point a gradient conditional format. + # These pin the gradient color scale according to the color, + # type and value chosen. + # Corresponds to the JSON property `minpoint` + # @return [Google::Apis::SheetsV4::InterpolationPoint] + attr_accessor :minpoint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @maxpoint = args[:maxpoint] if args.key?(:maxpoint) + @midpoint = args[:midpoint] if args.key?(:midpoint) + @minpoint = args[:minpoint] if args.key?(:minpoint) + end + end + + # Moves data from the source to the destination. + class CutPasteRequest + include Google::Apis::Core::Hashable + + # What kind of data to paste. All the source data will be cut, regardless + # of what is pasted. + # Corresponds to the JSON property `pasteType` + # @return [String] + attr_accessor :paste_type + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `source` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :source + + # A coordinate in a sheet. + # All indexes are zero-based. + # Corresponds to the JSON property `destination` + # @return [Google::Apis::SheetsV4::GridCoordinate] + attr_accessor :destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @paste_type = args[:paste_type] if args.key?(:paste_type) + @source = args[:source] if args.key?(:source) + @destination = args[:destination] if args.key?(:destination) + end + end + + # The location an object is overlaid on top of a grid. + class OverlayPosition + include Google::Apis::Core::Hashable + + # The width of the object, in pixels. Defaults to 600. + # Corresponds to the JSON property `widthPixels` + # @return [Fixnum] + attr_accessor :width_pixels + + # A coordinate in a sheet. + # All indexes are zero-based. + # Corresponds to the JSON property `anchorCell` + # @return [Google::Apis::SheetsV4::GridCoordinate] + attr_accessor :anchor_cell + + # The horizontal offset, in pixels, that the object is offset + # from the anchor cell. + # Corresponds to the JSON property `offsetXPixels` + # @return [Fixnum] + attr_accessor :offset_x_pixels + + # The height of the object, in pixels. Defaults to 371. + # Corresponds to the JSON property `heightPixels` + # @return [Fixnum] + attr_accessor :height_pixels + + # The vertical offset, in pixels, that the object is offset + # from the anchor cell. + # Corresponds to the JSON property `offsetYPixels` + # @return [Fixnum] + attr_accessor :offset_y_pixels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @width_pixels = args[:width_pixels] if args.key?(:width_pixels) + @anchor_cell = args[:anchor_cell] if args.key?(:anchor_cell) + @offset_x_pixels = args[:offset_x_pixels] if args.key?(:offset_x_pixels) + @height_pixels = args[:height_pixels] if args.key?(:height_pixels) + @offset_y_pixels = args[:offset_y_pixels] if args.key?(:offset_y_pixels) + end + end + + # Fills in more data based on existing data. + class AutoFillRequest + include Google::Apis::Core::Hashable + + # True if we should generate data with the "alternate" series. + # This differs based on the type and amount of source data. + # Corresponds to the JSON property `useAlternateSeries` + # @return [Boolean] + attr_accessor :use_alternate_series + alias_method :use_alternate_series?, :use_alternate_series + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + # A combination of a source range and how to extend that source. + # Corresponds to the JSON property `sourceAndDestination` + # @return [Google::Apis::SheetsV4::SourceAndDestination] + attr_accessor :source_and_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @use_alternate_series = args[:use_alternate_series] if args.key?(:use_alternate_series) + @range = args[:range] if args.key?(:range) + @source_and_destination = args[:source_and_destination] if args.key?(:source_and_destination) + end + end + + # A pie chart. + class PieChartSpec + include Google::Apis::Core::Hashable + + # Where the legend of the pie chart should be drawn. + # Corresponds to the JSON property `legendPosition` + # @return [String] + attr_accessor :legend_position + + # The data included in a domain or series. + # Corresponds to the JSON property `series` + # @return [Google::Apis::SheetsV4::ChartData] + attr_accessor :series + + # The size of the hole in the pie chart. + # Corresponds to the JSON property `pieHole` + # @return [Float] + attr_accessor :pie_hole + + # True if the pie is three dimensional. + # Corresponds to the JSON property `threeDimensional` + # @return [Boolean] + attr_accessor :three_dimensional + alias_method :three_dimensional?, :three_dimensional + + # The data included in a domain or series. + # Corresponds to the JSON property `domain` + # @return [Google::Apis::SheetsV4::ChartData] + attr_accessor :domain + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @legend_position = args[:legend_position] if args.key?(:legend_position) + @series = args[:series] if args.key?(:series) + @pie_hole = args[:pie_hole] if args.key?(:pie_hole) + @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional) + @domain = args[:domain] if args.key?(:domain) + end + end + + # Updates properties of the sheet with the specified + # sheetId. + # It is an error to specify read only fields in the field mask. + class UpdateSheetPropertiesRequest + include Google::Apis::Core::Hashable + + # The fields that should be updated. At least one field must be specified. + # The root `properties` is implied and should not be specified. + # A single `"*"` can be used as short-hand for listing every field. + # Corresponds to the JSON property `fields` + # @return [String] + attr_accessor :fields + + # Properties of a sheet. + # Corresponds to the JSON property `properties` + # @return [Google::Apis::SheetsV4::SheetProperties] + attr_accessor :properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fields = args[:fields] if args.key?(:fields) + @properties = args[:properties] if args.key?(:properties) + end + end + + # A rule that may or may not match, depending on the condition. + class BooleanRule + include Google::Apis::Core::Hashable + + # A condition that can evaluate to true or false. + # BooleanConditions are used by conditional formatting, + # data validation, and the criteria in filters. + # Corresponds to the JSON property `condition` + # @return [Google::Apis::SheetsV4::BooleanCondition] + attr_accessor :condition + + # The format of a cell. + # Corresponds to the JSON property `format` + # @return [Google::Apis::SheetsV4::CellFormat] + attr_accessor :format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @format = args[:format] if args.key?(:format) + end + end + + # Appends rows or columns to the end of a sheet. + class AppendDimensionRequest + include Google::Apis::Core::Hashable + + # The sheet to append rows or columns to. + # Corresponds to the JSON property `sheetId` + # @return [Fixnum] + attr_accessor :sheet_id + + # The number of rows or columns to append. + # Corresponds to the JSON property `length` + # @return [Fixnum] + attr_accessor :length + + # Whether rows or columns should be appended. + # Corresponds to the JSON property `dimension` + # @return [String] + attr_accessor :dimension + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sheet_id = args[:sheet_id] if args.key?(:sheet_id) + @length = args[:length] if args.key?(:length) + @dimension = args[:dimension] if args.key?(:dimension) + end + end + + # Adds a filter view. + class AddFilterViewRequest + include Google::Apis::Core::Hashable + + # A filter view. + # Corresponds to the JSON property `filter` + # @return [Google::Apis::SheetsV4::FilterView] + attr_accessor :filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + end + end + + # Properties of a grid. + class GridProperties + include Google::Apis::Core::Hashable + + # The number of rows in the grid. + # Corresponds to the JSON property `rowCount` + # @return [Fixnum] + attr_accessor :row_count + + # The number of columns in the grid. + # Corresponds to the JSON property `columnCount` + # @return [Fixnum] + attr_accessor :column_count + + # The number of rows that are frozen in the grid. + # Corresponds to the JSON property `frozenRowCount` + # @return [Fixnum] + attr_accessor :frozen_row_count + + # The number of columns that are frozen in the grid. + # Corresponds to the JSON property `frozenColumnCount` + # @return [Fixnum] + attr_accessor :frozen_column_count + + # True if the grid isn't showing gridlines in the UI. + # Corresponds to the JSON property `hideGridlines` + # @return [Boolean] + attr_accessor :hide_gridlines + alias_method :hide_gridlines?, :hide_gridlines + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @row_count = args[:row_count] if args.key?(:row_count) + @column_count = args[:column_count] if args.key?(:column_count) + @frozen_row_count = args[:frozen_row_count] if args.key?(:frozen_row_count) + @frozen_column_count = args[:frozen_column_count] if args.key?(:frozen_column_count) + @hide_gridlines = args[:hide_gridlines] if args.key?(:hide_gridlines) + end + end + + # Removes the named range with the given ID from the spreadsheet. + class DeleteNamedRangeRequest + include Google::Apis::Core::Hashable + + # The ID of the named range to delete. + # Corresponds to the JSON property `namedRangeId` + # @return [String] + attr_accessor :named_range_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @named_range_id = args[:named_range_id] if args.key?(:named_range_id) + end + end + + # Adds a chart to a sheet in the spreadsheet. + class AddChartRequest + include Google::Apis::Core::Hashable + + # A chart embedded in a sheet. + # Corresponds to the JSON property `chart` + # @return [Google::Apis::SheetsV4::EmbeddedChart] + attr_accessor :chart + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @chart = args[:chart] if args.key?(:chart) + end + end + + # Sets a data validation rule to every cell in the range. + # To clear validation in a range, call this with no rule specified. + class SetDataValidationRequest + include Google::Apis::Core::Hashable + + # A data validation rule. + # Corresponds to the JSON property `rule` + # @return [Google::Apis::SheetsV4::DataValidationRule] + attr_accessor :rule + + # A range on a sheet. + # All indexes are zero-based. + # Indexes are half open, e.g the start index is inclusive + # and the end index is exclusive -- [start_index, end_index). + # Missing indexes indicate the range is unbounded on that side. + # For example, if "Sheet1" is grid ID 0, then: + # Sheet1!A1:A1 == sheet_id: 0, + # start_row_index: 0, end_row_index: 1, + # start_column_index: 0, end_column_index: 1 + # Sheet1!A3:B4 == sheet_id: 0, + # start_row_index: 2, end_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2 + # Sheet1!A5:B == sheet_id: 0, + # start_row_index: 4, + # start_column_index: 0, end_column_index: 2 + # Sheet1 == sheet_id:0 + # The start index must always be less than or equal to the end index. + # If the start index equals the end index, then the range is empty. + # Empty ranges are typically not meaningful and are usually rendered in the + # UI as `#REF!`. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::GridRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rule = args[:rule] if args.key?(:rule) + @range = args[:range] if args.key?(:range) + end + end + + # A single kind of update to apply to a spreadsheet. + class Request + include Google::Apis::Core::Hashable + + # Update an embedded object's position (such as a moving or resizing a + # chart or image). + # Corresponds to the JSON property `updateEmbeddedObjectPosition` + # @return [Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest] + attr_accessor :update_embedded_object_position + + # Removes the named range with the given ID from the spreadsheet. + # Corresponds to the JSON property `deleteNamedRange` + # @return [Google::Apis::SheetsV4::DeleteNamedRangeRequest] + attr_accessor :delete_named_range + + # Updates properties of the named range with the specified + # namedRangeId. + # It is an error to specify read only fields in the field mask. + # Corresponds to the JSON property `updateNamedRange` + # @return [Google::Apis::SheetsV4::UpdateNamedRangeRequest] + attr_accessor :update_named_range + + # Adds a filter view. + # Corresponds to the JSON property `addFilterView` + # @return [Google::Apis::SheetsV4::AddFilterViewRequest] + attr_accessor :add_filter_view + + # Updates properties of a spreadsheet. + # It is an error to specify read only fields in the field mask. + # Corresponds to the JSON property `updateSpreadsheetProperties` + # @return [Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest] + attr_accessor :update_spreadsheet_properties + + # Appends rows or columns to the end of a sheet. + # Corresponds to the JSON property `appendDimension` + # @return [Google::Apis::SheetsV4::AppendDimensionRequest] + attr_accessor :append_dimension + + # Unmerges cells in the given range. + # Corresponds to the JSON property `unmergeCells` + # @return [Google::Apis::SheetsV4::UnmergeCellsRequest] + attr_accessor :unmerge_cells + + # Updates an existing protected range with the specified + # protectedRangeId. + # Corresponds to the JSON property `updateProtectedRange` + # @return [Google::Apis::SheetsV4::UpdateProtectedRangeRequest] + attr_accessor :update_protected_range + + # Deletes a particular filter view. + # Corresponds to the JSON property `deleteFilterView` + # @return [Google::Apis::SheetsV4::DeleteFilterViewRequest] + attr_accessor :delete_filter_view + + # Clears the basic filter, if any exists on the sheet. + # Corresponds to the JSON property `clearBasicFilter` + # @return [Google::Apis::SheetsV4::ClearBasicFilterRequest] + attr_accessor :clear_basic_filter + + # Sorts data in rows based on a sort order per column. + # Corresponds to the JSON property `sortRange` + # @return [Google::Apis::SheetsV4::SortRangeRequest] + attr_accessor :sort_range + + # Updates all cells in the range to the values in the given Cell object. + # Only the fields listed in the fields field are updated; others are + # unchanged. + # If writing a cell with a formula, the formula's ranges will automatically + # increment for each field in the range. + # For example, if writing a cell with formula `=A1` into range B2:C4, + # B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`, + # C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`. + # To keep the formula's ranges static, use the `$` indicator. + # For example, using the formula was `=$A$1`, neither + # the row nor column would increment. + # Corresponds to the JSON property `repeatCell` + # @return [Google::Apis::SheetsV4::RepeatCellRequest] + attr_accessor :repeat_cell + + # Sets a data validation rule to every cell in the range. + # To clear validation in a range, call this with no rule specified. + # Corresponds to the JSON property `setDataValidation` + # @return [Google::Apis::SheetsV4::SetDataValidationRequest] + attr_accessor :set_data_validation + + # Updates all cells in a range with new data. + # Corresponds to the JSON property `updateCells` + # @return [Google::Apis::SheetsV4::UpdateCellsRequest] + attr_accessor :update_cells + + # Adds a new sheet. + # When a sheet is added at a given index, + # all subsequent sheets' indexes are incremented. + # To add an object sheet, use AddChartRequest instead. + # Corresponds to the JSON property `addSheet` + # @return [Google::Apis::SheetsV4::AddSheetRequest] + attr_accessor :add_sheet + + # Updates properties of the filter view. + # Corresponds to the JSON property `updateFilterView` + # @return [Google::Apis::SheetsV4::UpdateFilterViewRequest] + attr_accessor :update_filter_view + + # Updates properties of the sheet with the specified + # sheetId. + # It is an error to specify read only fields in the field mask. + # Corresponds to the JSON property `updateSheetProperties` + # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest] + attr_accessor :update_sheet_properties + + # Updates properties of dimensions within the specified range. + # It is an error to specify read only fields in the field mask. + # Corresponds to the JSON property `updateDimensionProperties` + # @return [Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest] + attr_accessor :update_dimension_properties + + # Deletes the requested sheet. + # Corresponds to the JSON property `deleteSheet` + # @return [Google::Apis::SheetsV4::DeleteSheetRequest] + attr_accessor :delete_sheet + + # Finds and replaces data in cells over a range, sheet, or all sheets. + # Corresponds to the JSON property `findReplace` + # @return [Google::Apis::SheetsV4::FindReplaceRequest] + attr_accessor :find_replace + + # Adds a new protected range. + # Corresponds to the JSON property `addProtectedRange` + # @return [Google::Apis::SheetsV4::AddProtectedRangeRequest] + attr_accessor :add_protected_range + + # Deletes the protected range with the given id. + # Corresponds to the JSON property `deleteProtectedRange` + # @return [Google::Apis::SheetsV4::DeleteProtectedRangeRequest] + attr_accessor :delete_protected_range + + # Updates a conditional format rule at the given index, + # or moves a conditional format rule to another index. + # Corresponds to the JSON property `updateConditionalFormatRule` + # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest] + attr_accessor :update_conditional_format_rule + + # Sets the basic filter associated with a sheet. + # Corresponds to the JSON property `setBasicFilter` + # @return [Google::Apis::SheetsV4::SetBasicFilterRequest] + attr_accessor :set_basic_filter + + # Merges all cells in the range. + # Corresponds to the JSON property `mergeCells` + # @return [Google::Apis::SheetsV4::MergeCellsRequest] + attr_accessor :merge_cells + + # Adds a chart to a sheet in the spreadsheet. + # Corresponds to the JSON property `addChart` + # @return [Google::Apis::SheetsV4::AddChartRequest] + attr_accessor :add_chart + + # Deletes a conditional format rule at the given index. + # All subsequent rules' indexes are decremented. + # Corresponds to the JSON property `deleteConditionalFormatRule` + # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest] + attr_accessor :delete_conditional_format_rule + + # Updates a chart's specifications. + # (This does not move or resize a chart. To move or resize a chart, use + # UpdateEmbeddedObjectPositionRequest.) + # Corresponds to the JSON property `updateChartSpec` + # @return [Google::Apis::SheetsV4::UpdateChartSpecRequest] + attr_accessor :update_chart_spec + + # Deletes the dimensions from the sheet. + # Corresponds to the JSON property `deleteDimension` + # @return [Google::Apis::SheetsV4::DeleteDimensionRequest] + attr_accessor :delete_dimension + + # Deletes the embedded object with the given ID. + # Corresponds to the JSON property `deleteEmbeddedObject` + # @return [Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest] + attr_accessor :delete_embedded_object + + # Inserts data into the spreadsheet starting at the specified coordinate. + # Corresponds to the JSON property `pasteData` + # @return [Google::Apis::SheetsV4::PasteDataRequest] + attr_accessor :paste_data + + # Adds a new conditional format rule at the given index. + # All subsequent rules' indexes are incremented. + # Corresponds to the JSON property `addConditionalFormatRule` + # @return [Google::Apis::SheetsV4::AddConditionalFormatRuleRequest] + attr_accessor :add_conditional_format_rule + + # Updates the borders of a range. + # If a field is not set in the request, that means the border remains as-is. + # For example, with two subsequent UpdateBordersRequest: + # 1. range: A1:A5 `` top: RED, bottom: WHITE `` + # 2. range: A1:A5 `` left: BLUE `` + # That would result in A1:A5 having a borders of + # `` top: RED, bottom: WHITE, left: BLUE ``. + # If you want to clear a border, explicitly set the style to + # NONE. + # Corresponds to the JSON property `updateBorders` + # @return [Google::Apis::SheetsV4::UpdateBordersRequest] + attr_accessor :update_borders + + # Automatically resizes one or more dimensions based on the contents + # of the cells in that dimension. + # Corresponds to the JSON property `autoResizeDimensions` + # @return [Google::Apis::SheetsV4::AutoResizeDimensionsRequest] + attr_accessor :auto_resize_dimensions + + # Duplicates the contents of a sheet. + # Corresponds to the JSON property `duplicateSheet` + # @return [Google::Apis::SheetsV4::DuplicateSheetRequest] + attr_accessor :duplicate_sheet + + # Duplicates a particular filter view. + # Corresponds to the JSON property `duplicateFilterView` + # @return [Google::Apis::SheetsV4::DuplicateFilterViewRequest] + attr_accessor :duplicate_filter_view + + # Moves data from the source to the destination. + # Corresponds to the JSON property `cutPaste` + # @return [Google::Apis::SheetsV4::CutPasteRequest] + attr_accessor :cut_paste + + # Adds new cells to the last row with data in a sheet, + # inserting new rows into the sheet if necessary. + # Corresponds to the JSON property `appendCells` + # @return [Google::Apis::SheetsV4::AppendCellsRequest] + attr_accessor :append_cells + + # Adds a named range to the spreadsheet. + # Corresponds to the JSON property `addNamedRange` + # @return [Google::Apis::SheetsV4::AddNamedRangeRequest] + attr_accessor :add_named_range + + # Fills in more data based on existing data. + # Corresponds to the JSON property `autoFill` + # @return [Google::Apis::SheetsV4::AutoFillRequest] + attr_accessor :auto_fill + + # Moves one or more rows or columns. + # Corresponds to the JSON property `moveDimension` + # @return [Google::Apis::SheetsV4::MoveDimensionRequest] + attr_accessor :move_dimension + + # Splits a column of text into multiple columns, + # based on a delimiter in each cell. + # Corresponds to the JSON property `textToColumns` + # @return [Google::Apis::SheetsV4::TextToColumnsRequest] + attr_accessor :text_to_columns + + # Inserts rows or columns in a sheet at a particular index. + # Corresponds to the JSON property `insertDimension` + # @return [Google::Apis::SheetsV4::InsertDimensionRequest] + attr_accessor :insert_dimension + + # Copies data from the source to the destination. + # Corresponds to the JSON property `copyPaste` + # @return [Google::Apis::SheetsV4::CopyPasteRequest] + attr_accessor :copy_paste + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position) + @delete_named_range = args[:delete_named_range] if args.key?(:delete_named_range) + @update_named_range = args[:update_named_range] if args.key?(:update_named_range) + @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view) + @update_spreadsheet_properties = args[:update_spreadsheet_properties] if args.key?(:update_spreadsheet_properties) + @append_dimension = args[:append_dimension] if args.key?(:append_dimension) + @unmerge_cells = args[:unmerge_cells] if args.key?(:unmerge_cells) + @update_protected_range = args[:update_protected_range] if args.key?(:update_protected_range) + @delete_filter_view = args[:delete_filter_view] if args.key?(:delete_filter_view) + @clear_basic_filter = args[:clear_basic_filter] if args.key?(:clear_basic_filter) + @sort_range = args[:sort_range] if args.key?(:sort_range) + @repeat_cell = args[:repeat_cell] if args.key?(:repeat_cell) + @set_data_validation = args[:set_data_validation] if args.key?(:set_data_validation) + @update_cells = args[:update_cells] if args.key?(:update_cells) + @add_sheet = args[:add_sheet] if args.key?(:add_sheet) + @update_filter_view = args[:update_filter_view] if args.key?(:update_filter_view) + @update_sheet_properties = args[:update_sheet_properties] if args.key?(:update_sheet_properties) + @update_dimension_properties = args[:update_dimension_properties] if args.key?(:update_dimension_properties) + @delete_sheet = args[:delete_sheet] if args.key?(:delete_sheet) + @find_replace = args[:find_replace] if args.key?(:find_replace) + @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range) + @delete_protected_range = args[:delete_protected_range] if args.key?(:delete_protected_range) + @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule) + @set_basic_filter = args[:set_basic_filter] if args.key?(:set_basic_filter) + @merge_cells = args[:merge_cells] if args.key?(:merge_cells) + @add_chart = args[:add_chart] if args.key?(:add_chart) + @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule) + @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec) + @delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension) + @delete_embedded_object = args[:delete_embedded_object] if args.key?(:delete_embedded_object) + @paste_data = args[:paste_data] if args.key?(:paste_data) + @add_conditional_format_rule = args[:add_conditional_format_rule] if args.key?(:add_conditional_format_rule) + @update_borders = args[:update_borders] if args.key?(:update_borders) + @auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions) + @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet) + @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view) + @cut_paste = args[:cut_paste] if args.key?(:cut_paste) + @append_cells = args[:append_cells] if args.key?(:append_cells) + @add_named_range = args[:add_named_range] if args.key?(:add_named_range) + @auto_fill = args[:auto_fill] if args.key?(:auto_fill) + @move_dimension = args[:move_dimension] if args.key?(:move_dimension) + @text_to_columns = args[:text_to_columns] if args.key?(:text_to_columns) + @insert_dimension = args[:insert_dimension] if args.key?(:insert_dimension) + @copy_paste = args[:copy_paste] if args.key?(:copy_paste) + end + end + + # The response when retrieving more than one range of values in a spreadsheet. + class BatchGetValuesResponse + include Google::Apis::Core::Hashable + + # The requested values. The order of the ValueRanges is the same as the + # order of the requested ranges. + # Corresponds to the JSON property `valueRanges` + # @return [Array] + attr_accessor :value_ranges + + # The id of the spreadsheet to retrieve data from. + # Corresponds to the JSON property `spreadsheetId` + # @return [String] + attr_accessor :spreadsheet_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value_ranges = args[:value_ranges] if args.key?(:value_ranges) + @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id) + end + end + + # Inserts rows or columns in a sheet at a particular index. + class InsertDimensionRequest + include Google::Apis::Core::Hashable + + # Whether dimension properties should be extended from the dimensions + # before or after the newly inserted dimensions. + # True to inherit from the dimensions before (in which case the start + # index must be greater than 0), and false to inherit from the dimensions + # after. + # For example, if row index 0 has red background and row index 1 + # has a green background, then inserting 2 rows at index 1 can inherit + # either the green or red background. If `inheritFromBefore` is true, + # the two new rows will be red (because the row before the insertion point + # was red), whereas if `inheritFromBefore` is false, the two new rows will + # be green (because the rows after the insertion point were green). + # Corresponds to the JSON property `inheritFromBefore` + # @return [Boolean] + attr_accessor :inherit_from_before + alias_method :inherit_from_before?, :inherit_from_before + + # A range along a single dimension on a sheet. + # All indexes are zero-based. + # Indexes are half open: the start index is inclusive + # and the end index is exclusive. + # Missing indexes indicate the range is unbounded on that side. + # Corresponds to the JSON property `range` + # @return [Google::Apis::SheetsV4::DimensionRange] + attr_accessor :range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inherit_from_before = args[:inherit_from_before] if args.key?(:inherit_from_before) + @range = args[:range] if args.key?(:range) + end + end + + # Deletes the embedded object with the given ID. + class DeleteEmbeddedObjectRequest + include Google::Apis::Core::Hashable + + # The ID of the embedded object to delete. + # Corresponds to the JSON property `objectId` + # @return [Fixnum] + attr_accessor :object_id_prop + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) + end + end + + # The result of deleting a conditional format rule. + class DeleteConditionalFormatRuleResponse + include Google::Apis::Core::Hashable + + # A rule describing a conditional format. + # Corresponds to the JSON property `rule` + # @return [Google::Apis::SheetsV4::ConditionalFormatRule] + attr_accessor :rule + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rule = args[:rule] if args.key?(:rule) + end + end + end + end +end diff --git a/generated/google/apis/sheets_v4/representations.rb b/generated/google/apis/sheets_v4/representations.rb new file mode 100644 index 000000000..3a84ec382 --- /dev/null +++ b/generated/google/apis/sheets_v4/representations.rb @@ -0,0 +1,2070 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SheetsV4 + + class AddNamedRangeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateProtectedRangeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Padding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MergeCellsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddSheetResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotGroupValueMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateEmbeddedObjectPositionResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateConditionalFormatRuleRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TextFormat + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateChartSpecRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GridCoordinate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteFilterViewRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchUpdateValuesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateNamedRangeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateValuesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SpreadsheetProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CellData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UnmergeCellsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TextToColumnsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddProtectedRangeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BooleanCondition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteProtectedRangeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BasicChartDomain + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DimensionRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Response + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddConditionalFormatRuleRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FilterView + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SortRangeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TextFormatRun + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateFilterViewRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateConditionalFormatRuleResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FilterCriteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteDimensionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotTable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DataValidationRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateSpreadsheetPropertiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ChartSourceRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchUpdateValuesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClearBasicFilterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConditionalFormatRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateBordersRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotFilterCriteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Borders + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EmbeddedChart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Color + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddSheetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddProtectedRangeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ValueRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FindReplaceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CellFormat + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MoveDimensionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BasicChartAxis + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotGroupSortValueBucket + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DimensionProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EmbeddedObjectPosition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InterpolationPoint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ErrorValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DuplicateFilterViewRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchUpdateSpreadsheetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SheetProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProtectedRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteConditionalFormatRuleRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ChartSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SourceAndDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ConditionValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PasteDataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FindReplaceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SortSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CopySheetToAnotherSpreadsheetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NumberFormat + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateDimensionPropertiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Editors + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Spreadsheet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GridData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BasicFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DuplicateSheetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddFilterViewResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DuplicateSheetResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Border + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddNamedRangeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddChartResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AppendCellsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RowData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BasicChartSeries + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepeatCellRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BasicChartSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NamedRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetBasicFilterRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateEmbeddedObjectPositionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AutoResizeDimensionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DuplicateFilterViewResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PivotGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GridRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteSheetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ChartData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Sheet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CopyPasteRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateCellsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExtendedValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchUpdateSpreadsheetResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GradientRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CutPasteRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OverlayPosition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AutoFillRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PieChartSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpdateSheetPropertiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BooleanRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AppendDimensionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddFilterViewRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GridProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteNamedRangeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddChartRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetDataValidationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Request + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchGetValuesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InsertDimensionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteEmbeddedObjectRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeleteConditionalFormatRuleResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AddNamedRangeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :named_range, as: 'namedRange', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation + + end + end + + class UpdateProtectedRangeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :protected_range, as: 'protectedRange', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation + + property :fields, as: 'fields' + end + end + + class Padding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :right, as: 'right' + property :left, as: 'left' + property :top, as: 'top' + property :bottom, as: 'bottom' + end + end + + class MergeCellsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :merge_type, as: 'mergeType' + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class AddSheetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation + + end + end + + class PivotGroupValueMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation + + property :collapsed, as: 'collapsed' + end + end + + class UpdateEmbeddedObjectPositionResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation + + end + end + + class UpdateConditionalFormatRuleRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + property :rule, as: 'rule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + + property :index, as: 'index' + property :new_index, as: 'newIndex' + end + end + + class TextFormat + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bold, as: 'bold' + property :italic, as: 'italic' + property :foreground_color, as: 'foregroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + property :font_family, as: 'fontFamily' + property :strikethrough, as: 'strikethrough' + property :font_size, as: 'fontSize' + property :underline, as: 'underline' + end + end + + class UpdateChartSpecRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :chart_id, as: 'chartId' + property :spec, as: 'spec', class: Google::Apis::SheetsV4::ChartSpec, decorator: Google::Apis::SheetsV4::ChartSpec::Representation + + end + end + + class GridCoordinate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + property :row_index, as: 'rowIndex' + property :column_index, as: 'columnIndex' + end + end + + class DeleteFilterViewRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter_id, as: 'filterId' + end + end + + class BatchUpdateValuesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :total_updated_sheets, as: 'totalUpdatedSheets' + property :total_updated_columns, as: 'totalUpdatedColumns' + collection :responses, as: 'responses', class: Google::Apis::SheetsV4::UpdateValuesResponse, decorator: Google::Apis::SheetsV4::UpdateValuesResponse::Representation + + property :total_updated_cells, as: 'totalUpdatedCells' + property :spreadsheet_id, as: 'spreadsheetId' + property :total_updated_rows, as: 'totalUpdatedRows' + end + end + + class UpdateNamedRangeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fields, as: 'fields' + property :named_range, as: 'namedRange', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation + + end + end + + class UpdateValuesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :updated_range, as: 'updatedRange' + property :updated_columns, as: 'updatedColumns' + property :spreadsheet_id, as: 'spreadsheetId' + property :updated_rows, as: 'updatedRows' + property :updated_cells, as: 'updatedCells' + end + end + + class SpreadsheetProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :time_zone, as: 'timeZone' + property :auto_recalc, as: 'autoRecalc' + property :locale, as: 'locale' + property :title, as: 'title' + property :default_format, as: 'defaultFormat', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation + + end + end + + class CellData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hyperlink, as: 'hyperlink' + property :effective_format, as: 'effectiveFormat', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation + + property :note, as: 'note' + property :formatted_value, as: 'formattedValue' + property :user_entered_value, as: 'userEnteredValue', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation + + property :data_validation, as: 'dataValidation', class: Google::Apis::SheetsV4::DataValidationRule, decorator: Google::Apis::SheetsV4::DataValidationRule::Representation + + property :user_entered_format, as: 'userEnteredFormat', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation + + property :pivot_table, as: 'pivotTable', class: Google::Apis::SheetsV4::PivotTable, decorator: Google::Apis::SheetsV4::PivotTable::Representation + + collection :text_format_runs, as: 'textFormatRuns', class: Google::Apis::SheetsV4::TextFormatRun, decorator: Google::Apis::SheetsV4::TextFormatRun::Representation + + property :effective_value, as: 'effectiveValue', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation + + end + end + + class UnmergeCellsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class TextToColumnsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :delimiter, as: 'delimiter' + property :delimiter_type, as: 'delimiterType' + end + end + + class AddProtectedRangeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :protected_range, as: 'protectedRange', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation + + end + end + + class BooleanCondition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values', class: Google::Apis::SheetsV4::ConditionValue, decorator: Google::Apis::SheetsV4::ConditionValue::Representation + + property :type, as: 'type' + end + end + + class DeleteProtectedRangeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :protected_range_id, as: 'protectedRangeId' + end + end + + class BasicChartDomain + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation + + end + end + + class DimensionRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + property :end_index, as: 'endIndex' + property :start_index, as: 'startIndex' + property :dimension, as: 'dimension' + end + end + + class Response + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update_embedded_object_position, as: 'updateEmbeddedObjectPosition', class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse, decorator: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse::Representation + + property :add_filter_view, as: 'addFilterView', class: Google::Apis::SheetsV4::AddFilterViewResponse, decorator: Google::Apis::SheetsV4::AddFilterViewResponse::Representation + + property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetResponse, decorator: Google::Apis::SheetsV4::AddSheetResponse::Representation + + property :find_replace, as: 'findReplace', class: Google::Apis::SheetsV4::FindReplaceResponse, decorator: Google::Apis::SheetsV4::FindReplaceResponse::Representation + + property :add_protected_range, as: 'addProtectedRange', class: Google::Apis::SheetsV4::AddProtectedRangeResponse, decorator: Google::Apis::SheetsV4::AddProtectedRangeResponse::Representation + + property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse::Representation + + property :add_chart, as: 'addChart', class: Google::Apis::SheetsV4::AddChartResponse, decorator: Google::Apis::SheetsV4::AddChartResponse::Representation + + property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation + + property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetResponse, decorator: Google::Apis::SheetsV4::DuplicateSheetResponse::Representation + + property :duplicate_filter_view, as: 'duplicateFilterView', class: Google::Apis::SheetsV4::DuplicateFilterViewResponse, decorator: Google::Apis::SheetsV4::DuplicateFilterViewResponse::Representation + + property :add_named_range, as: 'addNamedRange', class: Google::Apis::SheetsV4::AddNamedRangeResponse, decorator: Google::Apis::SheetsV4::AddNamedRangeResponse::Representation + + end + end + + class AddConditionalFormatRuleRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rule, as: 'rule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + + property :index, as: 'index' + end + end + + class FilterView + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :title, as: 'title' + property :named_range_id, as: 'namedRangeId' + collection :sort_specs, as: 'sortSpecs', class: Google::Apis::SheetsV4::SortSpec, decorator: Google::Apis::SheetsV4::SortSpec::Representation + + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + hash :criteria, as: 'criteria', class: Google::Apis::SheetsV4::FilterCriteria, decorator: Google::Apis::SheetsV4::FilterCriteria::Representation + + property :filter_view_id, as: 'filterViewId' + end + end + + class SortRangeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + collection :sort_specs, as: 'sortSpecs', class: Google::Apis::SheetsV4::SortSpec, decorator: Google::Apis::SheetsV4::SortSpec::Representation + + end + end + + class TextFormatRun + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start_index, as: 'startIndex' + property :format, as: 'format', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation + + end + end + + class UpdateFilterViewRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation + + property :fields, as: 'fields' + end + end + + class UpdateConditionalFormatRuleResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :old_index, as: 'oldIndex' + property :new_rule, as: 'newRule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + + property :old_rule, as: 'oldRule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + + property :new_index, as: 'newIndex' + end + end + + class FilterCriteria + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation + + collection :hidden_values, as: 'hiddenValues' + end + end + + class DeleteDimensionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :range, as: 'range', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation + + end + end + + class PivotTable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value_layout, as: 'valueLayout' + collection :columns, as: 'columns', class: Google::Apis::SheetsV4::PivotGroup, decorator: Google::Apis::SheetsV4::PivotGroup::Representation + + property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + collection :rows, as: 'rows', class: Google::Apis::SheetsV4::PivotGroup, decorator: Google::Apis::SheetsV4::PivotGroup::Representation + + collection :values, as: 'values', class: Google::Apis::SheetsV4::PivotValue, decorator: Google::Apis::SheetsV4::PivotValue::Representation + + hash :criteria, as: 'criteria', class: Google::Apis::SheetsV4::PivotFilterCriteria, decorator: Google::Apis::SheetsV4::PivotFilterCriteria::Representation + + end + end + + class DataValidationRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation + + property :input_message, as: 'inputMessage' + property :show_custom_ui, as: 'showCustomUi' + property :strict, as: 'strict' + end + end + + class UpdateSpreadsheetPropertiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fields, as: 'fields' + property :properties, as: 'properties', class: Google::Apis::SheetsV4::SpreadsheetProperties, decorator: Google::Apis::SheetsV4::SpreadsheetProperties::Representation + + end + end + + class ChartSourceRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :sources, as: 'sources', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class BatchUpdateValuesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value_input_option, as: 'valueInputOption' + collection :data, as: 'data', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation + + end + end + + class ClearBasicFilterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + end + end + + class ConditionalFormatRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gradient_rule, as: 'gradientRule', class: Google::Apis::SheetsV4::GradientRule, decorator: Google::Apis::SheetsV4::GradientRule::Representation + + property :boolean_rule, as: 'booleanRule', class: Google::Apis::SheetsV4::BooleanRule, decorator: Google::Apis::SheetsV4::BooleanRule::Representation + + collection :ranges, as: 'ranges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class UpdateBordersRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :right, as: 'right', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + property :inner_vertical, as: 'innerVertical', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + property :top, as: 'top', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + property :inner_horizontal, as: 'innerHorizontal', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :bottom, as: 'bottom', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + property :left, as: 'left', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + end + end + + class PivotFilterCriteria + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :visible_values, as: 'visibleValues' + end + end + + class Borders + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :left, as: 'left', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + property :right, as: 'right', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + property :top, as: 'top', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + property :bottom, as: 'bottom', class: Google::Apis::SheetsV4::Border, decorator: Google::Apis::SheetsV4::Border::Representation + + end + end + + class EmbeddedChart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :chart_id, as: 'chartId' + property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation + + property :spec, as: 'spec', class: Google::Apis::SheetsV4::ChartSpec, decorator: Google::Apis::SheetsV4::ChartSpec::Representation + + end + end + + class Color + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :green, as: 'green' + property :blue, as: 'blue' + property :red, as: 'red' + property :alpha, as: 'alpha' + end + end + + class AddSheetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation + + end + end + + class AddProtectedRangeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :protected_range, as: 'protectedRange', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation + + end + end + + class ValueRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values', :class => Array do + include Representable::JSON::Collection + items + end + + property :range, as: 'range' + property :major_dimension, as: 'majorDimension' + end + end + + class FindReplaceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :values_changed, as: 'valuesChanged' + property :rows_changed, as: 'rowsChanged' + property :occurrences_changed, as: 'occurrencesChanged' + property :formulas_changed, as: 'formulasChanged' + property :sheets_changed, as: 'sheetsChanged' + end + end + + class CellFormat + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :horizontal_alignment, as: 'horizontalAlignment' + property :hyperlink_display_type, as: 'hyperlinkDisplayType' + property :borders, as: 'borders', class: Google::Apis::SheetsV4::Borders, decorator: Google::Apis::SheetsV4::Borders::Representation + + property :text_direction, as: 'textDirection' + property :text_format, as: 'textFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation + + property :padding, as: 'padding', class: Google::Apis::SheetsV4::Padding, decorator: Google::Apis::SheetsV4::Padding::Representation + + property :number_format, as: 'numberFormat', class: Google::Apis::SheetsV4::NumberFormat, decorator: Google::Apis::SheetsV4::NumberFormat::Representation + + property :wrap_strategy, as: 'wrapStrategy' + property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + property :vertical_alignment, as: 'verticalAlignment' + end + end + + class MoveDimensionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source, as: 'source', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation + + property :destination_index, as: 'destinationIndex' + end + end + + class BasicChartAxis + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :position, as: 'position' + property :title, as: 'title' + property :format, as: 'format', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation + + end + end + + class PivotGroupSortValueBucket + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :buckets, as: 'buckets', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation + + property :values_index, as: 'valuesIndex' + end + end + + class DimensionProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hidden_by_user, as: 'hiddenByUser' + property :pixel_size, as: 'pixelSize' + property :hidden_by_filter, as: 'hiddenByFilter' + end + end + + class EmbeddedObjectPosition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + property :overlay_position, as: 'overlayPosition', class: Google::Apis::SheetsV4::OverlayPosition, decorator: Google::Apis::SheetsV4::OverlayPosition::Representation + + property :new_sheet, as: 'newSheet' + end + end + + class InterpolationPoint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + property :type, as: 'type' + end + end + + class ErrorValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :message, as: 'message' + end + end + + class DuplicateFilterViewRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter_id, as: 'filterId' + end + end + + class BatchUpdateSpreadsheetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :requests, as: 'requests', class: Google::Apis::SheetsV4::Request, decorator: Google::Apis::SheetsV4::Request::Representation + + end + end + + class SheetProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :title, as: 'title' + property :index, as: 'index' + property :hidden, as: 'hidden' + property :grid_properties, as: 'gridProperties', class: Google::Apis::SheetsV4::GridProperties, decorator: Google::Apis::SheetsV4::GridProperties::Representation + + property :sheet_id, as: 'sheetId' + property :right_to_left, as: 'rightToLeft' + property :tab_color, as: 'tabColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + property :sheet_type, as: 'sheetType' + end + end + + class ProtectedRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :unprotected_ranges, as: 'unprotectedRanges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :description, as: 'description' + property :named_range_id, as: 'namedRangeId' + property :requesting_user_can_edit, as: 'requestingUserCanEdit' + property :editors, as: 'editors', class: Google::Apis::SheetsV4::Editors, decorator: Google::Apis::SheetsV4::Editors::Representation + + property :protected_range_id, as: 'protectedRangeId' + property :warning_only, as: 'warningOnly' + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class DeleteConditionalFormatRuleRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + property :index, as: 'index' + end + end + + class ChartSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hidden_dimension_strategy, as: 'hiddenDimensionStrategy' + property :basic_chart, as: 'basicChart', class: Google::Apis::SheetsV4::BasicChartSpec, decorator: Google::Apis::SheetsV4::BasicChartSpec::Representation + + property :title, as: 'title' + property :pie_chart, as: 'pieChart', class: Google::Apis::SheetsV4::PieChartSpec, decorator: Google::Apis::SheetsV4::PieChartSpec::Representation + + end + end + + class SourceAndDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :fill_length, as: 'fillLength' + property :dimension, as: 'dimension' + end + end + + class ConditionValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :relative_date, as: 'relativeDate' + property :user_entered_value, as: 'userEnteredValue' + end + end + + class PasteDataRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data, as: 'data' + property :coordinate, as: 'coordinate', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation + + property :delimiter, as: 'delimiter' + property :type, as: 'type' + property :html, as: 'html' + end + end + + class FindReplaceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :find, as: 'find' + property :replacement, as: 'replacement' + property :search_by_regex, as: 'searchByRegex' + property :sheet_id, as: 'sheetId' + property :all_sheets, as: 'allSheets' + property :match_case, as: 'matchCase' + property :include_formulas, as: 'includeFormulas' + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :match_entire_cell, as: 'matchEntireCell' + end + end + + class SortSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sort_order, as: 'sortOrder' + property :dimension_index, as: 'dimensionIndex' + end + end + + class CopySheetToAnotherSpreadsheetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination_spreadsheet_id, as: 'destinationSpreadsheetId' + end + end + + class NumberFormat + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :pattern, as: 'pattern' + property :type, as: 'type' + end + end + + class UpdateDimensionPropertiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fields, as: 'fields' + property :range, as: 'range', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation + + property :properties, as: 'properties', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation + + end + end + + class Editors + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :users, as: 'users' + collection :groups, as: 'groups' + property :domain_users_can_edit, as: 'domainUsersCanEdit' + end + end + + class Spreadsheet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :spreadsheet_id, as: 'spreadsheetId' + property :properties, as: 'properties', class: Google::Apis::SheetsV4::SpreadsheetProperties, decorator: Google::Apis::SheetsV4::SpreadsheetProperties::Representation + + collection :sheets, as: 'sheets', class: Google::Apis::SheetsV4::Sheet, decorator: Google::Apis::SheetsV4::Sheet::Representation + + collection :named_ranges, as: 'namedRanges', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation + + end + end + + class GridData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :column_metadata, as: 'columnMetadata', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation + + collection :row_data, as: 'rowData', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation + + property :start_row, as: 'startRow' + collection :row_metadata, as: 'rowMetadata', class: Google::Apis::SheetsV4::DimensionProperties, decorator: Google::Apis::SheetsV4::DimensionProperties::Representation + + property :start_column, as: 'startColumn' + end + end + + class PivotValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :formula, as: 'formula' + property :source_column_offset, as: 'sourceColumnOffset' + property :summarize_function, as: 'summarizeFunction' + property :name, as: 'name' + end + end + + class BasicFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :criteria, as: 'criteria', class: Google::Apis::SheetsV4::FilterCriteria, decorator: Google::Apis::SheetsV4::FilterCriteria::Representation + + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + collection :sort_specs, as: 'sortSpecs', class: Google::Apis::SheetsV4::SortSpec, decorator: Google::Apis::SheetsV4::SortSpec::Representation + + end + end + + class DuplicateSheetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source_sheet_id, as: 'sourceSheetId' + property :new_sheet_id, as: 'newSheetId' + property :insert_sheet_index, as: 'insertSheetIndex' + property :new_sheet_name, as: 'newSheetName' + end + end + + class AddFilterViewResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation + + end + end + + class DuplicateSheetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation + + end + end + + class Border + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :style, as: 'style' + property :width, as: 'width' + property :color, as: 'color', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation + + end + end + + class AddNamedRangeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :named_range, as: 'namedRange', class: Google::Apis::SheetsV4::NamedRange, decorator: Google::Apis::SheetsV4::NamedRange::Representation + + end + end + + class AddChartResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :chart, as: 'chart', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation + + end + end + + class AppendCellsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + collection :rows, as: 'rows', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation + + property :fields, as: 'fields' + end + end + + class RowData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values', class: Google::Apis::SheetsV4::CellData, decorator: Google::Apis::SheetsV4::CellData::Representation + + end + end + + class BasicChartSeries + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation + + property :target_axis, as: 'targetAxis' + property :type, as: 'type' + end + end + + class RepeatCellRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cell, as: 'cell', class: Google::Apis::SheetsV4::CellData, decorator: Google::Apis::SheetsV4::CellData::Representation + + property :fields, as: 'fields' + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class BasicChartSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :chart_type, as: 'chartType' + collection :domains, as: 'domains', class: Google::Apis::SheetsV4::BasicChartDomain, decorator: Google::Apis::SheetsV4::BasicChartDomain::Representation + + property :header_count, as: 'headerCount' + collection :series, as: 'series', class: Google::Apis::SheetsV4::BasicChartSeries, decorator: Google::Apis::SheetsV4::BasicChartSeries::Representation + + property :legend_position, as: 'legendPosition' + collection :axis, as: 'axis', class: Google::Apis::SheetsV4::BasicChartAxis, decorator: Google::Apis::SheetsV4::BasicChartAxis::Representation + + end + end + + class NamedRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :named_range_id, as: 'namedRangeId' + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :name, as: 'name' + end + end + + class SetBasicFilterRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter', class: Google::Apis::SheetsV4::BasicFilter, decorator: Google::Apis::SheetsV4::BasicFilter::Representation + + end + end + + class UpdateEmbeddedObjectPositionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :new_position, as: 'newPosition', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation + + property :object_id_prop, as: 'objectId' + property :fields, as: 'fields' + end + end + + class AutoResizeDimensionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimensions, as: 'dimensions', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation + + end + end + + class DuplicateFilterViewResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation + + end + end + + class PivotGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sort_order, as: 'sortOrder' + property :source_column_offset, as: 'sourceColumnOffset' + property :show_totals, as: 'showTotals' + property :value_bucket, as: 'valueBucket', class: Google::Apis::SheetsV4::PivotGroupSortValueBucket, decorator: Google::Apis::SheetsV4::PivotGroupSortValueBucket::Representation + + collection :value_metadata, as: 'valueMetadata', class: Google::Apis::SheetsV4::PivotGroupValueMetadata, decorator: Google::Apis::SheetsV4::PivotGroupValueMetadata::Representation + + end + end + + class GridRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + property :start_column_index, as: 'startColumnIndex' + property :start_row_index, as: 'startRowIndex' + property :end_row_index, as: 'endRowIndex' + property :end_column_index, as: 'endColumnIndex' + end + end + + class DeleteSheetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + end + end + + class ChartData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source_range, as: 'sourceRange', class: Google::Apis::SheetsV4::ChartSourceRange, decorator: Google::Apis::SheetsV4::ChartSourceRange::Representation + + end + end + + class Sheet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation + + collection :charts, as: 'charts', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation + + collection :filter_views, as: 'filterViews', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation + + collection :conditional_formats, as: 'conditionalFormats', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + + collection :protected_ranges, as: 'protectedRanges', class: Google::Apis::SheetsV4::ProtectedRange, decorator: Google::Apis::SheetsV4::ProtectedRange::Representation + + property :basic_filter, as: 'basicFilter', class: Google::Apis::SheetsV4::BasicFilter, decorator: Google::Apis::SheetsV4::BasicFilter::Representation + + collection :merges, as: 'merges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + collection :data, as: 'data', class: Google::Apis::SheetsV4::GridData, decorator: Google::Apis::SheetsV4::GridData::Representation + + end + end + + class CopyPasteRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :paste_type, as: 'pasteType' + property :paste_orientation, as: 'pasteOrientation' + property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :destination, as: 'destination', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class UpdateCellsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :rows, as: 'rows', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation + + property :fields, as: 'fields' + property :start, as: 'start', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation + + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class ExtendedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :formula_value, as: 'formulaValue' + property :error_value, as: 'errorValue', class: Google::Apis::SheetsV4::ErrorValue, decorator: Google::Apis::SheetsV4::ErrorValue::Representation + + property :bool_value, as: 'boolValue' + property :number_value, as: 'numberValue' + property :string_value, as: 'stringValue' + end + end + + class BatchUpdateSpreadsheetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :spreadsheet_id, as: 'spreadsheetId' + collection :replies, as: 'replies', class: Google::Apis::SheetsV4::Response, decorator: Google::Apis::SheetsV4::Response::Representation + + end + end + + class GradientRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :maxpoint, as: 'maxpoint', class: Google::Apis::SheetsV4::InterpolationPoint, decorator: Google::Apis::SheetsV4::InterpolationPoint::Representation + + property :midpoint, as: 'midpoint', class: Google::Apis::SheetsV4::InterpolationPoint, decorator: Google::Apis::SheetsV4::InterpolationPoint::Representation + + property :minpoint, as: 'minpoint', class: Google::Apis::SheetsV4::InterpolationPoint, decorator: Google::Apis::SheetsV4::InterpolationPoint::Representation + + end + end + + class CutPasteRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :paste_type, as: 'pasteType' + property :source, as: 'source', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :destination, as: 'destination', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation + + end + end + + class OverlayPosition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :width_pixels, as: 'widthPixels' + property :anchor_cell, as: 'anchorCell', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation + + property :offset_x_pixels, as: 'offsetXPixels' + property :height_pixels, as: 'heightPixels' + property :offset_y_pixels, as: 'offsetYPixels' + end + end + + class AutoFillRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :use_alternate_series, as: 'useAlternateSeries' + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + property :source_and_destination, as: 'sourceAndDestination', class: Google::Apis::SheetsV4::SourceAndDestination, decorator: Google::Apis::SheetsV4::SourceAndDestination::Representation + + end + end + + class PieChartSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :legend_position, as: 'legendPosition' + property :series, as: 'series', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation + + property :pie_hole, as: 'pieHole' + property :three_dimensional, as: 'threeDimensional' + property :domain, as: 'domain', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation + + end + end + + class UpdateSheetPropertiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fields, as: 'fields' + property :properties, as: 'properties', class: Google::Apis::SheetsV4::SheetProperties, decorator: Google::Apis::SheetsV4::SheetProperties::Representation + + end + end + + class BooleanRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation + + property :format, as: 'format', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation + + end + end + + class AppendDimensionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :sheet_id, as: 'sheetId' + property :length, as: 'length' + property :dimension, as: 'dimension' + end + end + + class AddFilterViewRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter', class: Google::Apis::SheetsV4::FilterView, decorator: Google::Apis::SheetsV4::FilterView::Representation + + end + end + + class GridProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :row_count, as: 'rowCount' + property :column_count, as: 'columnCount' + property :frozen_row_count, as: 'frozenRowCount' + property :frozen_column_count, as: 'frozenColumnCount' + property :hide_gridlines, as: 'hideGridlines' + end + end + + class DeleteNamedRangeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :named_range_id, as: 'namedRangeId' + end + end + + class AddChartRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :chart, as: 'chart', class: Google::Apis::SheetsV4::EmbeddedChart, decorator: Google::Apis::SheetsV4::EmbeddedChart::Representation + + end + end + + class SetDataValidationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rule, as: 'rule', class: Google::Apis::SheetsV4::DataValidationRule, decorator: Google::Apis::SheetsV4::DataValidationRule::Representation + + property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation + + end + end + + class Request + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update_embedded_object_position, as: 'updateEmbeddedObjectPosition', class: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest, decorator: Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionRequest::Representation + + property :delete_named_range, as: 'deleteNamedRange', class: Google::Apis::SheetsV4::DeleteNamedRangeRequest, decorator: Google::Apis::SheetsV4::DeleteNamedRangeRequest::Representation + + property :update_named_range, as: 'updateNamedRange', class: Google::Apis::SheetsV4::UpdateNamedRangeRequest, decorator: Google::Apis::SheetsV4::UpdateNamedRangeRequest::Representation + + property :add_filter_view, as: 'addFilterView', class: Google::Apis::SheetsV4::AddFilterViewRequest, decorator: Google::Apis::SheetsV4::AddFilterViewRequest::Representation + + property :update_spreadsheet_properties, as: 'updateSpreadsheetProperties', class: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest::Representation + + property :append_dimension, as: 'appendDimension', class: Google::Apis::SheetsV4::AppendDimensionRequest, decorator: Google::Apis::SheetsV4::AppendDimensionRequest::Representation + + property :unmerge_cells, as: 'unmergeCells', class: Google::Apis::SheetsV4::UnmergeCellsRequest, decorator: Google::Apis::SheetsV4::UnmergeCellsRequest::Representation + + property :update_protected_range, as: 'updateProtectedRange', class: Google::Apis::SheetsV4::UpdateProtectedRangeRequest, decorator: Google::Apis::SheetsV4::UpdateProtectedRangeRequest::Representation + + property :delete_filter_view, as: 'deleteFilterView', class: Google::Apis::SheetsV4::DeleteFilterViewRequest, decorator: Google::Apis::SheetsV4::DeleteFilterViewRequest::Representation + + property :clear_basic_filter, as: 'clearBasicFilter', class: Google::Apis::SheetsV4::ClearBasicFilterRequest, decorator: Google::Apis::SheetsV4::ClearBasicFilterRequest::Representation + + property :sort_range, as: 'sortRange', class: Google::Apis::SheetsV4::SortRangeRequest, decorator: Google::Apis::SheetsV4::SortRangeRequest::Representation + + property :repeat_cell, as: 'repeatCell', class: Google::Apis::SheetsV4::RepeatCellRequest, decorator: Google::Apis::SheetsV4::RepeatCellRequest::Representation + + property :set_data_validation, as: 'setDataValidation', class: Google::Apis::SheetsV4::SetDataValidationRequest, decorator: Google::Apis::SheetsV4::SetDataValidationRequest::Representation + + property :update_cells, as: 'updateCells', class: Google::Apis::SheetsV4::UpdateCellsRequest, decorator: Google::Apis::SheetsV4::UpdateCellsRequest::Representation + + property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetRequest, decorator: Google::Apis::SheetsV4::AddSheetRequest::Representation + + property :update_filter_view, as: 'updateFilterView', class: Google::Apis::SheetsV4::UpdateFilterViewRequest, decorator: Google::Apis::SheetsV4::UpdateFilterViewRequest::Representation + + property :update_sheet_properties, as: 'updateSheetProperties', class: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest::Representation + + property :update_dimension_properties, as: 'updateDimensionProperties', class: Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest::Representation + + property :delete_sheet, as: 'deleteSheet', class: Google::Apis::SheetsV4::DeleteSheetRequest, decorator: Google::Apis::SheetsV4::DeleteSheetRequest::Representation + + property :find_replace, as: 'findReplace', class: Google::Apis::SheetsV4::FindReplaceRequest, decorator: Google::Apis::SheetsV4::FindReplaceRequest::Representation + + property :add_protected_range, as: 'addProtectedRange', class: Google::Apis::SheetsV4::AddProtectedRangeRequest, decorator: Google::Apis::SheetsV4::AddProtectedRangeRequest::Representation + + property :delete_protected_range, as: 'deleteProtectedRange', class: Google::Apis::SheetsV4::DeleteProtectedRangeRequest, decorator: Google::Apis::SheetsV4::DeleteProtectedRangeRequest::Representation + + property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest::Representation + + property :set_basic_filter, as: 'setBasicFilter', class: Google::Apis::SheetsV4::SetBasicFilterRequest, decorator: Google::Apis::SheetsV4::SetBasicFilterRequest::Representation + + property :merge_cells, as: 'mergeCells', class: Google::Apis::SheetsV4::MergeCellsRequest, decorator: Google::Apis::SheetsV4::MergeCellsRequest::Representation + + property :add_chart, as: 'addChart', class: Google::Apis::SheetsV4::AddChartRequest, decorator: Google::Apis::SheetsV4::AddChartRequest::Representation + + property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest::Representation + + property :update_chart_spec, as: 'updateChartSpec', class: Google::Apis::SheetsV4::UpdateChartSpecRequest, decorator: Google::Apis::SheetsV4::UpdateChartSpecRequest::Representation + + property :delete_dimension, as: 'deleteDimension', class: Google::Apis::SheetsV4::DeleteDimensionRequest, decorator: Google::Apis::SheetsV4::DeleteDimensionRequest::Representation + + property :delete_embedded_object, as: 'deleteEmbeddedObject', class: Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest, decorator: Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest::Representation + + property :paste_data, as: 'pasteData', class: Google::Apis::SheetsV4::PasteDataRequest, decorator: Google::Apis::SheetsV4::PasteDataRequest::Representation + + property :add_conditional_format_rule, as: 'addConditionalFormatRule', class: Google::Apis::SheetsV4::AddConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::AddConditionalFormatRuleRequest::Representation + + property :update_borders, as: 'updateBorders', class: Google::Apis::SheetsV4::UpdateBordersRequest, decorator: Google::Apis::SheetsV4::UpdateBordersRequest::Representation + + property :auto_resize_dimensions, as: 'autoResizeDimensions', class: Google::Apis::SheetsV4::AutoResizeDimensionsRequest, decorator: Google::Apis::SheetsV4::AutoResizeDimensionsRequest::Representation + + property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetRequest, decorator: Google::Apis::SheetsV4::DuplicateSheetRequest::Representation + + property :duplicate_filter_view, as: 'duplicateFilterView', class: Google::Apis::SheetsV4::DuplicateFilterViewRequest, decorator: Google::Apis::SheetsV4::DuplicateFilterViewRequest::Representation + + property :cut_paste, as: 'cutPaste', class: Google::Apis::SheetsV4::CutPasteRequest, decorator: Google::Apis::SheetsV4::CutPasteRequest::Representation + + property :append_cells, as: 'appendCells', class: Google::Apis::SheetsV4::AppendCellsRequest, decorator: Google::Apis::SheetsV4::AppendCellsRequest::Representation + + property :add_named_range, as: 'addNamedRange', class: Google::Apis::SheetsV4::AddNamedRangeRequest, decorator: Google::Apis::SheetsV4::AddNamedRangeRequest::Representation + + property :auto_fill, as: 'autoFill', class: Google::Apis::SheetsV4::AutoFillRequest, decorator: Google::Apis::SheetsV4::AutoFillRequest::Representation + + property :move_dimension, as: 'moveDimension', class: Google::Apis::SheetsV4::MoveDimensionRequest, decorator: Google::Apis::SheetsV4::MoveDimensionRequest::Representation + + property :text_to_columns, as: 'textToColumns', class: Google::Apis::SheetsV4::TextToColumnsRequest, decorator: Google::Apis::SheetsV4::TextToColumnsRequest::Representation + + property :insert_dimension, as: 'insertDimension', class: Google::Apis::SheetsV4::InsertDimensionRequest, decorator: Google::Apis::SheetsV4::InsertDimensionRequest::Representation + + property :copy_paste, as: 'copyPaste', class: Google::Apis::SheetsV4::CopyPasteRequest, decorator: Google::Apis::SheetsV4::CopyPasteRequest::Representation + + end + end + + class BatchGetValuesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :value_ranges, as: 'valueRanges', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation + + property :spreadsheet_id, as: 'spreadsheetId' + end + end + + class InsertDimensionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :inherit_from_before, as: 'inheritFromBefore' + property :range, as: 'range', class: Google::Apis::SheetsV4::DimensionRange, decorator: Google::Apis::SheetsV4::DimensionRange::Representation + + end + end + + class DeleteEmbeddedObjectRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :object_id_prop, as: 'objectId' + end + end + + class DeleteConditionalFormatRuleResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rule, as: 'rule', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation + + end + end + end + end +end diff --git a/generated/google/apis/sheets_v4/service.rb b/generated/google/apis/sheets_v4/service.rb new file mode 100644 index 000000000..2dcb02cf0 --- /dev/null +++ b/generated/google/apis/sheets_v4/service.rb @@ -0,0 +1,403 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SheetsV4 + # Google Sheets API + # + # An API for reading and modifying Google Sheets. + # + # @example + # require 'google/apis/sheets_v4' + # + # Sheets = Google::Apis::SheetsV4 # Alias the module + # service = Sheets::SheetsService.new + # + # @see https://developers.google.com/sheets/ + class SheetsService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://sheets.googleapis.com/', '') + end + + # Creates a spreadsheet, returning the newly created spreadsheet. + # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::Spreadsheet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets', options) + command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation + command.request_object = spreadsheet_object + command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation + command.response_class = Google::Apis::SheetsV4::Spreadsheet + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Returns the spreadsheet at the given id. + # The caller must specify the spreadsheet ID. + # By default, data within grids will not be returned. + # You can include grid data one of two ways: specify a field mask listing + # your desired fields (using the `fields` URL parameter in HTTP, + # or `FieldMaskContext.response_mask` in the request extensions in an RPC), + # or by setting the + # includeGridData URL parameter + # to true. If a field mask is set, the `includeGridData` parameter is + # ignored. + # For large spreadsheets, it is recommended to retrieve only the specific + # fields of the spreadsheet that you want. + # To retrieve only subsets of the spreadsheet, use the + # ranges URL parameter. + # Multiple ranges can be specified. Limiting the range will + # return only the portions of the spreadsheet that intersect the requested + # ranges. Ranges are specified using A1 notation. + # @param [String] spreadsheet_id + # The spreadsheet to request. + # @param [Array, String] ranges + # The ranges to retrieve from the spreadsheet. + # @param [Boolean] include_grid_data + # True if grid data should be returned. + # This parameter is ignored if a field mask was set in the request. + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::Spreadsheet] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options) + command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation + command.response_class = Google::Apis::SheetsV4::Spreadsheet + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['ranges'] = ranges unless ranges.nil? + command.query['includeGridData'] = include_grid_data unless include_grid_data.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Applies one or more updates to the spreadsheet. + # Each request is validated before + # being applied. If any request is not valid then the entire request will + # fail and nothing will be applied. + # Some requests have replies to + # give you some information about how + # they applied. The replies will mirror the requests. For example, + # if you applied 4 updates and the 3rd one had a reply, then the + # response will have 2 empty replies, the actual reply, and another empty + # reply, in that order. + # Due to the collaborative nature of spreadsheets, it is not guaranteed that + # the spreadsheet will reflect exactly your changes after this completes, + # however it is guaranteed that all the updates in the request will be + # applied atomically. Your changes may be altered with respect to + # collaborator changes. If there are no collaborators, the spreadsheet + # should reflect your changes. + # @param [String] spreadsheet_id + # The spreadsheet to apply the updates to. + # @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options) + command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation + command.request_object = batch_update_spreadsheet_request_object + command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation + command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Sets values in a range of a spreadsheet. + # The caller must specify the spreadsheet ID, range, and + # a valueInputOption. + # @param [String] spreadsheet_id + # The id of the spreadsheet to update. + # @param [String] range + # The A1 notation of the values to update. + # @param [Google::Apis::SheetsV4::ValueRange] value_range_object + # @param [String] value_input_option + # How the input data should be interpreted. + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::UpdateValuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::UpdateValuesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options) + command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation + command.request_object = value_range_object + command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation + command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.params['range'] = range unless range.nil? + command.query['valueInputOption'] = value_input_option unless value_input_option.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Returns a range of values from a spreadsheet. + # The caller must specify the spreadsheet ID and a range. + # @param [String] spreadsheet_id + # The id of the spreadsheet to retrieve data from. + # @param [String] range + # The A1 notation of the values to retrieve. + # @param [String] value_render_option + # How values should be represented in the output. + # @param [String] date_time_render_option + # How dates, times, and durations should be represented in the output. + # This is ignored if the ValueRenderOption option is + # FORMATTED_VALUE. + # @param [String] major_dimension + # The major dimension that results should use. + # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, + # then requesting `range=A1:B2,majorDimension=ROWS` will return + # `[[1,2],[3,4]]`, + # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return + # `[[1,3],[2,4]]`. + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::ValueRange] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::ValueRange] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options) + command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation + command.response_class = Google::Apis::SheetsV4::ValueRange + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.params['range'] = range unless range.nil? + command.query['valueRenderOption'] = value_render_option unless value_render_option.nil? + command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil? + command.query['majorDimension'] = major_dimension unless major_dimension.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Returns one or more ranges of values from a spreadsheet. + # The caller must specify the spreadsheet ID and one or more ranges. + # @param [String] spreadsheet_id + # The id of the spreadsheet to retrieve data from. + # @param [Array, String] ranges + # The A1 notation of the values to retrieve. + # @param [String] value_render_option + # How values should be represented in the output. + # @param [String] date_time_render_option + # How dates, times, and durations should be represented in the output. + # This is ignored if ValueRenderOption option is + # FORMATTED_VALUE. + # @param [String] major_dimension + # The major dimension that results should use. + # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, + # then requesting `range=A1:B2,majorDimension=ROWS` will return + # `[[1,2],[3,4]]`, + # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return + # `[[1,3],[2,4]]`. + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::BatchGetValuesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options) + command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation + command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['ranges'] = ranges unless ranges.nil? + command.query['valueRenderOption'] = value_render_option unless value_render_option.nil? + command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil? + command.query['majorDimension'] = major_dimension unless major_dimension.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Sets values in a range of a spreadsheet. + # The caller must specify the spreadsheet ID, + # a valueInputOption, and one or more + # ValueRanges. + # @param [String] spreadsheet_id + # The id of the spreadsheet to update. + # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options) + command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation + command.request_object = batch_update_values_request_object + command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation + command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Copies a single sheet from a spreadsheet to another spreadsheet. + # Returns the properties of the newly created sheet. + # @param [String] spreadsheet_id + # The id of the spreadsheet containing the sheet to copy. + # @param [Fixnum] sheet_id + # The ID of the sheet to copy. + # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object + # @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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SheetsV4::SheetProperties] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options) + command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation + command.request_object = copy_sheet_to_another_spreadsheet_request_object + command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation + command.response_class = Google::Apis::SheetsV4::SheetProperties + command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil? + command.params['sheetId'] = sheet_id unless sheet_id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index 064ba5ebd..e2e17f338 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/sql/docs/reference/latest module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20160321' + REVISION = '20160509' # 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/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index 04e833fd6..fbd7d8581 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -1571,15 +1571,14 @@ module Google attr_accessor :crash_safe_replication_enabled alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled - # The size of data disk, in GB. The data disk size minimum is 10GB. This - # property is only applicable to Second Generation instances. + # The size of data disk, in GB. The data disk size minimum is 10GB. Applies only + # to Second Generation instances. # Corresponds to the JSON property `dataDiskSizeGb` # @return [String] attr_accessor :data_disk_size_gb # The type of data disk. Only supported for Second Generation instances. The - # default type is PD_SSD. This property is only applicable to Second Generation - # instances. + # default type is PD_SSD. Applies only to Second Generation instances. # Corresponds to the JSON property `dataDiskType` # @return [String] attr_accessor :data_disk_type @@ -1641,6 +1640,13 @@ module Google # @return [String] attr_accessor :settings_version + # Configuration to increase storage size automatically. The default value is + # false. Applies only to Second Generation instances. + # Corresponds to the JSON property `storageAutoResize` + # @return [Boolean] + attr_accessor :storage_auto_resize + alias_method :storage_auto_resize?, :storage_auto_resize + # The tier of service for this instance, for example D1, D2. For more # information, see pricing. # Corresponds to the JSON property `tier` @@ -1668,6 +1674,7 @@ module Google @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan) @replication_type = args[:replication_type] if args.key?(:replication_type) @settings_version = args[:settings_version] if args.key?(:settings_version) + @storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize) @tier = args[:tier] if args.key?(:tier) end end @@ -1821,6 +1828,13 @@ module Google # @return [String] attr_accessor :kind + # An Operations resource contains information about database instance operations + # such as create, delete, and restart. Operations resources are created in + # response to operations that were initiated; you never create them directly. + # Corresponds to the JSON property `operation` + # @return [Google::Apis::SqladminV1beta4::Operation] + attr_accessor :operation + # SslCerts Resource # Corresponds to the JSON property `serverCaCert` # @return [Google::Apis::SqladminV1beta4::SslCert] @@ -1834,6 +1848,7 @@ module Google def update!(**args) @client_cert = args[:client_cert] if args.key?(:client_cert) @kind = args[:kind] if args.key?(:kind) + @operation = args[:operation] if args.key?(:operation) @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) end end diff --git a/generated/google/apis/sqladmin_v1beta4/representations.rb b/generated/google/apis/sqladmin_v1beta4/representations.rb index 27157fd17..b1152d4d4 100644 --- a/generated/google/apis/sqladmin_v1beta4/representations.rb +++ b/generated/google/apis/sqladmin_v1beta4/representations.rb @@ -745,6 +745,7 @@ module Google property :pricing_plan, as: 'pricingPlan' property :replication_type, as: 'replicationType' property :settings_version, as: 'settingsVersion' + property :storage_auto_resize, as: 'storageAutoResize' property :tier, as: 'tier' end end @@ -795,6 +796,8 @@ module Google property :client_cert, as: 'clientCert', class: Google::Apis::SqladminV1beta4::SslCertDetail, decorator: Google::Apis::SqladminV1beta4::SslCertDetail::Representation property :kind, as: 'kind' + property :operation, as: 'operation', class: Google::Apis::SqladminV1beta4::Operation, decorator: Google::Apis::SqladminV1beta4::Operation::Representation + property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation end diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 6184f6b21..448767faf 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20160330' + REVISION = '20160427' # 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/taskqueue_v1beta2.rb b/generated/google/apis/taskqueue_v1beta2.rb index a031c2ad1..34da0846d 100644 --- a/generated/google/apis/taskqueue_v1beta2.rb +++ b/generated/google/apis/taskqueue_v1beta2.rb @@ -20,12 +20,12 @@ module Google module Apis # TaskQueue API # - # Lets you access a Google App Engine Pull Task Queue over REST. + # Accesses a Google App Engine Pull Task Queue over REST. # # @see https://developers.google.com/appengine/docs/python/taskqueue/rest module TaskqueueV1beta2 VERSION = 'V1beta2' - REVISION = '20141111' + REVISION = '20160428' # Manage your Tasks and Taskqueues AUTH_TASKQUEUE = 'https://www.googleapis.com/auth/taskqueue' diff --git a/generated/google/apis/taskqueue_v1beta2/service.rb b/generated/google/apis/taskqueue_v1beta2/service.rb index 556f854e1..1be64a668 100644 --- a/generated/google/apis/taskqueue_v1beta2/service.rb +++ b/generated/google/apis/taskqueue_v1beta2/service.rb @@ -22,7 +22,7 @@ module Google module TaskqueueV1beta2 # TaskQueue API # - # Lets you access a Google App Engine Pull Task Queue over REST. + # Accesses a Google App Engine Pull Task Queue over REST. # # @example # require 'google/apis/taskqueue_v1beta2' diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 7f5598223..8774e07cb 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -20,15 +20,14 @@ module Google module Apis # Google Cloud Vision API # - # The Google Cloud Vision API allows developers to easily integrate Google - # vision features, including image labeling, face, logo, and landmark detection, - # optical character recognition (OCR), and detection of explicit content, into - # applications. + # Integrates Google Vision features, including image labeling, face, logo, and + # landmark detection, optical character recognition (OCR), and detection of + # explicit content, into applications. # # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20160413' + REVISION = '20160420' # 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/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index a0bdcd763..a1d548568 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -715,8 +715,9 @@ module Google class EntityAnnotation include Google::Apis::Core::Hashable - # Knowledge Graph entity ID. Maps to a freebase entity ID. - # (for example, "Google" maps to: mid /m/045c7b). + # Opaque entity ID. Some IDs might be available in Knowledge Graph(KG). + # For more details on KG please see: + # https://developers.google.com/knowledge-graph/ # Corresponds to the JSON property `mid` # @return [String] attr_accessor :mid diff --git a/generated/google/apis/vision_v1/service.rb b/generated/google/apis/vision_v1/service.rb index 62f57c379..376460244 100644 --- a/generated/google/apis/vision_v1/service.rb +++ b/generated/google/apis/vision_v1/service.rb @@ -22,10 +22,9 @@ module Google module VisionV1 # Google Cloud Vision API # - # The Google Cloud Vision API allows developers to easily integrate Google - # vision features, including image labeling, face, logo, and landmark detection, - # optical character recognition (OCR), and detection of explicit content, into - # applications. + # Integrates Google Vision features, including image labeling, face, logo, and + # landmark detection, optical character recognition (OCR), and detection of + # explicit content, into applications. # # @example # require 'google/apis/vision_v1' diff --git a/generated/google/apis/youtube_analytics_v1.rb b/generated/google/apis/youtube_analytics_v1.rb index a229d31da..f212452ce 100644 --- a/generated/google/apis/youtube_analytics_v1.rb +++ b/generated/google/apis/youtube_analytics_v1.rb @@ -20,12 +20,12 @@ module Google module Apis # YouTube Analytics API # - # Retrieves your YouTube Analytics reports. + # Retrieves your YouTube Analytics data. # # @see http://developers.google.com/youtube/analytics/ module YoutubeAnalyticsV1 VERSION = 'V1' - REVISION = '20160301' + REVISION = '20160513' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_analytics_v1/service.rb b/generated/google/apis/youtube_analytics_v1/service.rb index 48d838c8d..3a4a9a842 100644 --- a/generated/google/apis/youtube_analytics_v1/service.rb +++ b/generated/google/apis/youtube_analytics_v1/service.rb @@ -22,7 +22,7 @@ module Google module YoutubeAnalyticsV1 # YouTube Analytics API # - # Retrieves your YouTube Analytics reports. + # Retrieves your YouTube Analytics data. # # @example # require 'google/apis/youtube_analytics_v1' diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 0d0c8d60f..78acdde80 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20160405' + REVISION = '20160510' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' diff --git a/generated/google/apis/youtube_partner_v1/classes.rb b/generated/google/apis/youtube_partner_v1/classes.rb index a337dc0fd..1b5307588 100644 --- a/generated/google/apis/youtube_partner_v1/classes.rb +++ b/generated/google/apis/youtube_partner_v1/classes.rb @@ -3461,6 +3461,127 @@ module Google end end + # + class ValidateError + include Google::Apis::Core::Hashable + + # The column name where the error occurred. + # Corresponds to the JSON property `columnName` + # @return [String] + attr_accessor :column_name + + # The column number where the error occurred (1-based). + # Corresponds to the JSON property `columnNumber` + # @return [Fixnum] + attr_accessor :column_number + + # The line number where the error occurred (1-based). + # Corresponds to the JSON property `lineNumber` + # @return [Fixnum] + attr_accessor :line_number + + # The error message. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # The code for the error message (if one exists). + # Corresponds to the JSON property `messageCode` + # @return [Fixnum] + attr_accessor :message_code + + # The error severity. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @column_name = args[:column_name] if args.key?(:column_name) + @column_number = args[:column_number] if args.key?(:column_number) + @line_number = args[:line_number] if args.key?(:line_number) + @message = args[:message] if args.key?(:message) + @message_code = args[:message_code] if args.key?(:message_code) + @severity = args[:severity] if args.key?(:severity) + end + end + + # + class ValidateRequest + include Google::Apis::Core::Hashable + + # The metadata file contents. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The type of the API resource. For this operation, the value is youtubePartner# + # validateRequest. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The desired locale of the error messages as defined in BCP 47 (http://tools. + # ietf.org/html/bcp47). For example, "en-US" or "de". If not specified we will + # return the error messages in English ("en"). + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The uploader name. + # Corresponds to the JSON property `uploaderName` + # @return [String] + attr_accessor :uploader_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @uploader_name = args[:uploader_name] if args.key?(:uploader_name) + end + end + + # + class ValidateResponse + include Google::Apis::Core::Hashable + + # The list of errors and/or warnings. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # The type of the API resource. For this operation, the value is youtubePartner# + # validateResponse. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The validation status. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + @status = args[:status] if args.key?(:status) + end + end + # class VideoAdvertisingOption include Google::Apis::Core::Hashable diff --git a/generated/google/apis/youtube_partner_v1/representations.rb b/generated/google/apis/youtube_partner_v1/representations.rb index 82fff1081..07bb4dc55 100644 --- a/generated/google/apis/youtube_partner_v1/representations.rb +++ b/generated/google/apis/youtube_partner_v1/representations.rb @@ -466,6 +466,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ValidateError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ValidateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ValidateResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VideoAdvertisingOption class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1398,6 +1416,38 @@ module Google end end + class ValidateError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :column_name, as: 'columnName' + property :column_number, as: 'columnNumber' + property :line_number, as: 'lineNumber' + property :message, as: 'message' + property :message_code, as: 'messageCode' + property :severity, as: 'severity' + end + end + + class ValidateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :kind, as: 'kind' + property :locale, as: 'locale' + property :uploader_name, as: 'uploaderName' + end + end + + class ValidateResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :errors, as: 'errors', class: Google::Apis::YoutubePartnerV1::ValidateError, decorator: Google::Apis::YoutubePartnerV1::ValidateError::Representation + + property :kind, as: 'kind' + property :status, as: 'status' + end + end + class VideoAdvertisingOption # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_partner_v1/service.rb b/generated/google/apis/youtube_partner_v1/service.rb index c326bf12f..c122f6b3f 100644 --- a/generated/google/apis/youtube_partner_v1/service.rb +++ b/generated/google/apis/youtube_partner_v1/service.rb @@ -2811,6 +2811,46 @@ module Google execute_or_queue_command(command, &block) end + # Validate a metadata file. + # @param [Google::Apis::YoutubePartnerV1::ValidateRequest] validate_request_object + # @param [String] on_behalf_of_content_owner + # The onBehalfOfContentOwner parameter identifies the content owner that the + # user is acting on behalf of. This parameter supports users whose accounts are + # associated with multiple content owners. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::YoutubePartnerV1::ValidateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubePartnerV1::ValidateResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def validate_validator(validate_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'validator', options) + command.request_representation = Google::Apis::YoutubePartnerV1::ValidateRequest::Representation + command.request_object = validate_request_object + command.response_representation = Google::Apis::YoutubePartnerV1::ValidateResponse::Representation + command.response_class = Google::Apis::YoutubePartnerV1::ValidateResponse + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves advertising settings for the specified video. # @param [String] video_id # The videoId parameter specifies the YouTube video ID of the video for which diff --git a/generated/google/apis/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index 7ce64e56f..4bb4a124d 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/v3 module YoutubeV3 VERSION = 'V3' - REVISION = '20160406' + REVISION = '20160509' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index 23e4da1c2..a7b15215b 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -843,6 +843,11 @@ module Google # @return [String] attr_accessor :format + # The frame rate of the inbound video data. + # Corresponds to the JSON property `frameRate` + # @return [String] + attr_accessor :frame_rate + # Describes information necessary for ingesting an RTMP or an HTTP stream. # Corresponds to the JSON property `ingestionInfo` # @return [Google::Apis::YoutubeV3::IngestionInfo] @@ -853,6 +858,11 @@ module Google # @return [String] attr_accessor :ingestion_type + # The resolution of the inbound video data. + # Corresponds to the JSON property `resolution` + # @return [String] + attr_accessor :resolution + def initialize(**args) update!(**args) end @@ -860,8 +870,10 @@ module Google # Update properties of this object def update!(**args) @format = args[:format] if args.key?(:format) + @frame_rate = args[:frame_rate] if args.key?(:frame_rate) @ingestion_info = args[:ingestion_info] if args.key?(:ingestion_info) @ingestion_type = args[:ingestion_type] if args.key?(:ingestion_type) + @resolution = args[:resolution] if args.key?(:resolution) end end @@ -3770,6 +3782,11 @@ module Google # @return [Google::Apis::YoutubeV3::MonitorStreamInfo] attr_accessor :monitor_stream + # The projection format of this broadcast. This defaults to rectangular. + # Corresponds to the JSON property `projection` + # @return [String] + attr_accessor :projection + # Automatically start recording after the event goes live. The default value for # this property is true. # Important: You must also set the enableDvr property's value to true if you @@ -3807,6 +3824,7 @@ module Google @enable_embed = args[:enable_embed] if args.key?(:enable_embed) @enable_low_latency = args[:enable_low_latency] if args.key?(:enable_low_latency) @monitor_stream = args[:monitor_stream] if args.key?(:monitor_stream) + @projection = args[:projection] if args.key?(:projection) @record_from_start = args[:record_from_start] if args.key?(:record_from_start) @start_with_slate = args[:start_with_slate] if args.key?(:start_with_slate) end @@ -7139,6 +7157,11 @@ module Google attr_accessor :licensed_content alias_method :licensed_content?, :licensed_content + # Specifies the projection format of the video. + # Corresponds to the JSON property `projection` + # @return [String] + attr_accessor :projection + # DEPRECATED Region restriction of the video. # Corresponds to the JSON property `regionRestriction` # @return [Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction] @@ -7157,6 +7180,7 @@ module Google @dimension = args[:dimension] if args.key?(:dimension) @duration = args[:duration] if args.key?(:duration) @licensed_content = args[:licensed_content] if args.key?(:licensed_content) + @projection = args[:projection] if args.key?(:projection) @region_restriction = args[:region_restriction] if args.key?(:region_restriction) end end diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index 19bea9507..92e5ab101 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -1270,9 +1270,11 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :format, as: 'format' + property :frame_rate, as: 'frameRate' property :ingestion_info, as: 'ingestionInfo', class: Google::Apis::YoutubeV3::IngestionInfo, decorator: Google::Apis::YoutubeV3::IngestionInfo::Representation property :ingestion_type, as: 'ingestionType' + property :resolution, as: 'resolution' end end @@ -2003,6 +2005,7 @@ module Google property :enable_low_latency, as: 'enableLowLatency' property :monitor_stream, as: 'monitorStream', class: Google::Apis::YoutubeV3::MonitorStreamInfo, decorator: Google::Apis::YoutubeV3::MonitorStreamInfo::Representation + property :projection, as: 'projection' property :record_from_start, as: 'recordFromStart' property :start_with_slate, as: 'startWithSlate' end @@ -2922,6 +2925,7 @@ module Google property :dimension, as: 'dimension' property :duration, as: 'duration' property :licensed_content, as: 'licensedContent' + property :projection, as: 'projection' property :region_restriction, as: 'regionRestriction', class: Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction, decorator: Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction::Representation end diff --git a/generated/google/apis/youtubereporting_v1.rb b/generated/google/apis/youtubereporting_v1.rb index 1375b3d76..87144d626 100644 --- a/generated/google/apis/youtubereporting_v1.rb +++ b/generated/google/apis/youtubereporting_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/reporting/v1/reports/ module YoutubereportingV1 VERSION = 'V1' - REVISION = '20160315' + REVISION = '20160419' # View monetary and non-monetary YouTube Analytics reports for your YouTube content AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly' diff --git a/script/generate b/script/generate index 0d361606b..73a785be9 100755 --- a/script/generate +++ b/script/generate @@ -12,6 +12,7 @@ API_IDS=(adexchangebuyer:v1.4 \ adsense:v1.4 \ adsensehost:v4.1 \ analytics:v3 \ + analyticsreporting:v4 \ androidenterprise:v1 \ androidpublisher:v2 \ appengine:v1beta5 \ @@ -82,6 +83,7 @@ API_IDS=(adexchangebuyer:v1.4 \ reseller:v1 \ resourceviews:v1beta2 \ script:v1 \ + sheets:v4 \ siteVerification:v1 \ sqladmin:v1beta4 \ storage:v1 \