Autogenerated update (2020-08-21)
Update: - appsmarket_v2 - calendar_v3 - compute_alpha - compute_beta - compute_v1 - dataproc_v1 - dataproc_v1beta2 - displayvideo_v1 - drive_v2 - drive_v3 - firebase_v1beta1 - ml_v1 - monitoring_v3 - servicecontrol_v1 - servicenetworking_v1 - servicenetworking_v1beta - tasks_v1
This commit is contained in:
parent
ccf85d8cda
commit
e08f0d3bef
|
@ -26835,6 +26835,8 @@
|
||||||
"/compute:alpha/BackendBucketCdnPolicy/defaultTtl": default_ttl
|
"/compute:alpha/BackendBucketCdnPolicy/defaultTtl": default_ttl
|
||||||
"/compute:alpha/BackendBucketCdnPolicy/maxTtl": max_ttl
|
"/compute:alpha/BackendBucketCdnPolicy/maxTtl": max_ttl
|
||||||
"/compute:alpha/BackendBucketCdnPolicy/negativeCaching": negative_caching
|
"/compute:alpha/BackendBucketCdnPolicy/negativeCaching": negative_caching
|
||||||
|
"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicy": negative_caching_policy
|
||||||
|
"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicy/negative_caching_policy": negative_caching_policy
|
||||||
"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicys": negative_caching_policys
|
"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicys": negative_caching_policys
|
||||||
"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
|
"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
|
||||||
"/compute:alpha/BackendBucketCdnPolicy/requestCoalescing": request_coalescing
|
"/compute:alpha/BackendBucketCdnPolicy/requestCoalescing": request_coalescing
|
||||||
|
@ -26926,6 +26928,8 @@
|
||||||
"/compute:alpha/BackendServiceCdnPolicy/defaultTtl": default_ttl
|
"/compute:alpha/BackendServiceCdnPolicy/defaultTtl": default_ttl
|
||||||
"/compute:alpha/BackendServiceCdnPolicy/maxTtl": max_ttl
|
"/compute:alpha/BackendServiceCdnPolicy/maxTtl": max_ttl
|
||||||
"/compute:alpha/BackendServiceCdnPolicy/negativeCaching": negative_caching
|
"/compute:alpha/BackendServiceCdnPolicy/negativeCaching": negative_caching
|
||||||
|
"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicy": negative_caching_policy
|
||||||
|
"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicy/negative_caching_policy": negative_caching_policy
|
||||||
"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicys": negative_caching_policys
|
"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicys": negative_caching_policys
|
||||||
"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
|
"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
|
||||||
"/compute:alpha/BackendServiceCdnPolicy/requestCoalescing": request_coalescing
|
"/compute:alpha/BackendServiceCdnPolicy/requestCoalescing": request_coalescing
|
||||||
|
@ -30394,6 +30398,7 @@
|
||||||
"/compute:alpha/ResourcePolicyHourlyCycle/hoursInCycle": hours_in_cycle
|
"/compute:alpha/ResourcePolicyHourlyCycle/hoursInCycle": hours_in_cycle
|
||||||
"/compute:alpha/ResourcePolicyHourlyCycle/startTime": start_time
|
"/compute:alpha/ResourcePolicyHourlyCycle/startTime": start_time
|
||||||
"/compute:alpha/ResourcePolicyInstanceSchedulePolicy": resource_policy_instance_schedule_policy
|
"/compute:alpha/ResourcePolicyInstanceSchedulePolicy": resource_policy_instance_schedule_policy
|
||||||
|
"/compute:alpha/ResourcePolicyInstanceSchedulePolicy/timeZone": time_zone
|
||||||
"/compute:alpha/ResourcePolicyInstanceSchedulePolicy/vmStartSchedule": vm_start_schedule
|
"/compute:alpha/ResourcePolicyInstanceSchedulePolicy/vmStartSchedule": vm_start_schedule
|
||||||
"/compute:alpha/ResourcePolicyInstanceSchedulePolicy/vmStopSchedule": vm_stop_schedule
|
"/compute:alpha/ResourcePolicyInstanceSchedulePolicy/vmStopSchedule": vm_stop_schedule
|
||||||
"/compute:alpha/ResourcePolicyInstanceSchedulePolicySchedule": resource_policy_instance_schedule_policy_schedule
|
"/compute:alpha/ResourcePolicyInstanceSchedulePolicySchedule": resource_policy_instance_schedule_policy_schedule
|
||||||
|
@ -30617,6 +30622,7 @@
|
||||||
"/compute:alpha/RouterNatRule/description": description
|
"/compute:alpha/RouterNatRule/description": description
|
||||||
"/compute:alpha/RouterNatRule/match": match
|
"/compute:alpha/RouterNatRule/match": match
|
||||||
"/compute:alpha/RouterNatRule/priority": priority
|
"/compute:alpha/RouterNatRule/priority": priority
|
||||||
|
"/compute:alpha/RouterNatRule/ruleNumber": rule_number
|
||||||
"/compute:alpha/RouterNatRuleAction": router_nat_rule_action
|
"/compute:alpha/RouterNatRuleAction": router_nat_rule_action
|
||||||
"/compute:alpha/RouterNatRuleAction/sourceNatActiveIps": source_nat_active_ips
|
"/compute:alpha/RouterNatRuleAction/sourceNatActiveIps": source_nat_active_ips
|
||||||
"/compute:alpha/RouterNatRuleAction/sourceNatActiveIps/source_nat_active_ip": source_nat_active_ip
|
"/compute:alpha/RouterNatRuleAction/sourceNatActiveIps/source_nat_active_ip": source_nat_active_ip
|
||||||
|
@ -30677,6 +30683,7 @@
|
||||||
"/compute:alpha/RouterStatusNatStatusNatRuleStatus/minExtraIpsNeeded": min_extra_ips_needed
|
"/compute:alpha/RouterStatusNatStatusNatRuleStatus/minExtraIpsNeeded": min_extra_ips_needed
|
||||||
"/compute:alpha/RouterStatusNatStatusNatRuleStatus/numVmEndpointsWithNatMappings": num_vm_endpoints_with_nat_mappings
|
"/compute:alpha/RouterStatusNatStatusNatRuleStatus/numVmEndpointsWithNatMappings": num_vm_endpoints_with_nat_mappings
|
||||||
"/compute:alpha/RouterStatusNatStatusNatRuleStatus/priority": priority
|
"/compute:alpha/RouterStatusNatStatusNatRuleStatus/priority": priority
|
||||||
|
"/compute:alpha/RouterStatusNatStatusNatRuleStatus/ruleNumber": rule_number
|
||||||
"/compute:alpha/RouterStatusResponse": router_status_response
|
"/compute:alpha/RouterStatusResponse": router_status_response
|
||||||
"/compute:alpha/RouterStatusResponse/kind": kind
|
"/compute:alpha/RouterStatusResponse/kind": kind
|
||||||
"/compute:alpha/RouterStatusResponse/result": result
|
"/compute:alpha/RouterStatusResponse/result": result
|
||||||
|
@ -31810,6 +31817,7 @@
|
||||||
"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/numTotalDrainNatPorts": num_total_drain_nat_ports
|
"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/numTotalDrainNatPorts": num_total_drain_nat_ports
|
||||||
"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/numTotalNatPorts": num_total_nat_ports
|
"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/numTotalNatPorts": num_total_nat_ports
|
||||||
"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/priority": priority
|
"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/priority": priority
|
||||||
|
"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/ruleNumber": rule_number
|
||||||
"/compute:alpha/VmEndpointNatMappingsList": vm_endpoint_nat_mappings_list
|
"/compute:alpha/VmEndpointNatMappingsList": vm_endpoint_nat_mappings_list
|
||||||
"/compute:alpha/VmEndpointNatMappingsList/id": id
|
"/compute:alpha/VmEndpointNatMappingsList/id": id
|
||||||
"/compute:alpha/VmEndpointNatMappingsList/kind": kind
|
"/compute:alpha/VmEndpointNatMappingsList/kind": kind
|
||||||
|
@ -35989,6 +35997,8 @@
|
||||||
"/compute:beta/BackendBucketCdnPolicy/defaultTtl": default_ttl
|
"/compute:beta/BackendBucketCdnPolicy/defaultTtl": default_ttl
|
||||||
"/compute:beta/BackendBucketCdnPolicy/maxTtl": max_ttl
|
"/compute:beta/BackendBucketCdnPolicy/maxTtl": max_ttl
|
||||||
"/compute:beta/BackendBucketCdnPolicy/negativeCaching": negative_caching
|
"/compute:beta/BackendBucketCdnPolicy/negativeCaching": negative_caching
|
||||||
|
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicy": negative_caching_policy
|
||||||
|
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicy/negative_caching_policy": negative_caching_policy
|
||||||
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicys": negative_caching_policys
|
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicys": negative_caching_policys
|
||||||
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
|
"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
|
||||||
"/compute:beta/BackendBucketCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec
|
"/compute:beta/BackendBucketCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec
|
||||||
|
@ -36069,6 +36079,8 @@
|
||||||
"/compute:beta/BackendServiceCdnPolicy/defaultTtl": default_ttl
|
"/compute:beta/BackendServiceCdnPolicy/defaultTtl": default_ttl
|
||||||
"/compute:beta/BackendServiceCdnPolicy/maxTtl": max_ttl
|
"/compute:beta/BackendServiceCdnPolicy/maxTtl": max_ttl
|
||||||
"/compute:beta/BackendServiceCdnPolicy/negativeCaching": negative_caching
|
"/compute:beta/BackendServiceCdnPolicy/negativeCaching": negative_caching
|
||||||
|
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicy": negative_caching_policy
|
||||||
|
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicy/negative_caching_policy": negative_caching_policy
|
||||||
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicys": negative_caching_policys
|
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicys": negative_caching_policys
|
||||||
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
|
"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy
|
||||||
"/compute:beta/BackendServiceCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec
|
"/compute:beta/BackendServiceCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec
|
||||||
|
@ -85704,6 +85716,11 @@
|
||||||
"/displayvideo:v1/AudioVideoOffset/percentage": percentage
|
"/displayvideo:v1/AudioVideoOffset/percentage": percentage
|
||||||
"/displayvideo:v1/AudioVideoOffset/seconds": seconds
|
"/displayvideo:v1/AudioVideoOffset/seconds": seconds
|
||||||
"/displayvideo:v1/AuditAdvertiserResponse": audit_advertiser_response
|
"/displayvideo:v1/AuditAdvertiserResponse": audit_advertiser_response
|
||||||
|
"/displayvideo:v1/AuditAdvertiserResponse/adGroupCriteriaCount": ad_group_criteria_count
|
||||||
|
"/displayvideo:v1/AuditAdvertiserResponse/campaignCriteriaCount": campaign_criteria_count
|
||||||
|
"/displayvideo:v1/AuditAdvertiserResponse/channelsCount": channels_count
|
||||||
|
"/displayvideo:v1/AuditAdvertiserResponse/negativeKeywordListsCount": negative_keyword_lists_count
|
||||||
|
"/displayvideo:v1/AuditAdvertiserResponse/negativelyTargetedChannelsCount": negatively_targeted_channels_count
|
||||||
"/displayvideo:v1/AuditAdvertiserResponse/usedCampaignsCount": used_campaigns_count
|
"/displayvideo:v1/AuditAdvertiserResponse/usedCampaignsCount": used_campaigns_count
|
||||||
"/displayvideo:v1/AuditAdvertiserResponse/usedInsertionOrdersCount": used_insertion_orders_count
|
"/displayvideo:v1/AuditAdvertiserResponse/usedInsertionOrdersCount": used_insertion_orders_count
|
||||||
"/displayvideo:v1/AuditAdvertiserResponse/usedLineItemsCount": used_line_items_count
|
"/displayvideo:v1/AuditAdvertiserResponse/usedLineItemsCount": used_line_items_count
|
||||||
|
@ -110008,6 +110025,12 @@
|
||||||
"/monitoring:v3/PointData/timeInterval": time_interval
|
"/monitoring:v3/PointData/timeInterval": time_interval
|
||||||
"/monitoring:v3/PointData/values": values
|
"/monitoring:v3/PointData/values": values
|
||||||
"/monitoring:v3/PointData/values/value": value
|
"/monitoring:v3/PointData/values/value": value
|
||||||
|
"/monitoring:v3/Position": position
|
||||||
|
"/monitoring:v3/Position/column": column
|
||||||
|
"/monitoring:v3/Position/line": line
|
||||||
|
"/monitoring:v3/QueryError": query_error
|
||||||
|
"/monitoring:v3/QueryError/locator": locator
|
||||||
|
"/monitoring:v3/QueryError/message": message
|
||||||
"/monitoring:v3/QueryTimeSeriesRequest": query_time_series_request
|
"/monitoring:v3/QueryTimeSeriesRequest": query_time_series_request
|
||||||
"/monitoring:v3/QueryTimeSeriesRequest/pageSize": page_size
|
"/monitoring:v3/QueryTimeSeriesRequest/pageSize": page_size
|
||||||
"/monitoring:v3/QueryTimeSeriesRequest/pageToken": page_token
|
"/monitoring:v3/QueryTimeSeriesRequest/pageToken": page_token
|
||||||
|
@ -110019,6 +110042,8 @@
|
||||||
"/monitoring:v3/QueryTimeSeriesResponse/timeSeriesData": time_series_data
|
"/monitoring:v3/QueryTimeSeriesResponse/timeSeriesData": time_series_data
|
||||||
"/monitoring:v3/QueryTimeSeriesResponse/timeSeriesData/time_series_datum": time_series_datum
|
"/monitoring:v3/QueryTimeSeriesResponse/timeSeriesData/time_series_datum": time_series_datum
|
||||||
"/monitoring:v3/QueryTimeSeriesResponse/timeSeriesDescriptor": time_series_descriptor
|
"/monitoring:v3/QueryTimeSeriesResponse/timeSeriesDescriptor": time_series_descriptor
|
||||||
|
"/monitoring:v3/QueryTimeSeriesResponse/warnings": warnings
|
||||||
|
"/monitoring:v3/QueryTimeSeriesResponse/warnings/warning": warning
|
||||||
"/monitoring:v3/Range": range
|
"/monitoring:v3/Range": range
|
||||||
"/monitoring:v3/Range/max": max
|
"/monitoring:v3/Range/max": max
|
||||||
"/monitoring:v3/Range/min": min
|
"/monitoring:v3/Range/min": min
|
||||||
|
@ -110063,6 +110088,12 @@
|
||||||
"/monitoring:v3/TcpCheck/port": port
|
"/monitoring:v3/TcpCheck/port": port
|
||||||
"/monitoring:v3/Telemetry": telemetry
|
"/monitoring:v3/Telemetry": telemetry
|
||||||
"/monitoring:v3/Telemetry/resourceName": resource_name
|
"/monitoring:v3/Telemetry/resourceName": resource_name
|
||||||
|
"/monitoring:v3/TextLocator": text_locator
|
||||||
|
"/monitoring:v3/TextLocator/endPosition": end_position
|
||||||
|
"/monitoring:v3/TextLocator/nestedLocator": nested_locator
|
||||||
|
"/monitoring:v3/TextLocator/nestingReason": nesting_reason
|
||||||
|
"/monitoring:v3/TextLocator/source": source
|
||||||
|
"/monitoring:v3/TextLocator/startPosition": start_position
|
||||||
"/monitoring:v3/TimeInterval": time_interval
|
"/monitoring:v3/TimeInterval": time_interval
|
||||||
"/monitoring:v3/TimeInterval/endTime": end_time
|
"/monitoring:v3/TimeInterval/endTime": end_time
|
||||||
"/monitoring:v3/TimeInterval/startTime": start_time
|
"/monitoring:v3/TimeInterval/startTime": start_time
|
||||||
|
@ -126636,6 +126667,7 @@
|
||||||
"/servicenetworking:v1/CustomHttpPattern": custom_http_pattern
|
"/servicenetworking:v1/CustomHttpPattern": custom_http_pattern
|
||||||
"/servicenetworking:v1/CustomHttpPattern/kind": kind
|
"/servicenetworking:v1/CustomHttpPattern/kind": kind
|
||||||
"/servicenetworking:v1/CustomHttpPattern/path": path
|
"/servicenetworking:v1/CustomHttpPattern/path": path
|
||||||
|
"/servicenetworking:v1/DeletePeeredDnsDomainMetadata": delete_peered_dns_domain_metadata
|
||||||
"/servicenetworking:v1/DisableVpcServiceControlsRequest": disable_vpc_service_controls_request
|
"/servicenetworking:v1/DisableVpcServiceControlsRequest": disable_vpc_service_controls_request
|
||||||
"/servicenetworking:v1/DisableVpcServiceControlsRequest/consumerNetwork": consumer_network
|
"/servicenetworking:v1/DisableVpcServiceControlsRequest/consumerNetwork": consumer_network
|
||||||
"/servicenetworking:v1/DnsRecordSet": dns_record_set
|
"/servicenetworking:v1/DnsRecordSet": dns_record_set
|
||||||
|
@ -126820,6 +126852,10 @@
|
||||||
"/servicenetworking:v1/Page/name": name
|
"/servicenetworking:v1/Page/name": name
|
||||||
"/servicenetworking:v1/Page/subpages": subpages
|
"/servicenetworking:v1/Page/subpages": subpages
|
||||||
"/servicenetworking:v1/Page/subpages/subpage": subpage
|
"/servicenetworking:v1/Page/subpages/subpage": subpage
|
||||||
|
"/servicenetworking:v1/PeeredDnsDomain": peered_dns_domain
|
||||||
|
"/servicenetworking:v1/PeeredDnsDomain/dnsSuffix": dns_suffix
|
||||||
|
"/servicenetworking:v1/PeeredDnsDomain/name": name
|
||||||
|
"/servicenetworking:v1/PeeredDnsDomainMetadata": peered_dns_domain_metadata
|
||||||
"/servicenetworking:v1/PolicyBinding": policy_binding
|
"/servicenetworking:v1/PolicyBinding": policy_binding
|
||||||
"/servicenetworking:v1/PolicyBinding/member": member
|
"/servicenetworking:v1/PolicyBinding/member": member
|
||||||
"/servicenetworking:v1/PolicyBinding/role": role
|
"/servicenetworking:v1/PolicyBinding/role": role
|
||||||
|
@ -127009,6 +127045,10 @@
|
||||||
"/servicenetworking:v1/servicenetworking.services.dnsZones.remove/parent": parent
|
"/servicenetworking:v1/servicenetworking.services.dnsZones.remove/parent": parent
|
||||||
"/servicenetworking:v1/servicenetworking.services.enableVpcServiceControls": enable_vpc_service_controls
|
"/servicenetworking:v1/servicenetworking.services.enableVpcServiceControls": enable_vpc_service_controls
|
||||||
"/servicenetworking:v1/servicenetworking.services.enableVpcServiceControls/parent": parent
|
"/servicenetworking:v1/servicenetworking.services.enableVpcServiceControls/parent": parent
|
||||||
|
"/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.create": create_service_project_global_network_peered_dns_domain
|
||||||
|
"/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.create/parent": parent
|
||||||
|
"/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.delete": delete_service_project_global_network_peered_dns_domain
|
||||||
|
"/servicenetworking:v1/servicenetworking.services.projects.global.networks.peeredDnsDomains.delete/name": name
|
||||||
"/servicenetworking:v1/servicenetworking.services.roles.add": add_roles
|
"/servicenetworking:v1/servicenetworking.services.roles.add": add_roles
|
||||||
"/servicenetworking:v1/servicenetworking.services.roles.add/parent": parent
|
"/servicenetworking:v1/servicenetworking.services.roles.add/parent": parent
|
||||||
"/servicenetworking:v1/servicenetworking.services.searchRange": search_service_range
|
"/servicenetworking:v1/servicenetworking.services.searchRange": search_service_range
|
||||||
|
@ -127124,6 +127164,7 @@
|
||||||
"/servicenetworking:v1beta/CustomHttpPattern": custom_http_pattern
|
"/servicenetworking:v1beta/CustomHttpPattern": custom_http_pattern
|
||||||
"/servicenetworking:v1beta/CustomHttpPattern/kind": kind
|
"/servicenetworking:v1beta/CustomHttpPattern/kind": kind
|
||||||
"/servicenetworking:v1beta/CustomHttpPattern/path": path
|
"/servicenetworking:v1beta/CustomHttpPattern/path": path
|
||||||
|
"/servicenetworking:v1beta/DeletePeeredDnsDomainMetadata": delete_peered_dns_domain_metadata
|
||||||
"/servicenetworking:v1beta/DnsRecordSet": dns_record_set
|
"/servicenetworking:v1beta/DnsRecordSet": dns_record_set
|
||||||
"/servicenetworking:v1beta/DnsRecordSet/data": data
|
"/servicenetworking:v1beta/DnsRecordSet/data": data
|
||||||
"/servicenetworking:v1beta/DnsRecordSet/data/datum": datum
|
"/servicenetworking:v1beta/DnsRecordSet/data/datum": datum
|
||||||
|
@ -127299,6 +127340,10 @@
|
||||||
"/servicenetworking:v1beta/Page/name": name
|
"/servicenetworking:v1beta/Page/name": name
|
||||||
"/servicenetworking:v1beta/Page/subpages": subpages
|
"/servicenetworking:v1beta/Page/subpages": subpages
|
||||||
"/servicenetworking:v1beta/Page/subpages/subpage": subpage
|
"/servicenetworking:v1beta/Page/subpages/subpage": subpage
|
||||||
|
"/servicenetworking:v1beta/PeeredDnsDomain": peered_dns_domain
|
||||||
|
"/servicenetworking:v1beta/PeeredDnsDomain/dnsSuffix": dns_suffix
|
||||||
|
"/servicenetworking:v1beta/PeeredDnsDomain/name": name
|
||||||
|
"/servicenetworking:v1beta/PeeredDnsDomainMetadata": peered_dns_domain_metadata
|
||||||
"/servicenetworking:v1beta/PolicyBinding": policy_binding
|
"/servicenetworking:v1beta/PolicyBinding": policy_binding
|
||||||
"/servicenetworking:v1beta/PolicyBinding/member": member
|
"/servicenetworking:v1beta/PolicyBinding/member": member
|
||||||
"/servicenetworking:v1beta/PolicyBinding/role": role
|
"/servicenetworking:v1beta/PolicyBinding/role": role
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/apps-marketplace
|
# @see https://developers.google.com/apps-marketplace
|
||||||
module AppsmarketV2
|
module AppsmarketV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20200810'
|
REVISION = '20200817'
|
||||||
|
|
||||||
# View your installed application's licensing information
|
# View your installed application's licensing information
|
||||||
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'
|
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'
|
||||||
|
|
|
@ -25,14 +25,47 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||||
module CalendarV3
|
module CalendarV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20200610'
|
REVISION = '20200818'
|
||||||
|
|
||||||
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
||||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||||
|
|
||||||
|
# See and change the sharing permissions of Google calendars you own
|
||||||
|
AUTH_CALENDAR_ACLS = 'https://www.googleapis.com/auth/calendar.acls'
|
||||||
|
|
||||||
|
# See the sharing permissions of Google calendars you own
|
||||||
|
AUTH_CALENDAR_ACLS_READONLY = 'https://www.googleapis.com/auth/calendar.acls.readonly'
|
||||||
|
|
||||||
|
# Make secondary Google calendars, and see, create, change, and delete events on them
|
||||||
|
AUTH_CALENDAR_APP_CREATED = 'https://www.googleapis.com/auth/calendar.app.created'
|
||||||
|
|
||||||
|
# See, add, and remove Google calendars you’re subscribed to
|
||||||
|
AUTH_CALENDAR_CALENDARLIST = 'https://www.googleapis.com/auth/calendar.calendarlist'
|
||||||
|
|
||||||
|
# See the list of Google calendars you’re subscribed to
|
||||||
|
AUTH_CALENDAR_CALENDARLIST_READONLY = 'https://www.googleapis.com/auth/calendar.calendarlist.readonly'
|
||||||
|
|
||||||
|
# See and change the properties of Google calendars you have access to, and create secondary calendars
|
||||||
|
AUTH_CALENDAR_CALENDARS = 'https://www.googleapis.com/auth/calendar.calendars'
|
||||||
|
|
||||||
|
# See the title, description, default time zone, and other properties of Google calendars you have access to
|
||||||
|
AUTH_CALENDAR_CALENDARS_READONLY = 'https://www.googleapis.com/auth/calendar.calendars.readonly'
|
||||||
|
|
||||||
# View and edit events on all your calendars
|
# View and edit events on all your calendars
|
||||||
AUTH_CALENDAR_EVENTS = 'https://www.googleapis.com/auth/calendar.events'
|
AUTH_CALENDAR_EVENTS = 'https://www.googleapis.com/auth/calendar.events'
|
||||||
|
|
||||||
|
# See the availability on Google calendars you have access to
|
||||||
|
AUTH_CALENDAR_EVENTS_FREEBUSY = 'https://www.googleapis.com/auth/calendar.events.freebusy'
|
||||||
|
|
||||||
|
# See, create, change, and delete events on Google calendars you own
|
||||||
|
AUTH_CALENDAR_EVENTS_OWNED = 'https://www.googleapis.com/auth/calendar.events.owned'
|
||||||
|
|
||||||
|
# See the events on Google calendars you own
|
||||||
|
AUTH_CALENDAR_EVENTS_OWNED_READONLY = 'https://www.googleapis.com/auth/calendar.events.owned.readonly'
|
||||||
|
|
||||||
|
# See the events on public calendars
|
||||||
|
AUTH_CALENDAR_EVENTS_PUBLIC_READONLY = 'https://www.googleapis.com/auth/calendar.events.public.readonly'
|
||||||
|
|
||||||
# View events on all your calendars
|
# View events on all your calendars
|
||||||
AUTH_CALENDAR_EVENTS_READONLY = 'https://www.googleapis.com/auth/calendar.events.readonly'
|
AUTH_CALENDAR_EVENTS_READONLY = 'https://www.googleapis.com/auth/calendar.events.readonly'
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeAlpha
|
module ComputeAlpha
|
||||||
VERSION = 'Alpha'
|
VERSION = 'Alpha'
|
||||||
REVISION = '20200719'
|
REVISION = '20200727'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -2901,7 +2901,7 @@ module Google
|
||||||
attr_accessor :cache_mode
|
attr_accessor :cache_mode
|
||||||
|
|
||||||
# Specifies a separate client (e.g. browser client) TTL, separate from the TTL
|
# Specifies a separate client (e.g. browser client) TTL, separate from the TTL
|
||||||
# for Cloud CDN?s edge caches. Leaving this empty will use the same cache TTL
|
# for Cloud CDN's edge caches. Leaving this empty will use the same cache TTL
|
||||||
# for both Cloud CDN and the client-facing response. The maximum allowed value
|
# for both Cloud CDN and the client-facing response. The maximum allowed value
|
||||||
# is 86400s (1 day).
|
# is 86400s (1 day).
|
||||||
# Corresponds to the JSON property `clientTtl`
|
# Corresponds to the JSON property `clientTtl`
|
||||||
|
@ -2910,7 +2910,7 @@ module Google
|
||||||
|
|
||||||
# Specifies the default TTL for cached content served by this origin for
|
# Specifies the default TTL for cached content served by this origin for
|
||||||
# responses that do not have an existing valid TTL (max-age or s-max-age).
|
# responses that do not have an existing valid TTL (max-age or s-max-age).
|
||||||
# Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? disables
|
# Setting a TTL of "0" means "always revalidate" and a value of "-1" disables
|
||||||
# caching for that status code. The value of defaultTTL cannot be set to a value
|
# caching for that status code. The value of defaultTTL cannot be set to a value
|
||||||
# greater than that of maxTTL, but can be equal. When the cacheMode is set to
|
# greater than that of maxTTL, but can be equal. When the cacheMode is set to
|
||||||
# FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses.
|
# FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses.
|
||||||
|
@ -2924,7 +2924,7 @@ module Google
|
||||||
# Cache directives that attempt to set a max-age or s-maxage higher than this,
|
# Cache directives that attempt to set a max-age or s-maxage higher than this,
|
||||||
# or an Expires header more than maxTTL seconds in the future will be capped at
|
# or an Expires header more than maxTTL seconds in the future will be capped at
|
||||||
# the value of maxTTL, as if it were the value of an s-maxage Cache-Control
|
# the value of maxTTL, as if it were the value of an s-maxage Cache-Control
|
||||||
# directive. Setting a TTL of ?0? means ?always revalidate? and a value of ?-1?
|
# directive. Setting a TTL of "0" means "always revalidate" and a value of "-1"
|
||||||
# disables caching for that status code. The maximum allowed value is 31,622,
|
# disables caching for that status code. The maximum allowed value is 31,622,
|
||||||
# 400s (1 year), noting that infrequently accessed objects may be evicted from
|
# 400s (1 year), noting that infrequently accessed objects may be evicted from
|
||||||
# the cache before the defined TTL.
|
# the cache before the defined TTL.
|
||||||
|
@ -2947,13 +2947,13 @@ module Google
|
||||||
|
|
||||||
# Sets a cache TTL for the specified HTTP status code. negative_caching must be
|
# Sets a cache TTL for the specified HTTP status code. negative_caching must be
|
||||||
# enabled to configure negative_caching_policy. Omitting the policy and leaving
|
# enabled to configure negative_caching_policy. Omitting the policy and leaving
|
||||||
# negative_caching enabled will use Cloud CDN?s default cache TTLs. Note that
|
# negative_caching enabled will use Cloud CDN's default cache TTLs. Note that
|
||||||
# when specifying an explicit negative_caching_policy, you should take care to
|
# when specifying an explicit negative_caching_policy, you should take care to
|
||||||
# specify a cache TTL for all response codes that you wish to cache. Cloud CDN
|
# specify a cache TTL for all response codes that you wish to cache. Cloud CDN
|
||||||
# will not apply any default negative caching when a policy exists.
|
# will not apply any default negative caching when a policy exists.
|
||||||
# Corresponds to the JSON property `negativeCachingPolicys`
|
# Corresponds to the JSON property `negativeCachingPolicy`
|
||||||
# @return [Array<Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy>]
|
# @return [Array<Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy>]
|
||||||
attr_accessor :negative_caching_policys
|
attr_accessor :negative_caching_policy
|
||||||
|
|
||||||
# If true then Cloud CDN will combine multiple concurrent cache fill requests
|
# If true then Cloud CDN will combine multiple concurrent cache fill requests
|
||||||
# into a small number of requests to the origin.
|
# into a small number of requests to the origin.
|
||||||
|
@ -2989,7 +2989,7 @@ module Google
|
||||||
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
||||||
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
|
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
|
||||||
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
|
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
|
||||||
@negative_caching_policys = args[:negative_caching_policys] if args.key?(:negative_caching_policys)
|
@negative_caching_policy = args[:negative_caching_policy] if args.key?(:negative_caching_policy)
|
||||||
@request_coalescing = args[:request_coalescing] if args.key?(:request_coalescing)
|
@request_coalescing = args[:request_coalescing] if args.key?(:request_coalescing)
|
||||||
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
|
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
|
||||||
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
|
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
|
||||||
|
@ -3008,7 +3008,7 @@ module Google
|
||||||
attr_accessor :code
|
attr_accessor :code
|
||||||
|
|
||||||
# The TTL (in seconds) to cache responses with the corresponding status code for.
|
# The TTL (in seconds) to cache responses with the corresponding status code for.
|
||||||
# A TTL of ?0? means ?always revalidate? and a value of ?-1? disables caching
|
# A TTL of "0" means "always revalidate" and a value of "-1" disables caching
|
||||||
# for that status code. The maximum allowed value is 1800s (30 minutes), noting
|
# for that status code. The maximum allowed value is 1800s (30 minutes), noting
|
||||||
# that infrequently accessed objects may be evicted from the cache before the
|
# that infrequently accessed objects may be evicted from the cache before the
|
||||||
# defined TTL.
|
# defined TTL.
|
||||||
|
@ -3596,7 +3596,7 @@ module Google
|
||||||
attr_accessor :cache_mode
|
attr_accessor :cache_mode
|
||||||
|
|
||||||
# Specifies a separate client (e.g. browser client) TTL, separate from the TTL
|
# Specifies a separate client (e.g. browser client) TTL, separate from the TTL
|
||||||
# for Cloud CDN?s edge caches. Leaving this empty will use the same cache TTL
|
# for Cloud CDN's edge caches. Leaving this empty will use the same cache TTL
|
||||||
# for both Cloud CDN and the client-facing response. The maximum allowed value
|
# for both Cloud CDN and the client-facing response. The maximum allowed value
|
||||||
# is 86400s (1 day).
|
# is 86400s (1 day).
|
||||||
# Corresponds to the JSON property `clientTtl`
|
# Corresponds to the JSON property `clientTtl`
|
||||||
|
@ -3605,7 +3605,7 @@ module Google
|
||||||
|
|
||||||
# Specifies the default TTL for cached content served by this origin for
|
# Specifies the default TTL for cached content served by this origin for
|
||||||
# responses that do not have an existing valid TTL (max-age or s-max-age).
|
# responses that do not have an existing valid TTL (max-age or s-max-age).
|
||||||
# Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? disables
|
# Setting a TTL of "0" means "always revalidate" and a value of "-1" disables
|
||||||
# caching for that status code. The value of defaultTTL cannot be set to a value
|
# caching for that status code. The value of defaultTTL cannot be set to a value
|
||||||
# greater than that of maxTTL, but can be equal. When the cacheMode is set to
|
# greater than that of maxTTL, but can be equal. When the cacheMode is set to
|
||||||
# FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses.
|
# FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses.
|
||||||
|
@ -3619,7 +3619,7 @@ module Google
|
||||||
# Cache directives that attempt to set a max-age or s-maxage higher than this,
|
# Cache directives that attempt to set a max-age or s-maxage higher than this,
|
||||||
# or an Expires header more than maxTTL seconds in the future will be capped at
|
# or an Expires header more than maxTTL seconds in the future will be capped at
|
||||||
# the value of maxTTL, as if it were the value of an s-maxage Cache-Control
|
# the value of maxTTL, as if it were the value of an s-maxage Cache-Control
|
||||||
# directive. Setting a TTL of ?0? means ?always revalidate? and a value of ?-1?
|
# directive. Setting a TTL of "0" means "always revalidate" and a value of "-1"
|
||||||
# disables caching for that status code. The maximum allowed value is 31,622,
|
# disables caching for that status code. The maximum allowed value is 31,622,
|
||||||
# 400s (1 year), noting that infrequently accessed objects may be evicted from
|
# 400s (1 year), noting that infrequently accessed objects may be evicted from
|
||||||
# the cache before the defined TTL.
|
# the cache before the defined TTL.
|
||||||
|
@ -3642,13 +3642,13 @@ module Google
|
||||||
|
|
||||||
# Sets a cache TTL for the specified HTTP status code. negative_caching must be
|
# Sets a cache TTL for the specified HTTP status code. negative_caching must be
|
||||||
# enabled to configure negative_caching_policy. Omitting the policy and leaving
|
# enabled to configure negative_caching_policy. Omitting the policy and leaving
|
||||||
# negative_caching enabled will use Cloud CDN?s default cache TTLs. Note that
|
# negative_caching enabled will use Cloud CDN's default cache TTLs. Note that
|
||||||
# when specifying an explicit negative_caching_policy, you should take care to
|
# when specifying an explicit negative_caching_policy, you should take care to
|
||||||
# specify a cache TTL for all response codes that you wish to cache. Cloud CDN
|
# specify a cache TTL for all response codes that you wish to cache. Cloud CDN
|
||||||
# will not apply any default negative caching when a policy exists.
|
# will not apply any default negative caching when a policy exists.
|
||||||
# Corresponds to the JSON property `negativeCachingPolicys`
|
# Corresponds to the JSON property `negativeCachingPolicy`
|
||||||
# @return [Array<Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy>]
|
# @return [Array<Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy>]
|
||||||
attr_accessor :negative_caching_policys
|
attr_accessor :negative_caching_policy
|
||||||
|
|
||||||
# If true then Cloud CDN will combine multiple concurrent cache fill requests
|
# If true then Cloud CDN will combine multiple concurrent cache fill requests
|
||||||
# into a small number of requests to the origin.
|
# into a small number of requests to the origin.
|
||||||
|
@ -3685,7 +3685,7 @@ module Google
|
||||||
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
||||||
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
|
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
|
||||||
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
|
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
|
||||||
@negative_caching_policys = args[:negative_caching_policys] if args.key?(:negative_caching_policys)
|
@negative_caching_policy = args[:negative_caching_policy] if args.key?(:negative_caching_policy)
|
||||||
@request_coalescing = args[:request_coalescing] if args.key?(:request_coalescing)
|
@request_coalescing = args[:request_coalescing] if args.key?(:request_coalescing)
|
||||||
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
|
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
|
||||||
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
|
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
|
||||||
|
@ -3704,7 +3704,7 @@ module Google
|
||||||
attr_accessor :code
|
attr_accessor :code
|
||||||
|
|
||||||
# The TTL (in seconds) to cache responses with the corresponding status code for.
|
# The TTL (in seconds) to cache responses with the corresponding status code for.
|
||||||
# A TTL of ?0? means ?always revalidate? and a value of ?-1? disables caching
|
# A TTL of "0" means "always revalidate" and a value of "-1" disables caching
|
||||||
# for that status code. The maximum allowed value is 1800s (30 minutes), noting
|
# for that status code. The maximum allowed value is 1800s (30 minutes), noting
|
||||||
# that infrequently accessed objects may be evicted from the cache before the
|
# that infrequently accessed objects may be evicted from the cache before the
|
||||||
# defined TTL.
|
# defined TTL.
|
||||||
|
@ -29309,12 +29309,19 @@ module Google
|
||||||
class ResourcePolicyInstanceSchedulePolicy
|
class ResourcePolicyInstanceSchedulePolicy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Schedule for the instance operation.
|
# Specifies the time zone to be used in interpreting Schedule.schedule. The
|
||||||
|
# value of this field must be a time zone name from the tz database: http://en.
|
||||||
|
# wikipedia.org/wiki/Tz_database.
|
||||||
|
# Corresponds to the JSON property `timeZone`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time_zone
|
||||||
|
|
||||||
|
# Schedule for an instance operation.
|
||||||
# Corresponds to the JSON property `vmStartSchedule`
|
# Corresponds to the JSON property `vmStartSchedule`
|
||||||
# @return [Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule]
|
# @return [Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule]
|
||||||
attr_accessor :vm_start_schedule
|
attr_accessor :vm_start_schedule
|
||||||
|
|
||||||
# Schedule for the instance operation.
|
# Schedule for an instance operation.
|
||||||
# Corresponds to the JSON property `vmStopSchedule`
|
# Corresponds to the JSON property `vmStopSchedule`
|
||||||
# @return [Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule]
|
# @return [Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule]
|
||||||
attr_accessor :vm_stop_schedule
|
attr_accessor :vm_stop_schedule
|
||||||
|
@ -29325,12 +29332,13 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
||||||
@vm_start_schedule = args[:vm_start_schedule] if args.key?(:vm_start_schedule)
|
@vm_start_schedule = args[:vm_start_schedule] if args.key?(:vm_start_schedule)
|
||||||
@vm_stop_schedule = args[:vm_stop_schedule] if args.key?(:vm_stop_schedule)
|
@vm_stop_schedule = args[:vm_stop_schedule] if args.key?(:vm_stop_schedule)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Schedule for the instance operation.
|
# Schedule for an instance operation.
|
||||||
class ResourcePolicyInstanceSchedulePolicySchedule
|
class ResourcePolicyInstanceSchedulePolicySchedule
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -29339,13 +29347,6 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :schedule
|
attr_accessor :schedule
|
||||||
|
|
||||||
# Specifies the time zone to be used in interpreting Schedule.schedule. The
|
|
||||||
# value of this field must be a time zone name from the tz database: http://en.
|
|
||||||
# wikipedia.org/wiki/Tz_database.
|
|
||||||
# Corresponds to the JSON property `timeZone`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :time_zone
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -29353,7 +29354,6 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@schedule = args[:schedule] if args.key?(:schedule)
|
@schedule = args[:schedule] if args.key?(:schedule)
|
||||||
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -30980,12 +30980,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :match
|
attr_accessor :match
|
||||||
|
|
||||||
# An integer indicating the priority of a rule in the list. The priority must be
|
# An integer uniquely identifying a rule in the list. The rule number must be a
|
||||||
# a positive value between 0 and 65000. The priority must be unique among rules
|
# positive value between 0 and 65000, and must be unique among rules within a
|
||||||
# within a NAT.
|
# NAT.
|
||||||
# Corresponds to the JSON property `priority`
|
# Corresponds to the JSON property `ruleNumber`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :priority
|
attr_accessor :rule_number
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -30996,7 +30996,7 @@ module Google
|
||||||
@action = args[:action] if args.key?(:action)
|
@action = args[:action] if args.key?(:action)
|
||||||
@description = args[:description] if args.key?(:description)
|
@description = args[:description] if args.key?(:description)
|
||||||
@match = args[:match] if args.key?(:match)
|
@match = args[:match] if args.key?(:match)
|
||||||
@priority = args[:priority] if args.key?(:priority)
|
@rule_number = args[:rule_number] if args.key?(:rule_number)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -31286,10 +31286,10 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :num_vm_endpoints_with_nat_mappings
|
attr_accessor :num_vm_endpoints_with_nat_mappings
|
||||||
|
|
||||||
# Priority of the rule.
|
# Rule number of the rule.
|
||||||
# Corresponds to the JSON property `priority`
|
# Corresponds to the JSON property `ruleNumber`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :priority
|
attr_accessor :rule_number
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -31301,7 +31301,7 @@ module Google
|
||||||
@drain_nat_ips = args[:drain_nat_ips] if args.key?(:drain_nat_ips)
|
@drain_nat_ips = args[:drain_nat_ips] if args.key?(:drain_nat_ips)
|
||||||
@min_extra_ips_needed = args[:min_extra_ips_needed] if args.key?(:min_extra_ips_needed)
|
@min_extra_ips_needed = args[:min_extra_ips_needed] if args.key?(:min_extra_ips_needed)
|
||||||
@num_vm_endpoints_with_nat_mappings = args[:num_vm_endpoints_with_nat_mappings] if args.key?(:num_vm_endpoints_with_nat_mappings)
|
@num_vm_endpoints_with_nat_mappings = args[:num_vm_endpoints_with_nat_mappings] if args.key?(:num_vm_endpoints_with_nat_mappings)
|
||||||
@priority = args[:priority] if args.key?(:priority)
|
@rule_number = args[:rule_number] if args.key?(:rule_number)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -32451,7 +32451,7 @@ module Google
|
||||||
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigLayer4Config>]
|
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigLayer4Config>]
|
||||||
attr_accessor :layer4_configs
|
attr_accessor :layer4_configs
|
||||||
|
|
||||||
# CIDR IP address range.
|
# CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
|
||||||
# Corresponds to the JSON property `srcIpRanges`
|
# Corresponds to the JSON property `srcIpRanges`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :src_ip_ranges
|
attr_accessor :src_ip_ranges
|
||||||
|
@ -35511,7 +35511,7 @@ module Google
|
||||||
# A target gRPC proxy is a component of load balancers intended for load
|
# A target gRPC proxy is a component of load balancers intended for load
|
||||||
# balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy.
|
# balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy.
|
||||||
# The Target gRPC Proxy references a URL map which specifies how traffic routes
|
# The Target gRPC Proxy references a URL map which specifies how traffic routes
|
||||||
# to gRPC backend services.
|
# to gRPC backend services. (== resource_for `$api_version`.targetGrpcProxies ==)
|
||||||
class TargetGrpcProxy
|
class TargetGrpcProxy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -35578,12 +35578,11 @@ module Google
|
||||||
# If true, indicates that the BackendServices referenced by the urlMap may be
|
# If true, indicates that the BackendServices referenced by the urlMap may be
|
||||||
# accessed by gRPC applications without using a sidecar proxy. This will enable
|
# accessed by gRPC applications without using a sidecar proxy. This will enable
|
||||||
# configuration checks on urlMap and its referenced BackendServices to not allow
|
# configuration checks on urlMap and its referenced BackendServices to not allow
|
||||||
# unsupported features. A gRPC application must use "xds-experimental:///"
|
# unsupported features. A gRPC application must use "xds:///" scheme in the
|
||||||
# scheme in the target URI of the service it is connecting to. If false,
|
# target URI of the service it is connecting to. If false, indicates that the
|
||||||
# indicates that the BackendServices referenced by the urlMap will be accessed
|
# BackendServices referenced by the urlMap will be accessed by gRPC applications
|
||||||
# by gRPC applications via a sidecar proxy. In this case, a gRPC application
|
# via a sidecar proxy. In this case, a gRPC application must not use "xds:///"
|
||||||
# must not use "xds-experimental:///" scheme in the target URI of the service it
|
# scheme in the target URI of the service it is connecting to
|
||||||
# is connecting to
|
|
||||||
# Corresponds to the JSON property `validateForProxyless`
|
# Corresponds to the JSON property `validateForProxyless`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :validate_for_proxyless
|
attr_accessor :validate_for_proxyless
|
||||||
|
@ -40022,10 +40021,10 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :num_total_nat_ports
|
attr_accessor :num_total_nat_ports
|
||||||
|
|
||||||
# Priority of the NAT Rule.
|
# Rule number of the NAT Rule.
|
||||||
# Corresponds to the JSON property `priority`
|
# Corresponds to the JSON property `ruleNumber`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :priority
|
attr_accessor :rule_number
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -40037,7 +40036,7 @@ module Google
|
||||||
@nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
|
@nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
|
||||||
@num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports)
|
@num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports)
|
||||||
@num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
|
@num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
|
||||||
@priority = args[:priority] if args.key?(:priority)
|
@rule_number = args[:rule_number] if args.key?(:rule_number)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -6174,7 +6174,7 @@ module Google
|
||||||
property :default_ttl, as: 'defaultTtl'
|
property :default_ttl, as: 'defaultTtl'
|
||||||
property :max_ttl, as: 'maxTtl'
|
property :max_ttl, as: 'maxTtl'
|
||||||
property :negative_caching, as: 'negativeCaching'
|
property :negative_caching, as: 'negativeCaching'
|
||||||
collection :negative_caching_policys, as: 'negativeCachingPolicys', class: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy::Representation
|
collection :negative_caching_policy, as: 'negativeCachingPolicy', class: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy::Representation
|
||||||
|
|
||||||
property :request_coalescing, as: 'requestCoalescing'
|
property :request_coalescing, as: 'requestCoalescing'
|
||||||
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
||||||
|
@ -6314,7 +6314,7 @@ module Google
|
||||||
property :default_ttl, as: 'defaultTtl'
|
property :default_ttl, as: 'defaultTtl'
|
||||||
property :max_ttl, as: 'maxTtl'
|
property :max_ttl, as: 'maxTtl'
|
||||||
property :negative_caching, as: 'negativeCaching'
|
property :negative_caching, as: 'negativeCaching'
|
||||||
collection :negative_caching_policys, as: 'negativeCachingPolicys', class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy::Representation
|
collection :negative_caching_policy, as: 'negativeCachingPolicy', class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy::Representation
|
||||||
|
|
||||||
property :request_coalescing, as: 'requestCoalescing'
|
property :request_coalescing, as: 'requestCoalescing'
|
||||||
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
||||||
|
@ -12652,6 +12652,7 @@ module Google
|
||||||
class ResourcePolicyInstanceSchedulePolicy
|
class ResourcePolicyInstanceSchedulePolicy
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :time_zone, as: 'timeZone'
|
||||||
property :vm_start_schedule, as: 'vmStartSchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule, decorator: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule::Representation
|
property :vm_start_schedule, as: 'vmStartSchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule, decorator: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule::Representation
|
||||||
|
|
||||||
property :vm_stop_schedule, as: 'vmStopSchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule, decorator: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule::Representation
|
property :vm_stop_schedule, as: 'vmStopSchedule', class: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule, decorator: Google::Apis::ComputeAlpha::ResourcePolicyInstanceSchedulePolicySchedule::Representation
|
||||||
|
@ -12663,7 +12664,6 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :schedule, as: 'schedule'
|
property :schedule, as: 'schedule'
|
||||||
property :time_zone, as: 'timeZone'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -13053,7 +13053,7 @@ module Google
|
||||||
|
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
property :match, as: 'match'
|
property :match, as: 'match'
|
||||||
property :priority, as: 'priority'
|
property :rule_number, as: 'ruleNumber'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -13131,7 +13131,7 @@ module Google
|
||||||
collection :drain_nat_ips, as: 'drainNatIps'
|
collection :drain_nat_ips, as: 'drainNatIps'
|
||||||
property :min_extra_ips_needed, as: 'minExtraIpsNeeded'
|
property :min_extra_ips_needed, as: 'minExtraIpsNeeded'
|
||||||
property :num_vm_endpoints_with_nat_mappings, as: 'numVmEndpointsWithNatMappings'
|
property :num_vm_endpoints_with_nat_mappings, as: 'numVmEndpointsWithNatMappings'
|
||||||
property :priority, as: 'priority'
|
property :rule_number, as: 'ruleNumber'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -15326,7 +15326,7 @@ module Google
|
||||||
collection :nat_ip_port_ranges, as: 'natIpPortRanges'
|
collection :nat_ip_port_ranges, as: 'natIpPortRanges'
|
||||||
property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts'
|
property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts'
|
||||||
property :num_total_nat_ports, as: 'numTotalNatPorts'
|
property :num_total_nat_ports, as: 'numTotalNatPorts'
|
||||||
property :priority, as: 'priority'
|
property :rule_number, as: 'ruleNumber'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeBeta
|
module ComputeBeta
|
||||||
VERSION = 'Beta'
|
VERSION = 'Beta'
|
||||||
REVISION = '20200719'
|
REVISION = '20200727'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -2620,7 +2620,7 @@ module Google
|
||||||
attr_accessor :cache_mode
|
attr_accessor :cache_mode
|
||||||
|
|
||||||
# Specifies a separate client (e.g. browser client) TTL, separate from the TTL
|
# Specifies a separate client (e.g. browser client) TTL, separate from the TTL
|
||||||
# for Cloud CDN?s edge caches. Leaving this empty will use the same cache TTL
|
# for Cloud CDN's edge caches. Leaving this empty will use the same cache TTL
|
||||||
# for both Cloud CDN and the client-facing response. The maximum allowed value
|
# for both Cloud CDN and the client-facing response. The maximum allowed value
|
||||||
# is 86400s (1 day).
|
# is 86400s (1 day).
|
||||||
# Corresponds to the JSON property `clientTtl`
|
# Corresponds to the JSON property `clientTtl`
|
||||||
|
@ -2629,7 +2629,7 @@ module Google
|
||||||
|
|
||||||
# Specifies the default TTL for cached content served by this origin for
|
# Specifies the default TTL for cached content served by this origin for
|
||||||
# responses that do not have an existing valid TTL (max-age or s-max-age).
|
# responses that do not have an existing valid TTL (max-age or s-max-age).
|
||||||
# Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? disables
|
# Setting a TTL of "0" means "always revalidate" and a value of "-1" disables
|
||||||
# caching for that status code. The value of defaultTTL cannot be set to a value
|
# caching for that status code. The value of defaultTTL cannot be set to a value
|
||||||
# greater than that of maxTTL, but can be equal. When the cacheMode is set to
|
# greater than that of maxTTL, but can be equal. When the cacheMode is set to
|
||||||
# FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses.
|
# FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses.
|
||||||
|
@ -2643,7 +2643,7 @@ module Google
|
||||||
# Cache directives that attempt to set a max-age or s-maxage higher than this,
|
# Cache directives that attempt to set a max-age or s-maxage higher than this,
|
||||||
# or an Expires header more than maxTTL seconds in the future will be capped at
|
# or an Expires header more than maxTTL seconds in the future will be capped at
|
||||||
# the value of maxTTL, as if it were the value of an s-maxage Cache-Control
|
# the value of maxTTL, as if it were the value of an s-maxage Cache-Control
|
||||||
# directive. Setting a TTL of ?0? means ?always revalidate? and a value of ?-1?
|
# directive. Setting a TTL of "0" means "always revalidate" and a value of "-1"
|
||||||
# disables caching for that status code. The maximum allowed value is 31,622,
|
# disables caching for that status code. The maximum allowed value is 31,622,
|
||||||
# 400s (1 year), noting that infrequently accessed objects may be evicted from
|
# 400s (1 year), noting that infrequently accessed objects may be evicted from
|
||||||
# the cache before the defined TTL.
|
# the cache before the defined TTL.
|
||||||
|
@ -2666,13 +2666,13 @@ module Google
|
||||||
|
|
||||||
# Sets a cache TTL for the specified HTTP status code. negative_caching must be
|
# Sets a cache TTL for the specified HTTP status code. negative_caching must be
|
||||||
# enabled to configure negative_caching_policy. Omitting the policy and leaving
|
# enabled to configure negative_caching_policy. Omitting the policy and leaving
|
||||||
# negative_caching enabled will use Cloud CDN?s default cache TTLs. Note that
|
# negative_caching enabled will use Cloud CDN's default cache TTLs. Note that
|
||||||
# when specifying an explicit negative_caching_policy, you should take care to
|
# when specifying an explicit negative_caching_policy, you should take care to
|
||||||
# specify a cache TTL for all response codes that you wish to cache. Cloud CDN
|
# specify a cache TTL for all response codes that you wish to cache. Cloud CDN
|
||||||
# will not apply any default negative caching when a policy exists.
|
# will not apply any default negative caching when a policy exists.
|
||||||
# Corresponds to the JSON property `negativeCachingPolicys`
|
# Corresponds to the JSON property `negativeCachingPolicy`
|
||||||
# @return [Array<Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy>]
|
# @return [Array<Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy>]
|
||||||
attr_accessor :negative_caching_policys
|
attr_accessor :negative_caching_policy
|
||||||
|
|
||||||
# Maximum number of seconds the response to a signed URL request will be
|
# Maximum number of seconds the response to a signed URL request will be
|
||||||
# considered fresh. After this time period, the response will be revalidated
|
# considered fresh. After this time period, the response will be revalidated
|
||||||
|
@ -2701,7 +2701,7 @@ module Google
|
||||||
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
||||||
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
|
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
|
||||||
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
|
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
|
||||||
@negative_caching_policys = args[:negative_caching_policys] if args.key?(:negative_caching_policys)
|
@negative_caching_policy = args[:negative_caching_policy] if args.key?(:negative_caching_policy)
|
||||||
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
|
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
|
||||||
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
|
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
|
||||||
end
|
end
|
||||||
|
@ -2719,7 +2719,7 @@ module Google
|
||||||
attr_accessor :code
|
attr_accessor :code
|
||||||
|
|
||||||
# The TTL (in seconds) to cache responses with the corresponding status code for.
|
# The TTL (in seconds) to cache responses with the corresponding status code for.
|
||||||
# A TTL of ?0? means ?always revalidate? and a value of ?-1? disables caching
|
# A TTL of "0" means "always revalidate" and a value of "-1" disables caching
|
||||||
# for that status code. The maximum allowed value is 1800s (30 minutes), noting
|
# for that status code. The maximum allowed value is 1800s (30 minutes), noting
|
||||||
# that infrequently accessed objects may be evicted from the cache before the
|
# that infrequently accessed objects may be evicted from the cache before the
|
||||||
# defined TTL.
|
# defined TTL.
|
||||||
|
@ -3295,7 +3295,7 @@ module Google
|
||||||
attr_accessor :cache_mode
|
attr_accessor :cache_mode
|
||||||
|
|
||||||
# Specifies a separate client (e.g. browser client) TTL, separate from the TTL
|
# Specifies a separate client (e.g. browser client) TTL, separate from the TTL
|
||||||
# for Cloud CDN?s edge caches. Leaving this empty will use the same cache TTL
|
# for Cloud CDN's edge caches. Leaving this empty will use the same cache TTL
|
||||||
# for both Cloud CDN and the client-facing response. The maximum allowed value
|
# for both Cloud CDN and the client-facing response. The maximum allowed value
|
||||||
# is 86400s (1 day).
|
# is 86400s (1 day).
|
||||||
# Corresponds to the JSON property `clientTtl`
|
# Corresponds to the JSON property `clientTtl`
|
||||||
|
@ -3304,7 +3304,7 @@ module Google
|
||||||
|
|
||||||
# Specifies the default TTL for cached content served by this origin for
|
# Specifies the default TTL for cached content served by this origin for
|
||||||
# responses that do not have an existing valid TTL (max-age or s-max-age).
|
# responses that do not have an existing valid TTL (max-age or s-max-age).
|
||||||
# Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? disables
|
# Setting a TTL of "0" means "always revalidate" and a value of "-1" disables
|
||||||
# caching for that status code. The value of defaultTTL cannot be set to a value
|
# caching for that status code. The value of defaultTTL cannot be set to a value
|
||||||
# greater than that of maxTTL, but can be equal. When the cacheMode is set to
|
# greater than that of maxTTL, but can be equal. When the cacheMode is set to
|
||||||
# FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses.
|
# FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses.
|
||||||
|
@ -3318,7 +3318,7 @@ module Google
|
||||||
# Cache directives that attempt to set a max-age or s-maxage higher than this,
|
# Cache directives that attempt to set a max-age or s-maxage higher than this,
|
||||||
# or an Expires header more than maxTTL seconds in the future will be capped at
|
# or an Expires header more than maxTTL seconds in the future will be capped at
|
||||||
# the value of maxTTL, as if it were the value of an s-maxage Cache-Control
|
# the value of maxTTL, as if it were the value of an s-maxage Cache-Control
|
||||||
# directive. Setting a TTL of ?0? means ?always revalidate? and a value of ?-1?
|
# directive. Setting a TTL of "0" means "always revalidate" and a value of "-1"
|
||||||
# disables caching for that status code. The maximum allowed value is 31,622,
|
# disables caching for that status code. The maximum allowed value is 31,622,
|
||||||
# 400s (1 year), noting that infrequently accessed objects may be evicted from
|
# 400s (1 year), noting that infrequently accessed objects may be evicted from
|
||||||
# the cache before the defined TTL.
|
# the cache before the defined TTL.
|
||||||
|
@ -3341,13 +3341,13 @@ module Google
|
||||||
|
|
||||||
# Sets a cache TTL for the specified HTTP status code. negative_caching must be
|
# Sets a cache TTL for the specified HTTP status code. negative_caching must be
|
||||||
# enabled to configure negative_caching_policy. Omitting the policy and leaving
|
# enabled to configure negative_caching_policy. Omitting the policy and leaving
|
||||||
# negative_caching enabled will use Cloud CDN?s default cache TTLs. Note that
|
# negative_caching enabled will use Cloud CDN's default cache TTLs. Note that
|
||||||
# when specifying an explicit negative_caching_policy, you should take care to
|
# when specifying an explicit negative_caching_policy, you should take care to
|
||||||
# specify a cache TTL for all response codes that you wish to cache. Cloud CDN
|
# specify a cache TTL for all response codes that you wish to cache. Cloud CDN
|
||||||
# will not apply any default negative caching when a policy exists.
|
# will not apply any default negative caching when a policy exists.
|
||||||
# Corresponds to the JSON property `negativeCachingPolicys`
|
# Corresponds to the JSON property `negativeCachingPolicy`
|
||||||
# @return [Array<Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy>]
|
# @return [Array<Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy>]
|
||||||
attr_accessor :negative_caching_policys
|
attr_accessor :negative_caching_policy
|
||||||
|
|
||||||
# Maximum number of seconds the response to a signed URL request will be
|
# Maximum number of seconds the response to a signed URL request will be
|
||||||
# considered fresh. After this time period, the response will be revalidated
|
# considered fresh. After this time period, the response will be revalidated
|
||||||
|
@ -3377,7 +3377,7 @@ module Google
|
||||||
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
@default_ttl = args[:default_ttl] if args.key?(:default_ttl)
|
||||||
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
|
@max_ttl = args[:max_ttl] if args.key?(:max_ttl)
|
||||||
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
|
@negative_caching = args[:negative_caching] if args.key?(:negative_caching)
|
||||||
@negative_caching_policys = args[:negative_caching_policys] if args.key?(:negative_caching_policys)
|
@negative_caching_policy = args[:negative_caching_policy] if args.key?(:negative_caching_policy)
|
||||||
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
|
@signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec)
|
||||||
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
|
@signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names)
|
||||||
end
|
end
|
||||||
|
@ -3395,7 +3395,7 @@ module Google
|
||||||
attr_accessor :code
|
attr_accessor :code
|
||||||
|
|
||||||
# The TTL (in seconds) to cache responses with the corresponding status code for.
|
# The TTL (in seconds) to cache responses with the corresponding status code for.
|
||||||
# A TTL of ?0? means ?always revalidate? and a value of ?-1? disables caching
|
# A TTL of "0" means "always revalidate" and a value of "-1" disables caching
|
||||||
# for that status code. The maximum allowed value is 1800s (30 minutes), noting
|
# for that status code. The maximum allowed value is 1800s (30 minutes), noting
|
||||||
# that infrequently accessed objects may be evicted from the cache before the
|
# that infrequently accessed objects may be evicted from the cache before the
|
||||||
# defined TTL.
|
# defined TTL.
|
||||||
|
@ -28491,7 +28491,7 @@ module Google
|
||||||
# @return [Array<Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfigLayer4Config>]
|
# @return [Array<Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfigLayer4Config>]
|
||||||
attr_accessor :layer4_configs
|
attr_accessor :layer4_configs
|
||||||
|
|
||||||
# CIDR IP address range.
|
# CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
|
||||||
# Corresponds to the JSON property `srcIpRanges`
|
# Corresponds to the JSON property `srcIpRanges`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :src_ip_ranges
|
attr_accessor :src_ip_ranges
|
||||||
|
@ -30427,16 +30427,6 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :private_ipv6_google_access
|
attr_accessor :private_ipv6_google_access
|
||||||
|
|
||||||
# Deprecated in favor of enable PrivateIpv6GoogleAccess on instance directly.
|
|
||||||
# The service accounts can be used to selectively turn on Private IPv6 Google
|
|
||||||
# Access only on the VMs primary service account matching the value. This value
|
|
||||||
# only takes effect when PrivateIpv6GoogleAccess is
|
|
||||||
# ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS or
|
|
||||||
# ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS.
|
|
||||||
# Corresponds to the JSON property `privateIpv6GoogleAccessServiceAccounts`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :private_ipv6_google_access_service_accounts
|
|
||||||
|
|
||||||
# The purpose of the resource. This field can be either PRIVATE_RFC_1918 or
|
# The purpose of the resource. This field can be either PRIVATE_RFC_1918 or
|
||||||
# INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to
|
# INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to
|
||||||
# INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for
|
# INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for
|
||||||
|
@ -30507,7 +30497,6 @@ module Google
|
||||||
@network = args[:network] if args.key?(:network)
|
@network = args[:network] if args.key?(:network)
|
||||||
@private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access)
|
@private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access)
|
||||||
@private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access)
|
@private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access)
|
||||||
@private_ipv6_google_access_service_accounts = args[:private_ipv6_google_access_service_accounts] if args.key?(:private_ipv6_google_access_service_accounts)
|
|
||||||
@purpose = args[:purpose] if args.key?(:purpose)
|
@purpose = args[:purpose] if args.key?(:purpose)
|
||||||
@region = args[:region] if args.key?(:region)
|
@region = args[:region] if args.key?(:region)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
@ -31079,7 +31068,7 @@ module Google
|
||||||
# A target gRPC proxy is a component of load balancers intended for load
|
# A target gRPC proxy is a component of load balancers intended for load
|
||||||
# balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy.
|
# balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy.
|
||||||
# The Target gRPC Proxy references a URL map which specifies how traffic routes
|
# The Target gRPC Proxy references a URL map which specifies how traffic routes
|
||||||
# to gRPC backend services.
|
# to gRPC backend services. (== resource_for `$api_version`.targetGrpcProxies ==)
|
||||||
class TargetGrpcProxy
|
class TargetGrpcProxy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -31146,12 +31135,11 @@ module Google
|
||||||
# If true, indicates that the BackendServices referenced by the urlMap may be
|
# If true, indicates that the BackendServices referenced by the urlMap may be
|
||||||
# accessed by gRPC applications without using a sidecar proxy. This will enable
|
# accessed by gRPC applications without using a sidecar proxy. This will enable
|
||||||
# configuration checks on urlMap and its referenced BackendServices to not allow
|
# configuration checks on urlMap and its referenced BackendServices to not allow
|
||||||
# unsupported features. A gRPC application must use "xds-experimental:///"
|
# unsupported features. A gRPC application must use "xds:///" scheme in the
|
||||||
# scheme in the target URI of the service it is connecting to. If false,
|
# target URI of the service it is connecting to. If false, indicates that the
|
||||||
# indicates that the BackendServices referenced by the urlMap will be accessed
|
# BackendServices referenced by the urlMap will be accessed by gRPC applications
|
||||||
# by gRPC applications via a sidecar proxy. In this case, a gRPC application
|
# via a sidecar proxy. In this case, a gRPC application must not use "xds:///"
|
||||||
# must not use "xds-experimental:///" scheme in the target URI of the service it
|
# scheme in the target URI of the service it is connecting to
|
||||||
# is connecting to
|
|
||||||
# Corresponds to the JSON property `validateForProxyless`
|
# Corresponds to the JSON property `validateForProxyless`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :validate_for_proxyless
|
attr_accessor :validate_for_proxyless
|
||||||
|
|
|
@ -5575,7 +5575,7 @@ module Google
|
||||||
property :default_ttl, as: 'defaultTtl'
|
property :default_ttl, as: 'defaultTtl'
|
||||||
property :max_ttl, as: 'maxTtl'
|
property :max_ttl, as: 'maxTtl'
|
||||||
property :negative_caching, as: 'negativeCaching'
|
property :negative_caching, as: 'negativeCaching'
|
||||||
collection :negative_caching_policys, as: 'negativeCachingPolicys', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy::Representation
|
collection :negative_caching_policy, as: 'negativeCachingPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy::Representation
|
||||||
|
|
||||||
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
||||||
collection :signed_url_key_names, as: 'signedUrlKeyNames'
|
collection :signed_url_key_names, as: 'signedUrlKeyNames'
|
||||||
|
@ -5712,7 +5712,7 @@ module Google
|
||||||
property :default_ttl, as: 'defaultTtl'
|
property :default_ttl, as: 'defaultTtl'
|
||||||
property :max_ttl, as: 'maxTtl'
|
property :max_ttl, as: 'maxTtl'
|
||||||
property :negative_caching, as: 'negativeCaching'
|
property :negative_caching, as: 'negativeCaching'
|
||||||
collection :negative_caching_policys, as: 'negativeCachingPolicys', class: Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy::Representation
|
collection :negative_caching_policy, as: 'negativeCachingPolicy', class: Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy::Representation
|
||||||
|
|
||||||
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
||||||
collection :signed_url_key_names, as: 'signedUrlKeyNames'
|
collection :signed_url_key_names, as: 'signedUrlKeyNames'
|
||||||
|
@ -12426,7 +12426,6 @@ module Google
|
||||||
property :network, as: 'network'
|
property :network, as: 'network'
|
||||||
property :private_ip_google_access, as: 'privateIpGoogleAccess'
|
property :private_ip_google_access, as: 'privateIpGoogleAccess'
|
||||||
property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
|
property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess'
|
||||||
collection :private_ipv6_google_access_service_accounts, as: 'privateIpv6GoogleAccessServiceAccounts'
|
|
||||||
property :purpose, as: 'purpose'
|
property :purpose, as: 'purpose'
|
||||||
property :region, as: 'region'
|
property :region, as: 'region'
|
||||||
property :role, as: 'role'
|
property :role, as: 'role'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeV1
|
module ComputeV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200719'
|
REVISION = '20200727'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26541,7 +26541,7 @@ module Google
|
||||||
class SecurityPolicyRuleMatcherConfig
|
class SecurityPolicyRuleMatcherConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# CIDR IP address range.
|
# CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
|
||||||
# Corresponds to the JSON property `srcIpRanges`
|
# Corresponds to the JSON property `srcIpRanges`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :src_ip_ranges
|
attr_accessor :src_ip_ranges
|
||||||
|
@ -28764,7 +28764,7 @@ module Google
|
||||||
# A target gRPC proxy is a component of load balancers intended for load
|
# A target gRPC proxy is a component of load balancers intended for load
|
||||||
# balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy.
|
# balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy.
|
||||||
# The Target gRPC Proxy references a URL map which specifies how traffic routes
|
# The Target gRPC Proxy references a URL map which specifies how traffic routes
|
||||||
# to gRPC backend services.
|
# to gRPC backend services. (== resource_for `$api_version`.targetGrpcProxies ==)
|
||||||
class TargetGrpcProxy
|
class TargetGrpcProxy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -28831,12 +28831,11 @@ module Google
|
||||||
# If true, indicates that the BackendServices referenced by the urlMap may be
|
# If true, indicates that the BackendServices referenced by the urlMap may be
|
||||||
# accessed by gRPC applications without using a sidecar proxy. This will enable
|
# accessed by gRPC applications without using a sidecar proxy. This will enable
|
||||||
# configuration checks on urlMap and its referenced BackendServices to not allow
|
# configuration checks on urlMap and its referenced BackendServices to not allow
|
||||||
# unsupported features. A gRPC application must use "xds-experimental:///"
|
# unsupported features. A gRPC application must use "xds:///" scheme in the
|
||||||
# scheme in the target URI of the service it is connecting to. If false,
|
# target URI of the service it is connecting to. If false, indicates that the
|
||||||
# indicates that the BackendServices referenced by the urlMap will be accessed
|
# BackendServices referenced by the urlMap will be accessed by gRPC applications
|
||||||
# by gRPC applications via a sidecar proxy. In this case, a gRPC application
|
# via a sidecar proxy. In this case, a gRPC application must not use "xds:///"
|
||||||
# must not use "xds-experimental:///" scheme in the target URI of the service it
|
# scheme in the target URI of the service it is connecting to
|
||||||
# is connecting to
|
|
||||||
# Corresponds to the JSON property `validateForProxyless`
|
# Corresponds to the JSON property `validateForProxyless`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :validate_for_proxyless
|
attr_accessor :validate_for_proxyless
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/dataproc/
|
# @see https://cloud.google.com/dataproc/
|
||||||
module DataprocV1
|
module DataprocV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200807'
|
REVISION = '20200813'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/dataproc/
|
# @see https://cloud.google.com/dataproc/
|
||||||
module DataprocV1beta2
|
module DataprocV1beta2
|
||||||
VERSION = 'V1beta2'
|
VERSION = 'V1beta2'
|
||||||
REVISION = '20200807'
|
REVISION = '20200813'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/display-video/
|
# @see https://developers.google.com/display-video/
|
||||||
module DisplayvideoV1
|
module DisplayvideoV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200806'
|
REVISION = '20200820'
|
||||||
|
|
||||||
# Create, see, edit, and permanently delete your Display & Video 360 entities and reports
|
# Create, see, edit, and permanently delete your Display & Video 360 entities and reports
|
||||||
AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video'
|
AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video'
|
||||||
|
|
|
@ -1116,6 +1116,48 @@ module Google
|
||||||
class AuditAdvertiserResponse
|
class AuditAdvertiserResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The number of individual targeting options from the following targeting types
|
||||||
|
# that are assigned to a line item under this advertiser. These individual
|
||||||
|
# targeting options count towards the limit of 4500000 ad group targeting
|
||||||
|
# options per advertiser. Qualifying Targeting types: * Channels, URLs, apps,
|
||||||
|
# and collections * Demographic * Google Audiences, including Affinity, Custom
|
||||||
|
# Affinity, and In-market audiences * Inventory source * Keyword * Mobile app
|
||||||
|
# category * User lists * Video targeting * Viewability
|
||||||
|
# Corresponds to the JSON property `adGroupCriteriaCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :ad_group_criteria_count
|
||||||
|
|
||||||
|
# The number of individual targeting options from the following targeting types
|
||||||
|
# that are assigned to a line item under this advertiser. These individual
|
||||||
|
# targeting options count towards the limit of 900000 campaign targeting options
|
||||||
|
# per advertiser. Qualifying Targeting types: * Position * Browser * Connection
|
||||||
|
# speed * Day and time * Device and operating system * Digital content label *
|
||||||
|
# Sensitive categories * Environment * Geography, including business chains and
|
||||||
|
# proximity * ISP * Language * Third-party verification
|
||||||
|
# Corresponds to the JSON property `campaignCriteriaCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :campaign_criteria_count
|
||||||
|
|
||||||
|
# The number of channels created under this advertiser. These channels count
|
||||||
|
# towards the limit of 1000 channels per advertiser.
|
||||||
|
# Corresponds to the JSON property `channelsCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :channels_count
|
||||||
|
|
||||||
|
# The number of negative keyword lists created under this advertiser. These
|
||||||
|
# negative keyword lists count towards the limit of 20 negative keyword lists
|
||||||
|
# per advertiser.
|
||||||
|
# Corresponds to the JSON property `negativeKeywordListsCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :negative_keyword_lists_count
|
||||||
|
|
||||||
|
# The number of negatively targeted channels created under this advertiser.
|
||||||
|
# These negatively targeted channels count towards the limit of 5 negatively
|
||||||
|
# targeted channels per advertiser.
|
||||||
|
# Corresponds to the JSON property `negativelyTargetedChannelsCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :negatively_targeted_channels_count
|
||||||
|
|
||||||
# The number of ACTIVE and PAUSED campaigns under this advertiser. These
|
# The number of ACTIVE and PAUSED campaigns under this advertiser. These
|
||||||
# campaigns count towards the limit of 9999 campaigns per advertiser.
|
# campaigns count towards the limit of 9999 campaigns per advertiser.
|
||||||
# Corresponds to the JSON property `usedCampaignsCount`
|
# Corresponds to the JSON property `usedCampaignsCount`
|
||||||
|
@ -1141,6 +1183,11 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@ad_group_criteria_count = args[:ad_group_criteria_count] if args.key?(:ad_group_criteria_count)
|
||||||
|
@campaign_criteria_count = args[:campaign_criteria_count] if args.key?(:campaign_criteria_count)
|
||||||
|
@channels_count = args[:channels_count] if args.key?(:channels_count)
|
||||||
|
@negative_keyword_lists_count = args[:negative_keyword_lists_count] if args.key?(:negative_keyword_lists_count)
|
||||||
|
@negatively_targeted_channels_count = args[:negatively_targeted_channels_count] if args.key?(:negatively_targeted_channels_count)
|
||||||
@used_campaigns_count = args[:used_campaigns_count] if args.key?(:used_campaigns_count)
|
@used_campaigns_count = args[:used_campaigns_count] if args.key?(:used_campaigns_count)
|
||||||
@used_insertion_orders_count = args[:used_insertion_orders_count] if args.key?(:used_insertion_orders_count)
|
@used_insertion_orders_count = args[:used_insertion_orders_count] if args.key?(:used_insertion_orders_count)
|
||||||
@used_line_items_count = args[:used_line_items_count] if args.key?(:used_line_items_count)
|
@used_line_items_count = args[:used_line_items_count] if args.key?(:used_line_items_count)
|
||||||
|
|
|
@ -1635,6 +1635,11 @@ module Google
|
||||||
class AuditAdvertiserResponse
|
class AuditAdvertiserResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ad_group_criteria_count, :numeric_string => true, as: 'adGroupCriteriaCount'
|
||||||
|
property :campaign_criteria_count, :numeric_string => true, as: 'campaignCriteriaCount'
|
||||||
|
property :channels_count, :numeric_string => true, as: 'channelsCount'
|
||||||
|
property :negative_keyword_lists_count, :numeric_string => true, as: 'negativeKeywordListsCount'
|
||||||
|
property :negatively_targeted_channels_count, :numeric_string => true, as: 'negativelyTargetedChannelsCount'
|
||||||
property :used_campaigns_count, :numeric_string => true, as: 'usedCampaignsCount'
|
property :used_campaigns_count, :numeric_string => true, as: 'usedCampaignsCount'
|
||||||
property :used_insertion_orders_count, :numeric_string => true, as: 'usedInsertionOrdersCount'
|
property :used_insertion_orders_count, :numeric_string => true, as: 'usedInsertionOrdersCount'
|
||||||
property :used_line_items_count, :numeric_string => true, as: 'usedLineItemsCount'
|
property :used_line_items_count, :numeric_string => true, as: 'usedLineItemsCount'
|
||||||
|
|
|
@ -56,7 +56,9 @@ module Google
|
||||||
# @param [String] read_mask
|
# @param [String] read_mask
|
||||||
# Optional. The specific fields to return. If no mask is specified, all fields
|
# Optional. The specific fields to return. If no mask is specified, all fields
|
||||||
# in the response proto will be filled. Valid values are: * usedLineItemsCount *
|
# in the response proto will be filled. Valid values are: * usedLineItemsCount *
|
||||||
# usedInsertionOrdersCount * usedCampaignsCount
|
# usedInsertionOrdersCount * usedCampaignsCount * channelsCount *
|
||||||
|
# negativelyTargetedChannelsCount * negativeKeywordListsCount *
|
||||||
|
# adGroupCriteriaCount * campaignCriteriaCount
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -279,10 +281,10 @@ module Google
|
||||||
# expressions are made up of one or more restrictions. * Restrictions can be
|
# expressions are made up of one or more restrictions. * Restrictions can be
|
||||||
# combined by `AND` or `OR` logical operators. A sequence of restrictions
|
# combined by `AND` or `OR` logical operators. A sequence of restrictions
|
||||||
# implicitly uses `AND`. * A restriction has the form of ``field` `operator` `
|
# implicitly uses `AND`. * A restriction has the form of ``field` `operator` `
|
||||||
# value``. * The operator must be `EQUALS (=)`. * Supported fields: - `
|
# value``. * The operator must be `EQUALS (=)`. * Supported fields: . - `
|
||||||
# entityStatus` Examples: * All active advertisers under a partner: `
|
# advertiserId` . - `displayName` - `entityStatus` Examples: * All active
|
||||||
# entityStatus="ENTITY_STATUS_ACTIVE"` The length of this field should be no
|
# advertisers under a partner: `entityStatus="ENTITY_STATUS_ACTIVE"` The length
|
||||||
# more than 500 characters.
|
# of this field should be no more than 500 characters.
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Field by which to sort the list. Acceptable values are: * `displayName` (
|
# Field by which to sort the list. Acceptable values are: * `displayName` (
|
||||||
# default) * `entityStatus` The default sorting order is ascending. To specify
|
# default) * `entityStatus` The default sorting order is ascending. To specify
|
||||||
|
@ -523,10 +525,10 @@ module Google
|
||||||
# combined by `AND` or `OR` logical operators. A sequence of restrictions
|
# combined by `AND` or `OR` logical operators. A sequence of restrictions
|
||||||
# implicitly uses `AND`. * A restriction has the form of ``field` `operator` `
|
# implicitly uses `AND`. * A restriction has the form of ``field` `operator` `
|
||||||
# value``. * The operator must be `EQUALS (=)`. * Supported fields: - `
|
# value``. * The operator must be `EQUALS (=)`. * Supported fields: - `
|
||||||
# entityStatus` Examples: * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED`
|
# campaignId` - `displayName` - `entityStatus` Examples: * All `
|
||||||
# campaigns under an advertiser: `(entityStatus="ENTITY_STATUS_ACTIVE" OR
|
# ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` campaigns under an advertiser:
|
||||||
# entityStatus="ENTITY_STATUS_PAUSED")` The length of this field should be no
|
# `(entityStatus="ENTITY_STATUS_ACTIVE" OR entityStatus="ENTITY_STATUS_PAUSED")`
|
||||||
# more than 500 characters.
|
# The length of this field should be no more than 500 characters.
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Field by which to sort the list. Acceptable values are: * `displayName` (
|
# Field by which to sort the list. Acceptable values are: * `displayName` (
|
||||||
# default) * `entityStatus` The default sorting order is ascending. To specify
|
# default) * `entityStatus` The default sorting order is ascending. To specify
|
||||||
|
@ -1291,12 +1293,16 @@ module Google
|
||||||
# expressions are made up of one or more restrictions. * Restrictions can be
|
# expressions are made up of one or more restrictions. * Restrictions can be
|
||||||
# combined by `AND` or `OR` logical operators. A sequence of restrictions
|
# combined by `AND` or `OR` logical operators. A sequence of restrictions
|
||||||
# implicitly uses `AND`. * A restriction has the form of ``field` `operator` `
|
# implicitly uses `AND`. * A restriction has the form of ``field` `operator` `
|
||||||
# value``. * The operator must be `EQUALS (=)`. * Supported fields: - `
|
# value``. * The operator used on `budget.budget_segments.date_range.end_date`
|
||||||
# campaignId` - `entityStatus` Examples: * All insertion orders under a campaign:
|
# must be LESS THAN (<). * The operators used on all other fields must be `
|
||||||
# `campaignId="1234"` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED`
|
# EQUALS (=)`. * Supported fields: - `campaignId` - `displayName` - `
|
||||||
# insertion orders under an advertiser: `(entityStatus="ENTITY_STATUS_ACTIVE" OR
|
# entityStatus` - `budget.budget_segments.date_range.end_date` (input as YYYY-MM-
|
||||||
# entityStatus="ENTITY_STATUS_PAUSED")` The length of this field should be no
|
# DD) Examples: * All insertion orders under a campaign: `campaignId="1234"` *
|
||||||
# more than 500 characters.
|
# All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` insertion orders under an
|
||||||
|
# advertiser: `(entityStatus="ENTITY_STATUS_ACTIVE" OR entityStatus="
|
||||||
|
# ENTITY_STATUS_PAUSED")` * All insertion orders whose budget segments' dates
|
||||||
|
# end before March 28, 2019: `budget.budget_segments.date_range.end_date<"2019-
|
||||||
|
# 03-28"` The length of this field should be no more than 500 characters.
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Field by which to sort the list. Acceptable values are: * "displayName" (
|
# Field by which to sort the list. Acceptable values are: * "displayName" (
|
||||||
# default) * "entityStatus" The default sorting order is ascending. To specify
|
# default) * "entityStatus" The default sorting order is ascending. To specify
|
||||||
|
@ -1599,15 +1605,15 @@ module Google
|
||||||
# implicitly uses `AND`. * A restriction has the form of ``field` `operator` `
|
# implicitly uses `AND`. * A restriction has the form of ``field` `operator` `
|
||||||
# value``. * The operator used on `flight.dateRange.endDate` must be LESS THAN (<
|
# value``. * The operator used on `flight.dateRange.endDate` must be LESS THAN (<
|
||||||
# ). * The operators used on all other fields must be `EQUALS (=)`. * Supported
|
# ). * The operators used on all other fields must be `EQUALS (=)`. * Supported
|
||||||
# fields: - `campaignId` - `insertionOrderId` - `entityStatus` - `lineItemType` -
|
# fields: - `campaignId` - `displayName` - `insertionOrderId` - `entityStatus` -
|
||||||
# `flight.dateRange.endDate` (input formatted as YYYY-MM-DD) Examples: * All
|
# `lineItemId` - `lineItemType` - `flight.dateRange.endDate` (input formatted as
|
||||||
# line items under an insertion order: `insertionOrderId="1234"` * All `
|
# YYYY-MM-DD) Examples: * All line items under an insertion order: `
|
||||||
# ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` and `
|
# insertionOrderId="1234"` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED`
|
||||||
# LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: `(entityStatus=
|
# and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: `(
|
||||||
# "ENTITY_STATUS_ACTIVE" OR entityStatus="ENTITY_STATUS_PAUSED") AND
|
# entityStatus="ENTITY_STATUS_ACTIVE" OR entityStatus="ENTITY_STATUS_PAUSED")
|
||||||
# lineItemType="LINE_ITEM_TYPE_DISPLAY_DEFAULT"` * All line items whose flight
|
# AND lineItemType="LINE_ITEM_TYPE_DISPLAY_DEFAULT"` * All line items whose
|
||||||
# dates end before March 28, 2019: `flight.dateRange.endDate<"2019-03-28"` The
|
# flight dates end before March 28, 2019: `flight.dateRange.endDate<"2019-03-28"`
|
||||||
# length of this field should be no more than 500 characters.
|
# The length of this field should be no more than 500 characters.
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Field by which to sort the list. Acceptable values are: * "displayName" (
|
# Field by which to sort the list. Acceptable values are: * "displayName" (
|
||||||
# default) * "entityStatus" * “flight.dateRange.endDate” The default sorting
|
# default) * "entityStatus" * “flight.dateRange.endDate” The default sorting
|
||||||
|
@ -4608,8 +4614,14 @@ module Google
|
||||||
# expressions are made up of one or more restrictions. * Restrictions can be
|
# expressions are made up of one or more restrictions. * Restrictions can be
|
||||||
# combined by `OR` logical operators. * A restriction has the form of ``field` `
|
# combined by `OR` logical operators. * A restriction has the form of ``field` `
|
||||||
# operator` `value``. * The operator must be "=" (equal sign). * Supported
|
# operator` `value``. * The operator must be "=" (equal sign). * Supported
|
||||||
# fields: - `targetingOptionId` The length of this field should be no more than
|
# fields: - `carrier_and_isp_details.type` - `geo_region_details.geo_region_type`
|
||||||
# 500 characters.
|
# - `targetingOptionId` Examples: * All `GEO REGION` targeting options that
|
||||||
|
# belong to sub type `GEO_REGION_TYPE_COUNTRY` or `GEO_REGION_TYPE_STATE`: `
|
||||||
|
# geo_region_details.geo_region_type="GEO_REGION_TYPE_COUNTRY" OR
|
||||||
|
# geo_region_details.geo_region_type="GEO_REGION_TYPE_STATE"` * All `CARRIER AND
|
||||||
|
# ISP` targeting options that belong to sub type `CARRIER_AND_ISP_TYPE_CARRIER`:
|
||||||
|
# `carrier_and_isp_details.type="CARRIER_AND_ISP_TYPE_CARRIER"`. The length of
|
||||||
|
# this field should be no more than 500 characters.
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Field by which to sort the list. Acceptable values are: * `targetingOptionId` (
|
# Field by which to sort the list. Acceptable values are: * `targetingOptionId` (
|
||||||
# default) The default sorting order is ascending. To specify descending order
|
# default) The default sorting order is ascending. To specify descending order
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/drive/
|
# @see https://developers.google.com/drive/
|
||||||
module DriveV2
|
module DriveV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20200723'
|
REVISION = '20200811'
|
||||||
|
|
||||||
# See, edit, create, and delete all of your Google Drive files
|
# See, edit, create, and delete all of your Google Drive files
|
||||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||||
|
|
|
@ -2376,9 +2376,10 @@ module Google
|
||||||
attr_accessor :can_move_children_out_of_team_drive
|
attr_accessor :can_move_children_out_of_team_drive
|
||||||
alias_method :can_move_children_out_of_team_drive?, :can_move_children_out_of_team_drive
|
alias_method :can_move_children_out_of_team_drive?, :can_move_children_out_of_team_drive
|
||||||
|
|
||||||
# Whether the current user can move children of this folder within the shared
|
# Whether the current user can move children of this folder within this drive.
|
||||||
# drive. This is false when the item is not a folder. Only populated for items
|
# This is false when the item is not a folder. Note that a request to move the
|
||||||
# in shared drives.
|
# child may still fail depending on the current user's access to the child and
|
||||||
|
# to the destination folder.
|
||||||
# Corresponds to the JSON property `canMoveChildrenWithinDrive`
|
# Corresponds to the JSON property `canMoveChildrenWithinDrive`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :can_move_children_within_drive
|
attr_accessor :can_move_children_within_drive
|
||||||
|
@ -2410,9 +2411,9 @@ module Google
|
||||||
attr_accessor :can_move_item_out_of_team_drive
|
attr_accessor :can_move_item_out_of_team_drive
|
||||||
alias_method :can_move_item_out_of_team_drive?, :can_move_item_out_of_team_drive
|
alias_method :can_move_item_out_of_team_drive?, :can_move_item_out_of_team_drive
|
||||||
|
|
||||||
# Whether the current user can move this item within this shared drive. Note
|
# Whether the current user can move this item within this drive. Note that a
|
||||||
# that a request to change the parent of the item may still fail depending on
|
# request to change the parent of the item may still fail depending on the new
|
||||||
# the new parent that is being added. Only populated for items in shared drives.
|
# parent that is being added and the parent that is being removed.
|
||||||
# Corresponds to the JSON property `canMoveItemWithinDrive`
|
# Corresponds to the JSON property `canMoveItemWithinDrive`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :can_move_item_within_drive
|
attr_accessor :can_move_item_within_drive
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/drive/
|
# @see https://developers.google.com/drive/
|
||||||
module DriveV3
|
module DriveV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20200723'
|
REVISION = '20200811'
|
||||||
|
|
||||||
# See, edit, create, and delete all of your Google Drive files
|
# See, edit, create, and delete all of your Google Drive files
|
||||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||||
|
|
|
@ -1535,9 +1535,10 @@ module Google
|
||||||
attr_accessor :can_move_children_out_of_team_drive
|
attr_accessor :can_move_children_out_of_team_drive
|
||||||
alias_method :can_move_children_out_of_team_drive?, :can_move_children_out_of_team_drive
|
alias_method :can_move_children_out_of_team_drive?, :can_move_children_out_of_team_drive
|
||||||
|
|
||||||
# Whether the current user can move children of this folder within the shared
|
# Whether the current user can move children of this folder within this drive.
|
||||||
# drive. This is false when the item is not a folder. Only populated for items
|
# This is false when the item is not a folder. Note that a request to move the
|
||||||
# in shared drives.
|
# child may still fail depending on the current user's access to the child and
|
||||||
|
# to the destination folder.
|
||||||
# Corresponds to the JSON property `canMoveChildrenWithinDrive`
|
# Corresponds to the JSON property `canMoveChildrenWithinDrive`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :can_move_children_within_drive
|
attr_accessor :can_move_children_within_drive
|
||||||
|
@ -1569,9 +1570,9 @@ module Google
|
||||||
attr_accessor :can_move_item_out_of_team_drive
|
attr_accessor :can_move_item_out_of_team_drive
|
||||||
alias_method :can_move_item_out_of_team_drive?, :can_move_item_out_of_team_drive
|
alias_method :can_move_item_out_of_team_drive?, :can_move_item_out_of_team_drive
|
||||||
|
|
||||||
# Whether the current user can move this item within this shared drive. Note
|
# Whether the current user can move this item within this drive. Note that a
|
||||||
# that a request to change the parent of the item may still fail depending on
|
# request to change the parent of the item may still fail depending on the new
|
||||||
# the new parent that is being added. Only populated for items in shared drives.
|
# parent that is being added and the parent that is being removed.
|
||||||
# Corresponds to the JSON property `canMoveItemWithinDrive`
|
# Corresponds to the JSON property `canMoveItemWithinDrive`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :can_move_item_within_drive
|
attr_accessor :can_move_item_within_drive
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://firebase.google.com
|
# @see https://firebase.google.com
|
||||||
module FirebaseV1beta1
|
module FirebaseV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200803'
|
REVISION = '20200819'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1076,17 +1076,6 @@ module Google
|
||||||
# @return [Google::Apis::FirebaseV1beta1::MessageSet]
|
# @return [Google::Apis::FirebaseV1beta1::MessageSet]
|
||||||
attr_accessor :message_set
|
attr_accessor :message_set
|
||||||
|
|
||||||
# Message that groups a protocol type_id (as defined by MessageSet), with an
|
|
||||||
# encoded message of that type. Its use is similar to MessageSet, except it
|
|
||||||
# represents a single (type, encoded message) instead of a set. To embed "proto"
|
|
||||||
# inside "typed_msg": MyProtoMessage proto; TypedMessage typed_msg; typed_msg.
|
|
||||||
# set_type_id(proto2::bridge::GetTypeId(proto)); proto.AppendToCord(typed_msg.
|
|
||||||
# mutable_message()); Error handling is omitted from the sample code above.
|
|
||||||
# GetTypeId() will return 0 for messages that don't have a TypeId specified.
|
|
||||||
# Corresponds to the JSON property `payload`
|
|
||||||
# @return [Google::Apis::FirebaseV1beta1::TypedMessage]
|
|
||||||
attr_accessor :payload
|
|
||||||
|
|
||||||
# The following are usually only present when code != 0 Space to which this
|
# The following are usually only present when code != 0 Space to which this
|
||||||
# status belongs
|
# status belongs
|
||||||
# Corresponds to the JSON property `space`
|
# Corresponds to the JSON property `space`
|
||||||
|
@ -1103,7 +1092,6 @@ module Google
|
||||||
@code = args[:code] if args.key?(:code)
|
@code = args[:code] if args.key?(:code)
|
||||||
@message = args[:message] if args.key?(:message)
|
@message = args[:message] if args.key?(:message)
|
||||||
@message_set = args[:message_set] if args.key?(:message_set)
|
@message_set = args[:message_set] if args.key?(:message_set)
|
||||||
@payload = args[:payload] if args.key?(:payload)
|
|
||||||
@space = args[:space] if args.key?(:space)
|
@space = args[:space] if args.key?(:space)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1150,38 +1138,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Message that groups a protocol type_id (as defined by MessageSet), with an
|
|
||||||
# encoded message of that type. Its use is similar to MessageSet, except it
|
|
||||||
# represents a single (type, encoded message) instead of a set. To embed "proto"
|
|
||||||
# inside "typed_msg": MyProtoMessage proto; TypedMessage typed_msg; typed_msg.
|
|
||||||
# set_type_id(proto2::bridge::GetTypeId(proto)); proto.AppendToCord(typed_msg.
|
|
||||||
# mutable_message()); Error handling is omitted from the sample code above.
|
|
||||||
# GetTypeId() will return 0 for messages that don't have a TypeId specified.
|
|
||||||
class TypedMessage
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Message bytes.
|
|
||||||
# Corresponds to the JSON property `message`
|
|
||||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :message
|
|
||||||
|
|
||||||
# Identifier for the type.
|
|
||||||
# Corresponds to the JSON property `typeId`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :type_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@message = args[:message] if args.key?(:message)
|
|
||||||
@type_id = args[:type_id] if args.key?(:type_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Details of a Firebase App for the web.
|
# Details of a Firebase App for the web.
|
||||||
class WebApp
|
class WebApp
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -208,12 +208,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class TypedMessage
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class WebApp
|
class WebApp
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -496,8 +490,6 @@ module Google
|
||||||
property :message, as: 'message'
|
property :message, as: 'message'
|
||||||
property :message_set, as: 'messageSet', class: Google::Apis::FirebaseV1beta1::MessageSet, decorator: Google::Apis::FirebaseV1beta1::MessageSet::Representation
|
property :message_set, as: 'messageSet', class: Google::Apis::FirebaseV1beta1::MessageSet, decorator: Google::Apis::FirebaseV1beta1::MessageSet::Representation
|
||||||
|
|
||||||
property :payload, as: 'payload', class: Google::Apis::FirebaseV1beta1::TypedMessage, decorator: Google::Apis::FirebaseV1beta1::TypedMessage::Representation
|
|
||||||
|
|
||||||
property :space, as: 'space'
|
property :space, as: 'space'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -511,14 +503,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TypedMessage
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :message, :base64 => true, as: 'message'
|
|
||||||
property :type_id, as: 'typeId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class WebApp
|
class WebApp
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -0,0 +1,85 @@
|
||||||
|
# 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/fitness_v1/service.rb'
|
||||||
|
require 'google/apis/fitness_v1/classes.rb'
|
||||||
|
require 'google/apis/fitness_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Fitness API
|
||||||
|
#
|
||||||
|
# The Fitness API for managing users' fitness tracking data.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/fit/rest/v1/get-started
|
||||||
|
module FitnessV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20200818'
|
||||||
|
|
||||||
|
# Use Google Fit to see and store your physical activity data
|
||||||
|
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
|
||||||
|
|
||||||
|
# See and add to your Google Fit physical activity data
|
||||||
|
AUTH_FITNESS_ACTIVITY_WRITE = 'https://www.googleapis.com/auth/fitness.activity.write'
|
||||||
|
|
||||||
|
# See info about your blood glucose in Google Fit. I consent to Google sharing my blood glucose information with this app.
|
||||||
|
AUTH_FITNESS_BLOOD_GLUCOSE_READ = 'https://www.googleapis.com/auth/fitness.blood_glucose.read'
|
||||||
|
|
||||||
|
# See and add info about your blood glucose to Google Fit. I consent to Google sharing my blood glucose information with this app.
|
||||||
|
AUTH_FITNESS_BLOOD_GLUCOSE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_glucose.write'
|
||||||
|
|
||||||
|
# See info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app.
|
||||||
|
AUTH_FITNESS_BLOOD_PRESSURE_READ = 'https://www.googleapis.com/auth/fitness.blood_pressure.read'
|
||||||
|
|
||||||
|
# See and add info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app.
|
||||||
|
AUTH_FITNESS_BLOOD_PRESSURE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_pressure.write'
|
||||||
|
|
||||||
|
# See info about your body measurements and heart rate in Google Fit
|
||||||
|
AUTH_FITNESS_BODY_READ = 'https://www.googleapis.com/auth/fitness.body.read'
|
||||||
|
|
||||||
|
# See and add info about your body measurements and heart rate to Google Fit
|
||||||
|
AUTH_FITNESS_BODY_WRITE = 'https://www.googleapis.com/auth/fitness.body.write'
|
||||||
|
|
||||||
|
# See info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app.
|
||||||
|
AUTH_FITNESS_BODY_TEMPERATURE_READ = 'https://www.googleapis.com/auth/fitness.body_temperature.read'
|
||||||
|
|
||||||
|
# See and add to info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app.
|
||||||
|
AUTH_FITNESS_BODY_TEMPERATURE_WRITE = 'https://www.googleapis.com/auth/fitness.body_temperature.write'
|
||||||
|
|
||||||
|
# See your Google Fit speed and distance data
|
||||||
|
AUTH_FITNESS_LOCATION_READ = 'https://www.googleapis.com/auth/fitness.location.read'
|
||||||
|
|
||||||
|
# See and add to your Google Fit location data
|
||||||
|
AUTH_FITNESS_LOCATION_WRITE = 'https://www.googleapis.com/auth/fitness.location.write'
|
||||||
|
|
||||||
|
# See info about your nutrition in Google Fit
|
||||||
|
AUTH_FITNESS_NUTRITION_READ = 'https://www.googleapis.com/auth/fitness.nutrition.read'
|
||||||
|
|
||||||
|
# See and add to info about your nutrition in Google Fit
|
||||||
|
AUTH_FITNESS_NUTRITION_WRITE = 'https://www.googleapis.com/auth/fitness.nutrition.write'
|
||||||
|
|
||||||
|
# See info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app.
|
||||||
|
AUTH_FITNESS_OXYGEN_SATURATION_READ = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.read'
|
||||||
|
|
||||||
|
# See and add info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app.
|
||||||
|
AUTH_FITNESS_OXYGEN_SATURATION_WRITE = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.write'
|
||||||
|
|
||||||
|
# See info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app.
|
||||||
|
AUTH_FITNESS_REPRODUCTIVE_HEALTH_READ = 'https://www.googleapis.com/auth/fitness.reproductive_health.read'
|
||||||
|
|
||||||
|
# See and add info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app.
|
||||||
|
AUTH_FITNESS_REPRODUCTIVE_HEALTH_WRITE = 'https://www.googleapis.com/auth/fitness.reproductive_health.write'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,982 @@
|
||||||
|
# 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 FitnessV1
|
||||||
|
|
||||||
|
#
|
||||||
|
class AggregateBucket
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT
|
||||||
|
# Corresponds to the JSON property `activity`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :activity
|
||||||
|
|
||||||
|
# There will be one dataset per AggregateBy in the request.
|
||||||
|
# Corresponds to the JSON property `dataset`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::Dataset>]
|
||||||
|
attr_accessor :dataset
|
||||||
|
|
||||||
|
# The end time for the aggregated data, in milliseconds since epoch, inclusive.
|
||||||
|
# Corresponds to the JSON property `endTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :end_time_millis
|
||||||
|
|
||||||
|
# Sessions contain metadata, such as a user-friendly name and time interval
|
||||||
|
# information.
|
||||||
|
# Corresponds to the JSON property `session`
|
||||||
|
# @return [Google::Apis::FitnessV1::Session]
|
||||||
|
attr_accessor :session
|
||||||
|
|
||||||
|
# The start time for the aggregated data, in milliseconds since epoch, inclusive.
|
||||||
|
# Corresponds to the JSON property `startTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :start_time_millis
|
||||||
|
|
||||||
|
# The type of a bucket signifies how the data aggregation is performed in the
|
||||||
|
# bucket.
|
||||||
|
# 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)
|
||||||
|
@activity = args[:activity] if args.key?(:activity)
|
||||||
|
@dataset = args[:dataset] if args.key?(:dataset)
|
||||||
|
@end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
|
||||||
|
@session = args[:session] if args.key?(:session)
|
||||||
|
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The specification of which data to aggregate.
|
||||||
|
class AggregateBy
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A data source ID to aggregate. Only data from the specified data source ID
|
||||||
|
# will be included in the aggregation. If specified, this data source must exist;
|
||||||
|
# the OAuth scopes in the supplied credentials must grant read access to this
|
||||||
|
# data type. The dataset in the response will have the same data source ID. Note:
|
||||||
|
# Data can be aggregated by either the dataTypeName or the dataSourceId, not
|
||||||
|
# both.
|
||||||
|
# Corresponds to the JSON property `dataSourceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_source_id
|
||||||
|
|
||||||
|
# The data type to aggregate. All data sources providing this data type will
|
||||||
|
# contribute data to the aggregation. The response will contain a single dataset
|
||||||
|
# for this data type name. The dataset will have a data source ID of derived::
|
||||||
|
# com.google.android.gms:aggregated. If the user has no data for this data type,
|
||||||
|
# an empty data set will be returned. Note: Data can be aggregated by either the
|
||||||
|
# dataTypeName or the dataSourceId, not both.
|
||||||
|
# Corresponds to the JSON property `dataTypeName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_type_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
|
||||||
|
@data_type_name = args[:data_type_name] if args.key?(:data_type_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Next id: 10
|
||||||
|
class AggregateRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The specification of data to be aggregated. At least one aggregateBy spec must
|
||||||
|
# be provided. All data that is specified will be aggregated using the same
|
||||||
|
# bucketing criteria. There will be one dataset in the response for every
|
||||||
|
# aggregateBy spec.
|
||||||
|
# Corresponds to the JSON property `aggregateBy`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::AggregateBy>]
|
||||||
|
attr_accessor :aggregate_by
|
||||||
|
|
||||||
|
# Specifies that data be aggregated each activity segment recored for a user.
|
||||||
|
# Similar to bucketByActivitySegment, but bucketing is done for each activity
|
||||||
|
# segment rather than all segments of the same type. Mutually exclusive of other
|
||||||
|
# bucketing specifications.
|
||||||
|
# Corresponds to the JSON property `bucketByActivitySegment`
|
||||||
|
# @return [Google::Apis::FitnessV1::BucketByActivity]
|
||||||
|
attr_accessor :bucket_by_activity_segment
|
||||||
|
|
||||||
|
# Specifies that data be aggregated by the type of activity being performed when
|
||||||
|
# the data was recorded. All data that was recorded during a certain activity
|
||||||
|
# type (.for the given time range) will be aggregated into the same bucket. Data
|
||||||
|
# that was recorded while the user was not active will not be included in the
|
||||||
|
# response. Mutually exclusive of other bucketing specifications.
|
||||||
|
# Corresponds to the JSON property `bucketByActivityType`
|
||||||
|
# @return [Google::Apis::FitnessV1::BucketByActivity]
|
||||||
|
attr_accessor :bucket_by_activity_type
|
||||||
|
|
||||||
|
# Specifies that data be aggregated by user sessions. Data that does not fall
|
||||||
|
# within the time range of a session will not be included in the response.
|
||||||
|
# Mutually exclusive of other bucketing specifications.
|
||||||
|
# Corresponds to the JSON property `bucketBySession`
|
||||||
|
# @return [Google::Apis::FitnessV1::BucketBySession]
|
||||||
|
attr_accessor :bucket_by_session
|
||||||
|
|
||||||
|
# Specifies that data be aggregated by a single time interval. Mutually
|
||||||
|
# exclusive of other bucketing specifications.
|
||||||
|
# Corresponds to the JSON property `bucketByTime`
|
||||||
|
# @return [Google::Apis::FitnessV1::BucketByTime]
|
||||||
|
attr_accessor :bucket_by_time
|
||||||
|
|
||||||
|
# The end of a window of time. Data that intersects with this time window will
|
||||||
|
# be aggregated. The time is in milliseconds since epoch, inclusive.
|
||||||
|
# Corresponds to the JSON property `endTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :end_time_millis
|
||||||
|
|
||||||
|
# DO NOT POPULATE THIS FIELD. It is ignored.
|
||||||
|
# Corresponds to the JSON property `filteredDataQualityStandard`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :filtered_data_quality_standard
|
||||||
|
|
||||||
|
# The start of a window of time. Data that intersects with this time window will
|
||||||
|
# be aggregated. The time is in milliseconds since epoch, inclusive.
|
||||||
|
# Corresponds to the JSON property `startTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :start_time_millis
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@aggregate_by = args[:aggregate_by] if args.key?(:aggregate_by)
|
||||||
|
@bucket_by_activity_segment = args[:bucket_by_activity_segment] if args.key?(:bucket_by_activity_segment)
|
||||||
|
@bucket_by_activity_type = args[:bucket_by_activity_type] if args.key?(:bucket_by_activity_type)
|
||||||
|
@bucket_by_session = args[:bucket_by_session] if args.key?(:bucket_by_session)
|
||||||
|
@bucket_by_time = args[:bucket_by_time] if args.key?(:bucket_by_time)
|
||||||
|
@end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
|
||||||
|
@filtered_data_quality_standard = args[:filtered_data_quality_standard] if args.key?(:filtered_data_quality_standard)
|
||||||
|
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class AggregateResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of buckets containing the aggregated data.
|
||||||
|
# Corresponds to the JSON property `bucket`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::AggregateBucket>]
|
||||||
|
attr_accessor :bucket
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@bucket = args[:bucket] if args.key?(:bucket)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class Application
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# An optional URI that can be used to link back to the application.
|
||||||
|
# Corresponds to the JSON property `detailsUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :details_url
|
||||||
|
|
||||||
|
# The name of this application. This is required for REST clients, but we do not
|
||||||
|
# enforce uniqueness of this name. It is provided as a matter of convenience for
|
||||||
|
# other developers who would like to identify which REST created an Application
|
||||||
|
# or Data Source.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Package name for this application. This is used as a unique identifier when
|
||||||
|
# created by Android applications, but cannot be specified by REST clients. REST
|
||||||
|
# clients will have their developer project number reflected into the Data
|
||||||
|
# Source data stream IDs, instead of the packageName.
|
||||||
|
# Corresponds to the JSON property `packageName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :package_name
|
||||||
|
|
||||||
|
# Version of the application. You should update this field whenever the
|
||||||
|
# application changes in a way that affects the computation of the data.
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@details_url = args[:details_url] if args.key?(:details_url)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@package_name = args[:package_name] if args.key?(:package_name)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class BucketByActivity
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The default activity stream will be used if a specific activityDataSourceId is
|
||||||
|
# not specified.
|
||||||
|
# Corresponds to the JSON property `activityDataSourceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :activity_data_source_id
|
||||||
|
|
||||||
|
# Specifies that only activity segments of duration longer than
|
||||||
|
# minDurationMillis are considered and used as a container for aggregated data.
|
||||||
|
# Corresponds to the JSON property `minDurationMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :min_duration_millis
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@activity_data_source_id = args[:activity_data_source_id] if args.key?(:activity_data_source_id)
|
||||||
|
@min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class BucketBySession
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Specifies that only sessions of duration longer than minDurationMillis are
|
||||||
|
# considered and used as a container for aggregated data.
|
||||||
|
# Corresponds to the JSON property `minDurationMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :min_duration_millis
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class BucketByTime
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Specifies that result buckets aggregate data by exactly durationMillis time
|
||||||
|
# frames. Time frames that contain no data will be included in the response with
|
||||||
|
# an empty dataset.
|
||||||
|
# Corresponds to the JSON property `durationMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :duration_millis
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `period`
|
||||||
|
# @return [Google::Apis::FitnessV1::BucketByTimePeriod]
|
||||||
|
attr_accessor :period
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@duration_millis = args[:duration_millis] if args.key?(:duration_millis)
|
||||||
|
@period = args[:period] if args.key?(:period)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class BucketByTimePeriod
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# org.joda.timezone.DateTimeZone
|
||||||
|
# Corresponds to the JSON property `timeZoneId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time_zone_id
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `value`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :value
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@value = args[:value] if args.key?(:value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a single data point, generated by a particular data source. A data
|
||||||
|
# point holds a value for each field, an end timestamp and an optional start
|
||||||
|
# time. The exact semantics of each of these attributes are specified in the
|
||||||
|
# documentation for the particular data type. A data point can represent an
|
||||||
|
# instantaneous measurement, reading or input observation, as well as averages
|
||||||
|
# or aggregates over a time interval. Check the data type documentation to
|
||||||
|
# determine which is the case for a particular data type. Data points always
|
||||||
|
# contain one value for each field of the data type.
|
||||||
|
class DataPoint
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# DO NOT USE THIS FIELD. It is ignored, and not stored.
|
||||||
|
# Corresponds to the JSON property `computationTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :computation_time_millis
|
||||||
|
|
||||||
|
# The data type defining the format of the values in this data point.
|
||||||
|
# Corresponds to the JSON property `dataTypeName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_type_name
|
||||||
|
|
||||||
|
# The end time of the interval represented by this data point, in nanoseconds
|
||||||
|
# since epoch.
|
||||||
|
# Corresponds to the JSON property `endTimeNanos`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :end_time_nanos
|
||||||
|
|
||||||
|
# Indicates the last time this data point was modified. Useful only in contexts
|
||||||
|
# where we are listing the data changes, rather than representing the current
|
||||||
|
# state of the data.
|
||||||
|
# Corresponds to the JSON property `modifiedTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :modified_time_millis
|
||||||
|
|
||||||
|
# If the data point is contained in a dataset for a derived data source, this
|
||||||
|
# field will be populated with the data source stream ID that created the data
|
||||||
|
# point originally. WARNING: do not rely on this field for anything other than
|
||||||
|
# debugging. The value of this field, if it is set at all, is an implementation
|
||||||
|
# detail and is not guaranteed to remain consistent.
|
||||||
|
# Corresponds to the JSON property `originDataSourceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :origin_data_source_id
|
||||||
|
|
||||||
|
# The raw timestamp from the original SensorEvent.
|
||||||
|
# Corresponds to the JSON property `rawTimestampNanos`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :raw_timestamp_nanos
|
||||||
|
|
||||||
|
# The start time of the interval represented by this data point, in nanoseconds
|
||||||
|
# since epoch.
|
||||||
|
# Corresponds to the JSON property `startTimeNanos`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :start_time_nanos
|
||||||
|
|
||||||
|
# Values of each data type field for the data point. It is expected that each
|
||||||
|
# value corresponding to a data type field will occur in the same order that the
|
||||||
|
# field is listed with in the data type specified in a data source. Only one of
|
||||||
|
# integer and floating point fields will be populated, depending on the format
|
||||||
|
# enum value within data source's type field.
|
||||||
|
# Corresponds to the JSON property `value`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::Value>]
|
||||||
|
attr_accessor :value
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@computation_time_millis = args[:computation_time_millis] if args.key?(:computation_time_millis)
|
||||||
|
@data_type_name = args[:data_type_name] if args.key?(:data_type_name)
|
||||||
|
@end_time_nanos = args[:end_time_nanos] if args.key?(:end_time_nanos)
|
||||||
|
@modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis)
|
||||||
|
@origin_data_source_id = args[:origin_data_source_id] if args.key?(:origin_data_source_id)
|
||||||
|
@raw_timestamp_nanos = args[:raw_timestamp_nanos] if args.key?(:raw_timestamp_nanos)
|
||||||
|
@start_time_nanos = args[:start_time_nanos] if args.key?(:start_time_nanos)
|
||||||
|
@value = args[:value] if args.key?(:value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Definition of a unique source of sensor data. Data sources can expose raw data
|
||||||
|
# coming from hardware sensors on local or companion devices. They can also
|
||||||
|
# expose derived data, created by transforming or merging other data sources.
|
||||||
|
# Multiple data sources can exist for the same data type. Every data point
|
||||||
|
# inserted into or read from this service has an associated data source. The
|
||||||
|
# data source contains enough information to uniquely identify its data,
|
||||||
|
# including the hardware device and the application that collected and/or
|
||||||
|
# transformed the data. It also holds useful metadata, such as the hardware and
|
||||||
|
# application versions, and the device type. Each data source produces a unique
|
||||||
|
# stream of data, with a unique identifier. Not all changes to data source
|
||||||
|
# affect the stream identifier, so that data collected by updated versions of
|
||||||
|
# the same application/device can still be considered to belong to the same data
|
||||||
|
# stream.
|
||||||
|
class DataSource
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Information about an application which feeds sensor data into the platform.
|
||||||
|
# Corresponds to the JSON property `application`
|
||||||
|
# @return [Google::Apis::FitnessV1::Application]
|
||||||
|
attr_accessor :application
|
||||||
|
|
||||||
|
# DO NOT POPULATE THIS FIELD. It is never populated in responses from the
|
||||||
|
# platform, and is ignored in queries. It will be removed in a future version
|
||||||
|
# entirely.
|
||||||
|
# Corresponds to the JSON property `dataQualityStandard`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :data_quality_standard
|
||||||
|
|
||||||
|
# A unique identifier for the data stream produced by this data source. The
|
||||||
|
# identifier includes: - The physical device's manufacturer, model, and serial
|
||||||
|
# number (UID). - The application's package name or name. Package name is used
|
||||||
|
# when the data source was created by an Android application. The developer
|
||||||
|
# project number is used when the data source was created by a REST client. -
|
||||||
|
# The data source's type. - The data source's stream name. Note that not all
|
||||||
|
# attributes of the data source are used as part of the stream identifier. In
|
||||||
|
# particular, the version of the hardware/the application isn't used. This
|
||||||
|
# allows us to preserve the same stream through version updates. This also means
|
||||||
|
# that two DataSource objects may represent the same data stream even if they're
|
||||||
|
# not equal. The exact format of the data stream ID created by an Android
|
||||||
|
# application is: type:dataType.name:application.packageName:device.manufacturer:
|
||||||
|
# device.model:device.uid:dataStreamName The exact format of the data stream ID
|
||||||
|
# created by a REST client is: type:dataType.name:developer project number:
|
||||||
|
# device.manufacturer:device.model:device.uid:dataStreamName When any of the
|
||||||
|
# optional fields that make up the data stream ID are absent, they will be
|
||||||
|
# omitted from the data stream ID. The minimum viable data stream ID would be:
|
||||||
|
# type:dataType.name:developer project number Finally, the developer project
|
||||||
|
# number and device UID are obfuscated when read by any REST or Android client
|
||||||
|
# that did not create the data source. Only the data source creator will see the
|
||||||
|
# developer project number in clear and normal form. This means a client will
|
||||||
|
# see a different set of data_stream_ids than another client with different
|
||||||
|
# credentials.
|
||||||
|
# Corresponds to the JSON property `dataStreamId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_stream_id
|
||||||
|
|
||||||
|
# The stream name uniquely identifies this particular data source among other
|
||||||
|
# data sources of the same type from the same underlying producer. Setting the
|
||||||
|
# stream name is optional, but should be done whenever an application exposes
|
||||||
|
# two streams for the same data type, or when a device has two equivalent
|
||||||
|
# sensors.
|
||||||
|
# Corresponds to the JSON property `dataStreamName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_stream_name
|
||||||
|
|
||||||
|
# The data type defines the schema for a stream of data being collected by,
|
||||||
|
# inserted into, or queried from the Fitness API.
|
||||||
|
# Corresponds to the JSON property `dataType`
|
||||||
|
# @return [Google::Apis::FitnessV1::DataType]
|
||||||
|
attr_accessor :data_type
|
||||||
|
|
||||||
|
# Representation of an integrated device (such as a phone or a wearable) that
|
||||||
|
# can hold sensors. Each sensor is exposed as a data source. The main purpose of
|
||||||
|
# the device information contained in this class is to identify the hardware of
|
||||||
|
# a particular data source. This can be useful in different ways, including: -
|
||||||
|
# Distinguishing two similar sensors on different devices (the step counter on
|
||||||
|
# two nexus 5 phones, for instance) - Display the source of data to the user (by
|
||||||
|
# using the device make / model) - Treat data differently depending on sensor
|
||||||
|
# type (accelerometers on a watch may give different patterns than those on a
|
||||||
|
# phone) - Build different analysis models for each device/version.
|
||||||
|
# Corresponds to the JSON property `device`
|
||||||
|
# @return [Google::Apis::FitnessV1::Device]
|
||||||
|
attr_accessor :device
|
||||||
|
|
||||||
|
# An end-user visible name for this data source.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# A constant describing the type of this data source. Indicates whether this
|
||||||
|
# data source produces raw or derived data.
|
||||||
|
# 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)
|
||||||
|
@application = args[:application] if args.key?(:application)
|
||||||
|
@data_quality_standard = args[:data_quality_standard] if args.key?(:data_quality_standard)
|
||||||
|
@data_stream_id = args[:data_stream_id] if args.key?(:data_stream_id)
|
||||||
|
@data_stream_name = args[:data_stream_name] if args.key?(:data_stream_name)
|
||||||
|
@data_type = args[:data_type] if args.key?(:data_type)
|
||||||
|
@device = args[:device] if args.key?(:device)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class DataType
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A field represents one dimension of a data type.
|
||||||
|
# Corresponds to the JSON property `field`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::DataTypeField>]
|
||||||
|
attr_accessor :field
|
||||||
|
|
||||||
|
# Each data type has a unique, namespaced, name. All data types in the com.
|
||||||
|
# google namespace are shared as part of the platform.
|
||||||
|
# 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)
|
||||||
|
@field = args[:field] if args.key?(:field)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# In case of multi-dimensional data (such as an accelerometer with x, y, and z
|
||||||
|
# axes) each field represents one dimension. Each data type field has a unique
|
||||||
|
# name which identifies it. The field also defines the format of the data (int,
|
||||||
|
# float, etc.). This message is only instantiated in code and not used for wire
|
||||||
|
# comms or stored in any way.
|
||||||
|
class DataTypeField
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The different supported formats for each field in a data type.
|
||||||
|
# Corresponds to the JSON property `format`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :format
|
||||||
|
|
||||||
|
# Defines the name and format of data. Unlike data type names, field names are
|
||||||
|
# not namespaced, and only need to be unique within the data type.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `optional`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :optional
|
||||||
|
alias_method :optional?, :optional
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@format = args[:format] if args.key?(:format)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@optional = args[:optional] if args.key?(:optional)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A dataset represents a projection container for data points. They do not carry
|
||||||
|
# any info of their own. Datasets represent a set of data points from a
|
||||||
|
# particular data source. A data point can be found in more than one dataset.
|
||||||
|
class Dataset
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The data stream ID of the data source that created the points in this dataset.
|
||||||
|
# Corresponds to the JSON property `dataSourceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_source_id
|
||||||
|
|
||||||
|
# The largest end time of all data points in this possibly partial
|
||||||
|
# representation of the dataset. Time is in nanoseconds from epoch. This should
|
||||||
|
# also match the second part of the dataset identifier.
|
||||||
|
# Corresponds to the JSON property `maxEndTimeNs`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :max_end_time_ns
|
||||||
|
|
||||||
|
# The smallest start time of all data points in this possibly partial
|
||||||
|
# representation of the dataset. Time is in nanoseconds from epoch. This should
|
||||||
|
# also match the first part of the dataset identifier.
|
||||||
|
# Corresponds to the JSON property `minStartTimeNs`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :min_start_time_ns
|
||||||
|
|
||||||
|
# This token will be set when a dataset is received in response to a GET request
|
||||||
|
# and the dataset is too large to be included in a single response. Provide this
|
||||||
|
# value in a subsequent GET request to return the next page of data points
|
||||||
|
# within this dataset.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# A partial list of data points contained in the dataset, ordered by largest
|
||||||
|
# endTimeNanos first. This list is considered complete when retrieving a small
|
||||||
|
# dataset and partial when patching a dataset or retrieving a dataset that is
|
||||||
|
# too large to include in a single response.
|
||||||
|
# Corresponds to the JSON property `point`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::DataPoint>]
|
||||||
|
attr_accessor :point
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
|
||||||
|
@max_end_time_ns = args[:max_end_time_ns] if args.key?(:max_end_time_ns)
|
||||||
|
@min_start_time_ns = args[:min_start_time_ns] if args.key?(:min_start_time_ns)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
@point = args[:point] if args.key?(:point)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Representation of an integrated device (such as a phone or a wearable) that
|
||||||
|
# can hold sensors. Each sensor is exposed as a data source. The main purpose of
|
||||||
|
# the device information contained in this class is to identify the hardware of
|
||||||
|
# a particular data source. This can be useful in different ways, including: -
|
||||||
|
# Distinguishing two similar sensors on different devices (the step counter on
|
||||||
|
# two nexus 5 phones, for instance) - Display the source of data to the user (by
|
||||||
|
# using the device make / model) - Treat data differently depending on sensor
|
||||||
|
# type (accelerometers on a watch may give different patterns than those on a
|
||||||
|
# phone) - Build different analysis models for each device/version.
|
||||||
|
class Device
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Manufacturer of the product/hardware.
|
||||||
|
# Corresponds to the JSON property `manufacturer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :manufacturer
|
||||||
|
|
||||||
|
# End-user visible model name for the device.
|
||||||
|
# Corresponds to the JSON property `model`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :model
|
||||||
|
|
||||||
|
# A constant representing the type of the device.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
# The serial number or other unique ID for the hardware. This field is
|
||||||
|
# obfuscated when read by any REST or Android client that did not create the
|
||||||
|
# data source. Only the data source creator will see the uid field in clear and
|
||||||
|
# normal form. The obfuscation preserves equality; that is, given two IDs, if
|
||||||
|
# id1 == id2, obfuscated(id1) == obfuscated(id2).
|
||||||
|
# Corresponds to the JSON property `uid`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :uid
|
||||||
|
|
||||||
|
# Version string for the device hardware/software.
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
|
||||||
|
@model = args[:model] if args.key?(:model)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@uid = args[:uid] if args.key?(:uid)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ListDataPointChangesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The data stream ID of the data source with data point changes.
|
||||||
|
# Corresponds to the JSON property `dataSourceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_source_id
|
||||||
|
|
||||||
|
# Deleted data points for the user. Note, for modifications this should be
|
||||||
|
# parsed before handling insertions.
|
||||||
|
# Corresponds to the JSON property `deletedDataPoint`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::DataPoint>]
|
||||||
|
attr_accessor :deleted_data_point
|
||||||
|
|
||||||
|
# Inserted data points for the user.
|
||||||
|
# Corresponds to the JSON property `insertedDataPoint`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::DataPoint>]
|
||||||
|
attr_accessor :inserted_data_point
|
||||||
|
|
||||||
|
# The continuation token, which is used to page through large result sets.
|
||||||
|
# Provide this value in a subsequent request to return the next page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
|
||||||
|
@deleted_data_point = args[:deleted_data_point] if args.key?(:deleted_data_point)
|
||||||
|
@inserted_data_point = args[:inserted_data_point] if args.key?(:inserted_data_point)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ListDataSourcesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A previously created data source.
|
||||||
|
# Corresponds to the JSON property `dataSource`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::DataSource>]
|
||||||
|
attr_accessor :data_source
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@data_source = args[:data_source] if args.key?(:data_source)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ListSessionsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If includeDeleted is set to true in the request, and startTime and endTime are
|
||||||
|
# omitted, this will include sessions which were deleted since the last sync.
|
||||||
|
# Corresponds to the JSON property `deletedSession`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::Session>]
|
||||||
|
attr_accessor :deleted_session
|
||||||
|
|
||||||
|
# Flag to indicate server has more data to transfer. DO NOT USE THIS FIELD. It
|
||||||
|
# is never populated in responses from the server.
|
||||||
|
# Corresponds to the JSON property `hasMoreData`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :has_more_data
|
||||||
|
alias_method :has_more_data?, :has_more_data
|
||||||
|
|
||||||
|
# The sync token which is used to sync further changes. This will only be
|
||||||
|
# provided if both startTime and endTime are omitted from the request.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# Sessions with an end time that is between startTime and endTime of the request.
|
||||||
|
# Corresponds to the JSON property `session`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::Session>]
|
||||||
|
attr_accessor :session
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@deleted_session = args[:deleted_session] if args.key?(:deleted_session)
|
||||||
|
@has_more_data = args[:has_more_data] if args.key?(:has_more_data)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
@session = args[:session] if args.key?(:session)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Holder object for the value of an entry in a map field of a data point. A map
|
||||||
|
# value supports a subset of the formats that the regular Value supports.
|
||||||
|
class MapValue
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Floating point value.
|
||||||
|
# Corresponds to the JSON property `fpVal`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :fp_val
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@fp_val = args[:fp_val] if args.key?(:fp_val)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Sessions contain metadata, such as a user-friendly name and time interval
|
||||||
|
# information.
|
||||||
|
class Session
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Session active time. While start_time_millis and end_time_millis define the
|
||||||
|
# full session time, the active time can be shorter and specified by
|
||||||
|
# active_time_millis. If the inactive time during the session is known, it
|
||||||
|
# should also be inserted via a com.google.activity.segment data point with a
|
||||||
|
# STILL activity value
|
||||||
|
# Corresponds to the JSON property `activeTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :active_time_millis
|
||||||
|
|
||||||
|
# The type of activity this session represents.
|
||||||
|
# Corresponds to the JSON property `activityType`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :activity_type
|
||||||
|
|
||||||
|
# The application that created the session.
|
||||||
|
# Corresponds to the JSON property `application`
|
||||||
|
# @return [Google::Apis::FitnessV1::Application]
|
||||||
|
attr_accessor :application
|
||||||
|
|
||||||
|
# A description for this session.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# An end time, in milliseconds since epoch, inclusive.
|
||||||
|
# Corresponds to the JSON property `endTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :end_time_millis
|
||||||
|
|
||||||
|
# A client-generated identifier that is unique across all sessions owned by this
|
||||||
|
# particular user.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# A timestamp that indicates when the session was last modified.
|
||||||
|
# Corresponds to the JSON property `modifiedTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :modified_time_millis
|
||||||
|
|
||||||
|
# A human readable name of the session.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# A start time, in milliseconds since epoch, inclusive.
|
||||||
|
# Corresponds to the JSON property `startTimeMillis`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :start_time_millis
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@active_time_millis = args[:active_time_millis] if args.key?(:active_time_millis)
|
||||||
|
@activity_type = args[:activity_type] if args.key?(:activity_type)
|
||||||
|
@application = args[:application] if args.key?(:application)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
|
||||||
|
@id = args[:id] if args.key?(:id)
|
||||||
|
@modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Holder object for the value of a single field in a data point. A field value
|
||||||
|
# has a particular format and is only ever set to one of an integer or a
|
||||||
|
# floating point value.
|
||||||
|
class Value
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Floating point value. When this is set, other values must not be set.
|
||||||
|
# Corresponds to the JSON property `fpVal`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :fp_val
|
||||||
|
|
||||||
|
# Integer value. When this is set, other values must not be set.
|
||||||
|
# Corresponds to the JSON property `intVal`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :int_val
|
||||||
|
|
||||||
|
# Map value. The valid key space and units for the corresponding value of each
|
||||||
|
# entry should be documented as part of the data type definition. Keys should be
|
||||||
|
# kept small whenever possible. Data streams with large keys and high data
|
||||||
|
# frequency may be down sampled.
|
||||||
|
# Corresponds to the JSON property `mapVal`
|
||||||
|
# @return [Array<Google::Apis::FitnessV1::ValueMapValEntry>]
|
||||||
|
attr_accessor :map_val
|
||||||
|
|
||||||
|
# String value. When this is set, other values must not be set. Strings should
|
||||||
|
# be kept small whenever possible. Data streams with large string values and
|
||||||
|
# high data frequency may be down sampled.
|
||||||
|
# Corresponds to the JSON property `stringVal`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :string_val
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@fp_val = args[:fp_val] if args.key?(:fp_val)
|
||||||
|
@int_val = args[:int_val] if args.key?(:int_val)
|
||||||
|
@map_val = args[:map_val] if args.key?(:map_val)
|
||||||
|
@string_val = args[:string_val] if args.key?(:string_val)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ValueMapValEntry
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `key`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# Holder object for the value of an entry in a map field of a data point. A map
|
||||||
|
# value supports a subset of the formats that the regular Value supports.
|
||||||
|
# Corresponds to the JSON property `value`
|
||||||
|
# @return [Google::Apis::FitnessV1::MapValue]
|
||||||
|
attr_accessor :value
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@key = args[:key] if args.key?(:key)
|
||||||
|
@value = args[:value] if args.key?(:value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,398 @@
|
||||||
|
# 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 FitnessV1
|
||||||
|
|
||||||
|
class AggregateBucket
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AggregateBy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AggregateRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AggregateResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Application
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BucketByActivity
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BucketBySession
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BucketByTime
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BucketByTimePeriod
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataPoint
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataSource
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataType
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataTypeField
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Dataset
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Device
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDataPointChangesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDataSourcesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListSessionsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MapValue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Session
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Value
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ValueMapValEntry
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AggregateBucket
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :activity, as: 'activity'
|
||||||
|
collection :dataset, as: 'dataset', class: Google::Apis::FitnessV1::Dataset, decorator: Google::Apis::FitnessV1::Dataset::Representation
|
||||||
|
|
||||||
|
property :end_time_millis, :numeric_string => true, as: 'endTimeMillis'
|
||||||
|
property :session, as: 'session', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation
|
||||||
|
|
||||||
|
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AggregateBy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :data_source_id, as: 'dataSourceId'
|
||||||
|
property :data_type_name, as: 'dataTypeName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AggregateRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :aggregate_by, as: 'aggregateBy', class: Google::Apis::FitnessV1::AggregateBy, decorator: Google::Apis::FitnessV1::AggregateBy::Representation
|
||||||
|
|
||||||
|
property :bucket_by_activity_segment, as: 'bucketByActivitySegment', class: Google::Apis::FitnessV1::BucketByActivity, decorator: Google::Apis::FitnessV1::BucketByActivity::Representation
|
||||||
|
|
||||||
|
property :bucket_by_activity_type, as: 'bucketByActivityType', class: Google::Apis::FitnessV1::BucketByActivity, decorator: Google::Apis::FitnessV1::BucketByActivity::Representation
|
||||||
|
|
||||||
|
property :bucket_by_session, as: 'bucketBySession', class: Google::Apis::FitnessV1::BucketBySession, decorator: Google::Apis::FitnessV1::BucketBySession::Representation
|
||||||
|
|
||||||
|
property :bucket_by_time, as: 'bucketByTime', class: Google::Apis::FitnessV1::BucketByTime, decorator: Google::Apis::FitnessV1::BucketByTime::Representation
|
||||||
|
|
||||||
|
property :end_time_millis, :numeric_string => true, as: 'endTimeMillis'
|
||||||
|
collection :filtered_data_quality_standard, as: 'filteredDataQualityStandard'
|
||||||
|
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AggregateResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :bucket, as: 'bucket', class: Google::Apis::FitnessV1::AggregateBucket, decorator: Google::Apis::FitnessV1::AggregateBucket::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Application
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :details_url, as: 'detailsUrl'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :package_name, as: 'packageName'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BucketByActivity
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :activity_data_source_id, as: 'activityDataSourceId'
|
||||||
|
property :min_duration_millis, :numeric_string => true, as: 'minDurationMillis'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BucketBySession
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :min_duration_millis, :numeric_string => true, as: 'minDurationMillis'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BucketByTime
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :duration_millis, :numeric_string => true, as: 'durationMillis'
|
||||||
|
property :period, as: 'period', class: Google::Apis::FitnessV1::BucketByTimePeriod, decorator: Google::Apis::FitnessV1::BucketByTimePeriod::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BucketByTimePeriod
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :time_zone_id, as: 'timeZoneId'
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataPoint
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :computation_time_millis, :numeric_string => true, as: 'computationTimeMillis'
|
||||||
|
property :data_type_name, as: 'dataTypeName'
|
||||||
|
property :end_time_nanos, :numeric_string => true, as: 'endTimeNanos'
|
||||||
|
property :modified_time_millis, :numeric_string => true, as: 'modifiedTimeMillis'
|
||||||
|
property :origin_data_source_id, as: 'originDataSourceId'
|
||||||
|
property :raw_timestamp_nanos, :numeric_string => true, as: 'rawTimestampNanos'
|
||||||
|
property :start_time_nanos, :numeric_string => true, as: 'startTimeNanos'
|
||||||
|
collection :value, as: 'value', class: Google::Apis::FitnessV1::Value, decorator: Google::Apis::FitnessV1::Value::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataSource
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :application, as: 'application', class: Google::Apis::FitnessV1::Application, decorator: Google::Apis::FitnessV1::Application::Representation
|
||||||
|
|
||||||
|
collection :data_quality_standard, as: 'dataQualityStandard'
|
||||||
|
property :data_stream_id, as: 'dataStreamId'
|
||||||
|
property :data_stream_name, as: 'dataStreamName'
|
||||||
|
property :data_type, as: 'dataType', class: Google::Apis::FitnessV1::DataType, decorator: Google::Apis::FitnessV1::DataType::Representation
|
||||||
|
|
||||||
|
property :device, as: 'device', class: Google::Apis::FitnessV1::Device, decorator: Google::Apis::FitnessV1::Device::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataType
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :field, as: 'field', class: Google::Apis::FitnessV1::DataTypeField, decorator: Google::Apis::FitnessV1::DataTypeField::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataTypeField
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :format, as: 'format'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :optional, as: 'optional'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Dataset
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :data_source_id, as: 'dataSourceId'
|
||||||
|
property :max_end_time_ns, :numeric_string => true, as: 'maxEndTimeNs'
|
||||||
|
property :min_start_time_ns, :numeric_string => true, as: 'minStartTimeNs'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :point, as: 'point', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Device
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :manufacturer, as: 'manufacturer'
|
||||||
|
property :model, as: 'model'
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :uid, as: 'uid'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDataPointChangesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :data_source_id, as: 'dataSourceId'
|
||||||
|
collection :deleted_data_point, as: 'deletedDataPoint', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation
|
||||||
|
|
||||||
|
collection :inserted_data_point, as: 'insertedDataPoint', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDataSourcesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :data_source, as: 'dataSource', class: Google::Apis::FitnessV1::DataSource, decorator: Google::Apis::FitnessV1::DataSource::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListSessionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :deleted_session, as: 'deletedSession', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation
|
||||||
|
|
||||||
|
property :has_more_data, as: 'hasMoreData'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :session, as: 'session', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MapValue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :fp_val, as: 'fpVal'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Session
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :active_time_millis, :numeric_string => true, as: 'activeTimeMillis'
|
||||||
|
property :activity_type, as: 'activityType'
|
||||||
|
property :application, as: 'application', class: Google::Apis::FitnessV1::Application, decorator: Google::Apis::FitnessV1::Application::Representation
|
||||||
|
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :end_time_millis, :numeric_string => true, as: 'endTimeMillis'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :modified_time_millis, :numeric_string => true, as: 'modifiedTimeMillis'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Value
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :fp_val, as: 'fpVal'
|
||||||
|
property :int_val, as: 'intVal'
|
||||||
|
collection :map_val, as: 'mapVal', class: Google::Apis::FitnessV1::ValueMapValEntry, decorator: Google::Apis::FitnessV1::ValueMapValEntry::Representation
|
||||||
|
|
||||||
|
property :string_val, as: 'stringVal'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ValueMapValEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value', class: Google::Apis::FitnessV1::MapValue, decorator: Google::Apis::FitnessV1::MapValue::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,626 @@
|
||||||
|
# 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 FitnessV1
|
||||||
|
# Fitness API
|
||||||
|
#
|
||||||
|
# The Fitness API for managing users' fitness tracking data.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/fitness_v1'
|
||||||
|
#
|
||||||
|
# Fitness = Google::Apis::FitnessV1 # Alias the module
|
||||||
|
# service = Fitness::FitnessService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/fit/rest/v1/get-started
|
||||||
|
class FitnessService < 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://www.googleapis.com/', 'fitness/v1/users/')
|
||||||
|
@batch_path = 'batch/fitness/v1'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a new data source that is unique across all data sources belonging to
|
||||||
|
# this user. A data source is a unique source of sensor data. Data sources can
|
||||||
|
# expose raw data coming from hardware sensors on local or companion devices.
|
||||||
|
# They can also expose derived data, created by transforming or merging other
|
||||||
|
# data sources. Multiple data sources can exist for the same data type. Every
|
||||||
|
# data point in every dataset inserted into or read from the Fitness API has an
|
||||||
|
# associated data source. Each data source produces a unique stream of dataset
|
||||||
|
# updates, with a unique data source identifier. Not all changes to data source
|
||||||
|
# affect the data stream ID, so that data collected by updated versions of the
|
||||||
|
# same application/device can still be considered to belong to the same data
|
||||||
|
# source. Data sources are identified using a string generated by the server,
|
||||||
|
# based on the contents of the source being created. The dataStreamId field
|
||||||
|
# should not be set when invoking this method. It will be automatically
|
||||||
|
# generated by the server with the correct format. If a dataStreamId is set, it
|
||||||
|
# must match the format that the server would generate. This format is a
|
||||||
|
# combination of some fields from the data source, and has a specific order. If
|
||||||
|
# it doesn't match, the request will fail with an error. Specifying a DataType
|
||||||
|
# which is not a known type (beginning with "com.google.") will create a
|
||||||
|
# DataSource with a *custom data type*. Custom data types are only readable by
|
||||||
|
# the application that created them. Custom data types are *deprecated*; use
|
||||||
|
# standard data types instead. In addition to the data source fields included in
|
||||||
|
# the data source ID, the developer project number that is authenticated when
|
||||||
|
# creating the data source is included. This developer project number is
|
||||||
|
# obfuscated when read by any other developer reading public data types.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Create the data source for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [Google::Apis::FitnessV1::DataSource] data_source_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::FitnessV1::DataSource] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::DataSource]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_data_source(user_id, data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{userId}/dataSources', options)
|
||||||
|
command.request_representation = Google::Apis::FitnessV1::DataSource::Representation
|
||||||
|
command.request_object = data_source_object
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::DataSource
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes the specified data source. The request will fail if the data source
|
||||||
|
# contains any data points.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Retrieve a data source for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] data_source_id
|
||||||
|
# The data stream ID of the data source 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::FitnessV1::DataSource] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::DataSource]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def delete_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, '{userId}/dataSources/{dataSourceId}', options)
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::DataSource
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['dataSourceId'] = data_source_id unless data_source_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 the specified data source.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Retrieve a data source for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] data_source_id
|
||||||
|
# The data stream ID of the data source to retrieve.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::FitnessV1::DataSource] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::DataSource]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{userId}/dataSources/{dataSourceId}', options)
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::DataSource
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['dataSourceId'] = data_source_id unless data_source_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 data sources that are visible to the developer, using the OAuth
|
||||||
|
# scopes provided. The list is not exhaustive; the user may have private data
|
||||||
|
# sources that are only visible to other developers, or calls using other scopes.
|
||||||
|
# @param [String] user_id
|
||||||
|
# List data sources for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [Array<String>, String] data_type_name
|
||||||
|
# The names of data types to include in the list. If not specified, all data
|
||||||
|
# sources will be returned.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::FitnessV1::ListDataSourcesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::ListDataSourcesResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_data_sources(user_id, data_type_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{userId}/dataSources', options)
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::ListDataSourcesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::ListDataSourcesResponse
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.query['dataTypeName'] = data_type_name unless data_type_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
|
||||||
|
|
||||||
|
# Updates the specified data source. The dataStreamId, dataType, type,
|
||||||
|
# dataStreamName, and device properties with the exception of version, cannot be
|
||||||
|
# modified. Data sources are identified by their dataStreamId.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Update the data source for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] data_source_id
|
||||||
|
# The data stream ID of the data source to update.
|
||||||
|
# @param [Google::Apis::FitnessV1::DataSource] data_source_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::FitnessV1::DataSource] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::DataSource]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def update_user_data_source(user_id, data_source_id, data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, '{userId}/dataSources/{dataSourceId}', options)
|
||||||
|
command.request_representation = Google::Apis::FitnessV1::DataSource::Representation
|
||||||
|
command.request_object = data_source_object
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::DataSource
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['dataSourceId'] = data_source_id unless data_source_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
|
||||||
|
|
||||||
|
# Queries for user's data point changes for a particular data source.
|
||||||
|
# @param [String] user_id
|
||||||
|
# List data points for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] data_source_id
|
||||||
|
# The data stream ID of the data source that created the dataset.
|
||||||
|
# @param [Fixnum] limit
|
||||||
|
# If specified, no more than this many data point changes will be included in
|
||||||
|
# the response.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The continuation token, which is used to page through large result sets. To
|
||||||
|
# get the next page of results, set this parameter to the value of nextPageToken
|
||||||
|
# from the previous response.
|
||||||
|
# @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::FitnessV1::ListDataPointChangesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::ListDataPointChangesResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_data_source_data_point_changes(user_id, data_source_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{userId}/dataSources/{dataSourceId}/dataPointChanges', options)
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::ListDataPointChangesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::ListDataPointChangesResponse
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
||||||
|
command.query['limit'] = limit unless limit.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Performs an inclusive delete of all data points whose start and end times have
|
||||||
|
# any overlap with the time range specified by the dataset ID. For most data
|
||||||
|
# types, the entire data point will be deleted. For data types where the time
|
||||||
|
# span represents a consistent value (such as com.google.activity.segment), and
|
||||||
|
# a data point straddles either end point of the dataset, only the overlapping
|
||||||
|
# portion of the data point will be deleted.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Delete a dataset for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] data_source_id
|
||||||
|
# The data stream ID of the data source that created the dataset.
|
||||||
|
# @param [String] dataset_id
|
||||||
|
# Dataset identifier that is a composite of the minimum data point start time
|
||||||
|
# and maximum data point end time represented as nanoseconds from the epoch. The
|
||||||
|
# ID is formatted like: "startTime-endTime" where startTime and endTime are 64
|
||||||
|
# bit integers.
|
||||||
|
# @param [Fixnum] current_time_millis
|
||||||
|
# The client's current time in milliseconds since epoch.
|
||||||
|
# @param [Fixnum] modified_time_millis
|
||||||
|
# When the operation was performed on the client.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def delete_user_data_source_dataset(user_id, data_source_id, dataset_id, current_time_millis: nil, modified_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
||||||
|
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
||||||
|
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
||||||
|
command.query['modifiedTimeMillis'] = modified_time_millis unless modified_time_millis.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns a dataset containing all data points whose start and end times overlap
|
||||||
|
# with the specified range of the dataset minimum start time and maximum end
|
||||||
|
# time. Specifically, any data point whose start time is less than or equal to
|
||||||
|
# the dataset end time and whose end time is greater than or equal to the
|
||||||
|
# dataset start time.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Retrieve a dataset for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] data_source_id
|
||||||
|
# The data stream ID of the data source that created the dataset.
|
||||||
|
# @param [String] dataset_id
|
||||||
|
# Dataset identifier that is a composite of the minimum data point start time
|
||||||
|
# and maximum data point end time represented as nanoseconds from the epoch. The
|
||||||
|
# ID is formatted like: "startTime-endTime" where startTime and endTime are 64
|
||||||
|
# bit integers.
|
||||||
|
# @param [Fixnum] limit
|
||||||
|
# If specified, no more than this many data points will be included in the
|
||||||
|
# dataset. If there are more data points in the dataset, nextPageToken will be
|
||||||
|
# set in the dataset response.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The continuation token, which is used to page through large datasets. To get
|
||||||
|
# the next page of a dataset, set this parameter to the value of nextPageToken
|
||||||
|
# from the previous response. Each subsequent call will yield a partial dataset
|
||||||
|
# with data point end timestamps that are strictly smaller than those in the
|
||||||
|
# previous partial response.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::FitnessV1::Dataset] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::Dataset]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_user_data_source_dataset(user_id, data_source_id, dataset_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::Dataset::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::Dataset
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
||||||
|
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
||||||
|
command.query['limit'] = limit unless limit.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Adds data points to a dataset. The dataset need not be previously created. All
|
||||||
|
# points within the given dataset will be returned with subsquent calls to
|
||||||
|
# retrieve this dataset. Data points can belong to more than one dataset. This
|
||||||
|
# method does not use patch semantics.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Patch a dataset for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] data_source_id
|
||||||
|
# The data stream ID of the data source that created the dataset.
|
||||||
|
# @param [String] dataset_id
|
||||||
|
# Dataset identifier that is a composite of the minimum data point start time
|
||||||
|
# and maximum data point end time represented as nanoseconds from the epoch. The
|
||||||
|
# ID is formatted like: "startTime-endTime" where startTime and endTime are 64
|
||||||
|
# bit integers.
|
||||||
|
# @param [Google::Apis::FitnessV1::Dataset] dataset_object
|
||||||
|
# @param [Fixnum] current_time_millis
|
||||||
|
# The client's current time in milliseconds since epoch. Note that the
|
||||||
|
# minStartTimeNs and maxEndTimeNs properties in the request body are in
|
||||||
|
# nanoseconds instead of milliseconds.
|
||||||
|
# @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::FitnessV1::Dataset] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::Dataset]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def patch_user_data_source_dataset(user_id, data_source_id, dataset_id, dataset_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
||||||
|
command.request_representation = Google::Apis::FitnessV1::Dataset::Representation
|
||||||
|
command.request_object = dataset_object
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::Dataset::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::Dataset
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
||||||
|
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
||||||
|
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Aggregates data of a certain type or stream into buckets divided by a given
|
||||||
|
# type of boundary. Multiple data sets of multiple types and from multiple
|
||||||
|
# sources can be aggregated into exactly one bucket type per request.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Aggregate data for the person identified. Use me to indicate the authenticated
|
||||||
|
# user. Only me is supported at this time.
|
||||||
|
# @param [Google::Apis::FitnessV1::AggregateRequest] aggregate_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @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::FitnessV1::AggregateResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::AggregateResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def aggregate_dataset(user_id, aggregate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{userId}/dataset:aggregate', options)
|
||||||
|
command.request_representation = Google::Apis::FitnessV1::AggregateRequest::Representation
|
||||||
|
command.request_object = aggregate_request_object
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::AggregateResponse::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::AggregateResponse
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes a session specified by the given session ID.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Delete a session for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] session_id
|
||||||
|
# The ID of the session to be deleted.
|
||||||
|
# @param [Fixnum] current_time_millis
|
||||||
|
# The client's current time in milliseconds since epoch.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def delete_user_session(user_id, session_id, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, '{userId}/sessions/{sessionId}', options)
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['sessionId'] = session_id unless session_id.nil?
|
||||||
|
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.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 sessions previously created.
|
||||||
|
# @param [String] user_id
|
||||||
|
# List sessions for the person identified. Use me to indicate the authenticated
|
||||||
|
# user. Only me is supported at this time.
|
||||||
|
# @param [Array<Fixnum>, Fixnum] activity_type
|
||||||
|
# If non-empty, only sessions with these activity types should be returned.
|
||||||
|
# @param [String] end_time
|
||||||
|
# An RFC3339 timestamp. Only sessions ending between the start and end times
|
||||||
|
# will be included in the response. If this time is omitted but startTime is
|
||||||
|
# specified, all sessions from startTime to the end of time will be returned.
|
||||||
|
# @param [Boolean] include_deleted
|
||||||
|
# If true, and if both startTime and endTime are omitted, session deletions will
|
||||||
|
# be returned.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The continuation token, which is used for incremental syncing. To get the next
|
||||||
|
# batch of changes, set this parameter to the value of nextPageToken from the
|
||||||
|
# previous response. The page token is ignored if either start or end time is
|
||||||
|
# specified. If none of start time, end time, and the page token is specified,
|
||||||
|
# sessions modified in the last 30 days are returned.
|
||||||
|
# @param [String] start_time
|
||||||
|
# An RFC3339 timestamp. Only sessions ending between the start and end times
|
||||||
|
# will be included in the response. If this time is omitted but endTime is
|
||||||
|
# specified, all sessions from the start of time up to endTime will be returned.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::FitnessV1::ListSessionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::ListSessionsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_user_sessions(user_id, activity_type: nil, end_time: nil, include_deleted: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{userId}/sessions', options)
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::ListSessionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::ListSessionsResponse
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.query['activityType'] = activity_type unless activity_type.nil?
|
||||||
|
command.query['endTime'] = end_time unless end_time.nil?
|
||||||
|
command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['startTime'] = start_time unless start_time.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 or insert a given session.
|
||||||
|
# @param [String] user_id
|
||||||
|
# Create sessions for the person identified. Use me to indicate the
|
||||||
|
# authenticated user. Only me is supported at this time.
|
||||||
|
# @param [String] session_id
|
||||||
|
# The ID of the session to be created.
|
||||||
|
# @param [Google::Apis::FitnessV1::Session] session_object
|
||||||
|
# @param [Fixnum] current_time_millis
|
||||||
|
# The client's current time in milliseconds since epoch.
|
||||||
|
# @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::FitnessV1::Session] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FitnessV1::Session]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def update_user_session(user_id, session_id, session_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, '{userId}/sessions/{sessionId}', options)
|
||||||
|
command.request_representation = Google::Apis::FitnessV1::Session::Representation
|
||||||
|
command.request_object = session_object
|
||||||
|
command.response_representation = Google::Apis::FitnessV1::Session::Representation
|
||||||
|
command.response_class = Google::Apis::FitnessV1::Session
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.params['sessionId'] = session_id unless session_id.nil?
|
||||||
|
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/ml/
|
# @see https://cloud.google.com/ml/
|
||||||
module MlV1
|
module MlV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200806'
|
REVISION = '20200814'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -29,7 +29,7 @@ module Google
|
||||||
# @see https://cloud.google.com/monitoring/api/
|
# @see https://cloud.google.com/monitoring/api/
|
||||||
module MonitoringV3
|
module MonitoringV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20200803'
|
REVISION = '20200817'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -2198,13 +2198,7 @@ module Google
|
||||||
|
|
||||||
# Defines a metric type and its schema. Once a metric descriptor is created,
|
# Defines a metric type and its schema. Once a metric descriptor is created,
|
||||||
# deleting or altering it stops data collection and makes the metric type's
|
# deleting or altering it stops data collection and makes the metric type's
|
||||||
# existing data unusable.The following are specific rules for service defined
|
# existing data unusable.
|
||||||
# Monitoring metric descriptors: type, metric_kind, value_type and description
|
|
||||||
# fields are all required. The unit field must be specified if the value_type is
|
|
||||||
# any of DOUBLE, INT64, DISTRIBUTION. Maximum of default 500 metric descriptors
|
|
||||||
# per service is allowed. Maximum of default 10 labels per metric descriptor is
|
|
||||||
# allowed.The default maximum limit can be overridden. Please follow https://
|
|
||||||
# cloud.google.com/monitoring/quotas
|
|
||||||
class MetricDescriptor
|
class MetricDescriptor
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -2222,12 +2216,10 @@ module Google
|
||||||
attr_accessor :display_name
|
attr_accessor :display_name
|
||||||
|
|
||||||
# The set of labels that can be used to describe a specific instance of this
|
# The set of labels that can be used to describe a specific instance of this
|
||||||
# metric type.The label key name must follow: Only upper and lower-case letters,
|
# metric type. For example, the appengine.googleapis.com/http/server/
|
||||||
# digits and underscores (_) are allowed. Label name must start with a letter or
|
# response_latencies metric type has a label for the HTTP response code,
|
||||||
# digit. The maximum length of a label name is 100 characters.For example, the
|
# response_code, so you can look at latencies for successful responses or just
|
||||||
# appengine.googleapis.com/http/server/response_latencies metric type has a
|
# for responses that failed.
|
||||||
# label for the HTTP response code, response_code, so you can look at latencies
|
|
||||||
# for successful responses or just for responses that failed.
|
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
@ -2262,16 +2254,11 @@ module Google
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# The metric type, including its DNS name prefix. The type is not URL-encoded.
|
# The metric type, including its DNS name prefix. The type is not URL-encoded.
|
||||||
# All service defined metrics must be prefixed with the service name, in the
|
# All user-defined metric types have the DNS name custom.googleapis.com or
|
||||||
# format of `service name`/`relative metric name`, such as cloudsql.googleapis.
|
# external.googleapis.com. Metric types should use a natural hierarchical
|
||||||
# com/database/cpu/utilization. The relative metric name must follow: Only upper
|
# grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external.
|
||||||
# and lower-case letters, digits, '/' and underscores '_' are allowed. The
|
# googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/
|
||||||
# maximum number of characters allowed for the relative_metric_name is 100.All
|
# response_latencies"
|
||||||
# user-defined metric types have the DNS name custom.googleapis.com, external.
|
|
||||||
# googleapis.com, or logging.googleapis.com/user/.Metric types should use a
|
|
||||||
# natural hierarchical grouping. For example: "custom.googleapis.com/invoice/
|
|
||||||
# paid/amount" "external.googleapis.com/prometheus/up" "appengine.googleapis.com/
|
|
||||||
# http/server/response_latencies"
|
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
@ -2558,16 +2545,9 @@ module Google
|
||||||
# name and a set of labels. For example, the monitored resource descriptor for
|
# name and a set of labels. For example, the monitored resource descriptor for
|
||||||
# Google Compute Engine VM instances has a type of "gce_instance" and specifies
|
# Google Compute Engine VM instances has a type of "gce_instance" and specifies
|
||||||
# the use of the labels "instance_id" and "zone" to identify particular VM
|
# the use of the labels "instance_id" and "zone" to identify particular VM
|
||||||
# instances.Different services can support different monitored resource types.
|
# instances.Different APIs can support different monitored resource types. APIs
|
||||||
# The following are specific rules to service defined monitored resources for
|
# generally provide a list method that returns the monitored resource
|
||||||
# Monitoring and Logging: The type, display_name, description, labels and
|
# descriptors used by the API.
|
||||||
# launch_stage fields are all required. The first label of the monitored
|
|
||||||
# resource descriptor must be resource_container. There are legacy monitored
|
|
||||||
# resource descritptors start with project_id. It must include a location label.
|
|
||||||
# Maximum of default 5 service defined monitored resource descriptors is allowed
|
|
||||||
# per service. Maximum of default 10 labels per monitored resource is allowed.
|
|
||||||
# The default maximum limit can be overridden. Please follow https://cloud.
|
|
||||||
# google.com/monitoring/quotas
|
|
||||||
class MonitoredResourceDescriptor
|
class MonitoredResourceDescriptor
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -2585,11 +2565,8 @@ module Google
|
||||||
attr_accessor :display_name
|
attr_accessor :display_name
|
||||||
|
|
||||||
# Required. A set of labels used to describe instances of this monitored
|
# Required. A set of labels used to describe instances of this monitored
|
||||||
# resource type. The label key name must follow: Only upper and lower-case
|
# resource type. For example, an individual Google Cloud SQL database is
|
||||||
# letters, digits and underscores (_) are allowed. Label name must start with a
|
# identified by values for the labels "database_id" and "zone".
|
||||||
# letter or digit. The maximum length of a label name is 100 characters.For
|
|
||||||
# example, an individual Google Cloud SQL database is identified by values for
|
|
||||||
# the labels database_id and location.
|
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
@ -2609,14 +2586,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Required. The monitored resource type. For example, the type cloudsql_database
|
# Required. The monitored resource type. For example, the type "
|
||||||
# represents databases in Google Cloud SQL.All service defined monitored
|
# cloudsql_database" represents databases in Google Cloud SQL.
|
||||||
# resource types must be prefixed with the service name, in the format of `
|
|
||||||
# service name`/`relative resource name`. The relative resource name must follow:
|
|
||||||
# Only upper and lower-case letters and digits are allowed. It must start with
|
|
||||||
# upper case character and is recommended to use Upper Camel Case style. The
|
|
||||||
# maximum number of characters allowed for the relative_resource_name is 100.
|
|
||||||
# Note there are legacy service monitored resources not following this rule.
|
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
@ -3014,6 +2985,61 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The position of a byte within the text.
|
||||||
|
class Position
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The column within the line, starting with 1, where the byte is positioned.
|
||||||
|
# This is a byte index even though the text is UTF-8.
|
||||||
|
# Corresponds to the JSON property `column`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :column
|
||||||
|
|
||||||
|
# The line, starting with 1, where the byte is positioned.
|
||||||
|
# Corresponds to the JSON property `line`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :line
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@column = args[:column] if args.key?(:column)
|
||||||
|
@line = args[:line] if args.key?(:line)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# An error associated with a query in the time series query language format.
|
||||||
|
class QueryError
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A locator for text. Indicates a particular part of the text of a request or of
|
||||||
|
# an object referenced in the request.For example, suppose the request field
|
||||||
|
# text contains:text: "The quick brown fox jumps over the lazy dog."Then the
|
||||||
|
# locator:source: "text" start_position ` line: 1 column: 17 ` end_position `
|
||||||
|
# line: 1 column: 19 `refers to the part of the text: "fox".
|
||||||
|
# Corresponds to the JSON property `locator`
|
||||||
|
# @return [Google::Apis::MonitoringV3::TextLocator]
|
||||||
|
attr_accessor :locator
|
||||||
|
|
||||||
|
# The error message.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@locator = args[:locator] if args.key?(:locator)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# The QueryTimeSeries request.
|
# The QueryTimeSeries request.
|
||||||
class QueryTimeSeriesRequest
|
class QueryTimeSeriesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -3075,6 +3101,11 @@ module Google
|
||||||
# @return [Google::Apis::MonitoringV3::TimeSeriesDescriptor]
|
# @return [Google::Apis::MonitoringV3::TimeSeriesDescriptor]
|
||||||
attr_accessor :time_series_descriptor
|
attr_accessor :time_series_descriptor
|
||||||
|
|
||||||
|
# Warnings about query, includes unit errors.
|
||||||
|
# Corresponds to the JSON property `warnings`
|
||||||
|
# @return [Array<Google::Apis::MonitoringV3::QueryError>]
|
||||||
|
attr_accessor :warnings
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -3085,6 +3116,7 @@ module Google
|
||||||
@partial_errors = args[:partial_errors] if args.key?(:partial_errors)
|
@partial_errors = args[:partial_errors] if args.key?(:partial_errors)
|
||||||
@time_series_data = args[:time_series_data] if args.key?(:time_series_data)
|
@time_series_data = args[:time_series_data] if args.key?(:time_series_data)
|
||||||
@time_series_descriptor = args[:time_series_descriptor] if args.key?(:time_series_descriptor)
|
@time_series_descriptor = args[:time_series_descriptor] if args.key?(:time_series_descriptor)
|
||||||
|
@warnings = args[:warnings] if args.key?(:warnings)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3499,6 +3531,66 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A locator for text. Indicates a particular part of the text of a request or of
|
||||||
|
# an object referenced in the request.For example, suppose the request field
|
||||||
|
# text contains:text: "The quick brown fox jumps over the lazy dog."Then the
|
||||||
|
# locator:source: "text" start_position ` line: 1 column: 17 ` end_position `
|
||||||
|
# line: 1 column: 19 `refers to the part of the text: "fox".
|
||||||
|
class TextLocator
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The position of a byte within the text.
|
||||||
|
# Corresponds to the JSON property `endPosition`
|
||||||
|
# @return [Google::Apis::MonitoringV3::Position]
|
||||||
|
attr_accessor :end_position
|
||||||
|
|
||||||
|
# A locator for text. Indicates a particular part of the text of a request or of
|
||||||
|
# an object referenced in the request.For example, suppose the request field
|
||||||
|
# text contains:text: "The quick brown fox jumps over the lazy dog."Then the
|
||||||
|
# locator:source: "text" start_position ` line: 1 column: 17 ` end_position `
|
||||||
|
# line: 1 column: 19 `refers to the part of the text: "fox".
|
||||||
|
# Corresponds to the JSON property `nestedLocator`
|
||||||
|
# @return [Google::Apis::MonitoringV3::TextLocator]
|
||||||
|
attr_accessor :nested_locator
|
||||||
|
|
||||||
|
# When nested_locator is set, this field gives the reason for the nesting.
|
||||||
|
# Usually, the reason is a macro invocation. In that case, the macro name (
|
||||||
|
# including the leading '@') signals the location of the macro call in the text
|
||||||
|
# and a macro argument name (including the leading '$') signals the location of
|
||||||
|
# the macro argument inside the macro body that got substituted away.
|
||||||
|
# Corresponds to the JSON property `nestingReason`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :nesting_reason
|
||||||
|
|
||||||
|
# The source of the text. The source may be a field in the request, in which
|
||||||
|
# case its format is the format of the google.rpc.BadRequest.FieldViolation.
|
||||||
|
# field field in https://cloud.google.com/apis/design/errors#error_details. It
|
||||||
|
# may also be be a source other than the request field (e.g. a macro definition
|
||||||
|
# referenced in the text of the query), in which case this is the name of the
|
||||||
|
# source (e.g. the macro name).
|
||||||
|
# Corresponds to the JSON property `source`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :source
|
||||||
|
|
||||||
|
# The position of a byte within the text.
|
||||||
|
# Corresponds to the JSON property `startPosition`
|
||||||
|
# @return [Google::Apis::MonitoringV3::Position]
|
||||||
|
attr_accessor :start_position
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@end_position = args[:end_position] if args.key?(:end_position)
|
||||||
|
@nested_locator = args[:nested_locator] if args.key?(:nested_locator)
|
||||||
|
@nesting_reason = args[:nesting_reason] if args.key?(:nesting_reason)
|
||||||
|
@source = args[:source] if args.key?(:source)
|
||||||
|
@start_position = args[:start_position] if args.key?(:start_position)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A closed time interval. It extends from the start time to the end time, and
|
# A closed time interval. It extends from the start time to the end time, and
|
||||||
# includes both: [startTime, endTime]. Valid time intervals depend on the
|
# includes both: [startTime, endTime]. Valid time intervals depend on the
|
||||||
# MetricKind of the metric value. In no case can the end time be earlier than
|
# MetricKind of the metric value. In no case can the end time be earlier than
|
||||||
|
|
|
@ -436,6 +436,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Position
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class QueryError
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class QueryTimeSeriesRequest
|
class QueryTimeSeriesRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -520,6 +532,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TextLocator
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class TimeInterval
|
class TimeInterval
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1299,6 +1317,23 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Position
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :column, as: 'column'
|
||||||
|
property :line, as: 'line'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class QueryError
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :locator, as: 'locator', class: Google::Apis::MonitoringV3::TextLocator, decorator: Google::Apis::MonitoringV3::TextLocator::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class QueryTimeSeriesRequest
|
class QueryTimeSeriesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1318,6 +1353,8 @@ module Google
|
||||||
|
|
||||||
property :time_series_descriptor, as: 'timeSeriesDescriptor', class: Google::Apis::MonitoringV3::TimeSeriesDescriptor, decorator: Google::Apis::MonitoringV3::TimeSeriesDescriptor::Representation
|
property :time_series_descriptor, as: 'timeSeriesDescriptor', class: Google::Apis::MonitoringV3::TimeSeriesDescriptor, decorator: Google::Apis::MonitoringV3::TimeSeriesDescriptor::Representation
|
||||||
|
|
||||||
|
collection :warnings, as: 'warnings', class: Google::Apis::MonitoringV3::QueryError, decorator: Google::Apis::MonitoringV3::QueryError::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1435,6 +1472,20 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TextLocator
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :end_position, as: 'endPosition', class: Google::Apis::MonitoringV3::Position, decorator: Google::Apis::MonitoringV3::Position::Representation
|
||||||
|
|
||||||
|
property :nested_locator, as: 'nestedLocator', class: Google::Apis::MonitoringV3::TextLocator, decorator: Google::Apis::MonitoringV3::TextLocator::Representation
|
||||||
|
|
||||||
|
property :nesting_reason, as: 'nestingReason'
|
||||||
|
property :source, as: 'source'
|
||||||
|
property :start_position, as: 'startPosition', class: Google::Apis::MonitoringV3::Position, decorator: Google::Apis::MonitoringV3::Position::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class TimeInterval
|
class TimeInterval
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -1661,14 +1661,15 @@ module Google
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# A filter specifying what Services to return. The filter currently supports the
|
# A filter specifying what Services to return. The filter currently supports the
|
||||||
# following fields: - `identifier_case` - `app_engine.module_id` - `
|
# following fields: - `identifier_case` - `app_engine.module_id` - `
|
||||||
# cloud_endpoints.service` - `mesh_istio.mesh_uid` - `mesh_istio.
|
# cloud_endpoints.service` (reserved for future use) - `mesh_istio.mesh_uid` - `
|
||||||
# service_namespace` - `mesh_istio.service_name` - `cluster_istio.location` (
|
# mesh_istio.service_namespace` - `mesh_istio.service_name` - `cluster_istio.
|
||||||
# deprecated) - `cluster_istio.cluster_name` (deprecated) - `cluster_istio.
|
# location` (deprecated) - `cluster_istio.cluster_name` (deprecated) - `
|
||||||
# service_namespace` (deprecated) - `cluster_istio.service_name` (deprecated)
|
# cluster_istio.service_namespace` (deprecated) - `cluster_istio.service_name` (
|
||||||
# identifier_case refers to which option in the identifier oneof is populated.
|
# deprecated) identifier_case refers to which option in the identifier oneof is
|
||||||
# For example, the filter identifier_case = "CUSTOM" would match all services
|
# populated. For example, the filter identifier_case = "CUSTOM" would match all
|
||||||
# with a value for the custom field. Valid options are "CUSTOM", "APP_ENGINE", "
|
# services with a value for the custom field. Valid options are "CUSTOM", "
|
||||||
# CLOUD_ENDPOINTS", "MESH_ISTIO", and "CLUSTER_ISTIO" (deprecated),
|
# APP_ENGINE", "MESH_ISTIO", plus "CLUSTER_ISTIO" (deprecated) and "
|
||||||
|
# CLOUD_ENDPOINTS" (reserved for future use).
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# A non-negative number that is the maximum number of results to return. When 0,
|
# A non-negative number that is the maximum number of results to return. When 0,
|
||||||
# use default page size.
|
# use default page size.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/service-control/
|
# @see https://cloud.google.com/service-control/
|
||||||
module ServicecontrolV1
|
module ServicecontrolV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200808'
|
REVISION = '20200814'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
||||||
module ServicenetworkingV1
|
module ServicenetworkingV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200818'
|
REVISION = '20200819'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1014,6 +1014,20 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Metadata provided through GetOperation request for the LRO generated by
|
||||||
|
# DeletePeeredDnsDomain API.
|
||||||
|
class DeletePeeredDnsDomainMetadata
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Request to disable VPC service controls.
|
# Request to disable VPC service controls.
|
||||||
class DisableVpcServiceControlsRequest
|
class DisableVpcServiceControlsRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -2617,6 +2631,48 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# DNS domain suffix for which requests originating in the producer VPC network
|
||||||
|
# are resolved in the associated consumer VPC network.
|
||||||
|
class PeeredDnsDomain
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The DNS domain name suffix e.g. `example.com.`.
|
||||||
|
# Corresponds to the JSON property `dnsSuffix`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :dns_suffix
|
||||||
|
|
||||||
|
# User assigned name for this resource. Must be unique within the consumer
|
||||||
|
# network. The name must be 1-63 characters long, must begin with a letter, end
|
||||||
|
# with a letter or digit, and only contain lowercase letters, digits or dashes.
|
||||||
|
# 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)
|
||||||
|
@dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Metadata provided through GetOperation request for the LRO generated by
|
||||||
|
# CreatePeeredDnsDomain API.
|
||||||
|
class PeeredDnsDomainMetadata
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Grouping of IAM role and IAM member.
|
# Grouping of IAM role and IAM member.
|
||||||
class PolicyBinding
|
class PolicyBinding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -184,6 +184,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DeletePeeredDnsDomainMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class DisableVpcServiceControlsRequest
|
class DisableVpcServiceControlsRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -382,6 +388,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class PeeredDnsDomain
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PeeredDnsDomainMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class PolicyBinding
|
class PolicyBinding
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -808,6 +826,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DeletePeeredDnsDomainMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class DisableVpcServiceControlsRequest
|
class DisableVpcServiceControlsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1148,6 +1172,20 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class PeeredDnsDomain
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dns_suffix, as: 'dnsSuffix'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PeeredDnsDomainMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class PolicyBinding
|
class PolicyBinding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -698,6 +698,85 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Creates a peered DNS domain which sends requests for records in given
|
||||||
|
# namespace originating in the service producer VPC network to the consumer VPC
|
||||||
|
# network to be resolved.
|
||||||
|
# @param [String] parent
|
||||||
|
# Required. Parent resource identifying the connection for which the peered DNS
|
||||||
|
# domain will be created in the format: `services/`service`/projects/`project`/
|
||||||
|
# global/networks/`network`` `service` is the peering service that is managing
|
||||||
|
# connectivity for the service producer's organization. For Google services that
|
||||||
|
# support this functionality, this value is `servicenetworking.googleapis.com`. `
|
||||||
|
# project` is the number of the project that contains the service consumer's VPC
|
||||||
|
# network e.g. `12345`. `network` is the name of the service consumer's VPC
|
||||||
|
# network.
|
||||||
|
# @param [Google::Apis::ServicenetworkingV1::PeeredDnsDomain] peered_dns_domain_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::ServicenetworkingV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ServicenetworkingV1::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_service_project_global_network_peered_dns_domain(parent, peered_dns_domain_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+parent}/peeredDnsDomains', options)
|
||||||
|
command.request_representation = Google::Apis::ServicenetworkingV1::PeeredDnsDomain::Representation
|
||||||
|
command.request_object = peered_dns_domain_object
|
||||||
|
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ServicenetworkingV1::Operation
|
||||||
|
command.params['parent'] = parent unless parent.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 peered DNS domain.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. The name of the peered DNS domain to delete in the format: `services/
|
||||||
|
# `service`/projects/`project`/global/networks/`network`/peeredDnsDomains/`name``
|
||||||
|
# . `service` is the peering service that is managing connectivity for the
|
||||||
|
# service producer's organization. For Google services that support this
|
||||||
|
# functionality, this value is `servicenetworking.googleapis.com`. `project` is
|
||||||
|
# the number of the project that contains the service consumer's VPC network e.g.
|
||||||
|
# `12345`. `network` is the name of the service consumer's VPC network. `name`
|
||||||
|
# is the name of the peered DNS domain.
|
||||||
|
# @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::ServicenetworkingV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ServicenetworkingV1::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_service_project_global_network_peered_dns_domain(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ServicenetworkingV1::Operation
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Service producers can use this method to add roles in the shared VPC host
|
# Service producers can use this method to add roles in the shared VPC host
|
||||||
# project. Each role is bound to the provided member. Each role must be selected
|
# project. Each role is bound to the provided member. Each role must be selected
|
||||||
# from within a whitelisted set of roles. Each role is applied at only the
|
# from within a whitelisted set of roles. Each role is applied at only the
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
||||||
module ServicenetworkingV1beta
|
module ServicenetworkingV1beta
|
||||||
VERSION = 'V1beta'
|
VERSION = 'V1beta'
|
||||||
REVISION = '20200818'
|
REVISION = '20200819'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -867,6 +867,20 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Metadata provided through GetOperation request for the LRO generated by
|
||||||
|
# DeletePeeredDnsDomain API.
|
||||||
|
class DeletePeeredDnsDomainMetadata
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Represents a DNS record set resource.
|
# Represents a DNS record set resource.
|
||||||
class DnsRecordSet
|
class DnsRecordSet
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -2386,6 +2400,48 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# DNS domain suffix for which requests originating in the producer VPC network
|
||||||
|
# are resolved in the associated consumer VPC network.
|
||||||
|
class PeeredDnsDomain
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The DNS domain name suffix e.g. `example.com.`.
|
||||||
|
# Corresponds to the JSON property `dnsSuffix`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :dns_suffix
|
||||||
|
|
||||||
|
# User assigned name for this resource. Must be unique within the consumer
|
||||||
|
# network. The name must be 1-63 characters long, must begin with a letter, end
|
||||||
|
# with a letter or digit, and only contain lowercase letters, digits or dashes.
|
||||||
|
# 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)
|
||||||
|
@dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Metadata provided through GetOperation request for the LRO generated by
|
||||||
|
# CreatePeeredDnsDomain API.
|
||||||
|
class PeeredDnsDomainMetadata
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Grouping of IAM role and IAM member.
|
# Grouping of IAM role and IAM member.
|
||||||
class PolicyBinding
|
class PolicyBinding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -154,6 +154,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DeletePeeredDnsDomainMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class DnsRecordSet
|
class DnsRecordSet
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -328,6 +334,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class PeeredDnsDomain
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PeeredDnsDomainMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class PolicyBinding
|
class PolicyBinding
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -676,6 +694,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DeletePeeredDnsDomainMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class DnsRecordSet
|
class DnsRecordSet
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -987,6 +1011,20 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class PeeredDnsDomain
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dns_suffix, as: 'dnsSuffix'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PeeredDnsDomainMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class PolicyBinding
|
class PolicyBinding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see
|
# @see
|
||||||
module TasksV1
|
module TasksV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200809'
|
REVISION = '20200811'
|
||||||
|
|
||||||
# Create, edit, organize, and delete all your tasks
|
# Create, edit, organize, and delete all your tasks
|
||||||
AUTH_TASKS = 'https://www.googleapis.com/auth/tasks'
|
AUTH_TASKS = 'https://www.googleapis.com/auth/tasks'
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
# 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/webfonts_v1/service.rb'
|
||||||
|
require 'google/apis/webfonts_v1/classes.rb'
|
||||||
|
require 'google/apis/webfonts_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Web Fonts Developer API
|
||||||
|
#
|
||||||
|
# The Google Web Fonts Developer API lets you retrieve information about web
|
||||||
|
# fonts served by Google.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/fonts/docs/developer_api
|
||||||
|
module WebfontsV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20200819'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,113 @@
|
||||||
|
# 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 WebfontsV1
|
||||||
|
|
||||||
|
# Metadata describing a family of fonts.
|
||||||
|
class Webfont
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The category of the font.
|
||||||
|
# Corresponds to the JSON property `category`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :category
|
||||||
|
|
||||||
|
# The name of the font.
|
||||||
|
# Corresponds to the JSON property `family`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :family
|
||||||
|
|
||||||
|
# The font files (with all supported scripts) for each one of the available
|
||||||
|
# variants, as a key : value map.
|
||||||
|
# Corresponds to the JSON property `files`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :files
|
||||||
|
|
||||||
|
# This kind represents a webfont object in the webfonts service.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The date (format "yyyy-MM-dd") the font was modified for the last time.
|
||||||
|
# Corresponds to the JSON property `lastModified`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :last_modified
|
||||||
|
|
||||||
|
# The scripts supported by the font.
|
||||||
|
# Corresponds to the JSON property `subsets`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :subsets
|
||||||
|
|
||||||
|
# The available variants for the font.
|
||||||
|
# Corresponds to the JSON property `variants`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :variants
|
||||||
|
|
||||||
|
# The font version.
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@category = args[:category] if args.key?(:category)
|
||||||
|
@family = args[:family] if args.key?(:family)
|
||||||
|
@files = args[:files] if args.key?(:files)
|
||||||
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@last_modified = args[:last_modified] if args.key?(:last_modified)
|
||||||
|
@subsets = args[:subsets] if args.key?(:subsets)
|
||||||
|
@variants = args[:variants] if args.key?(:variants)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response containing the list of fonts currently served by the Google Fonts API.
|
||||||
|
class WebfontList
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of fonts currently served by the Google Fonts API.
|
||||||
|
# Corresponds to the JSON property `items`
|
||||||
|
# @return [Array<Google::Apis::WebfontsV1::Webfont>]
|
||||||
|
attr_accessor :items
|
||||||
|
|
||||||
|
# This kind represents a list of webfont objects in the webfonts service.
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@items = args[:items] if args.key?(:items)
|
||||||
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,61 @@
|
||||||
|
# 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 WebfontsV1
|
||||||
|
|
||||||
|
class Webfont
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class WebfontList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Webfont
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :category, as: 'category'
|
||||||
|
property :family, as: 'family'
|
||||||
|
hash :files, as: 'files'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :last_modified, as: 'lastModified'
|
||||||
|
collection :subsets, as: 'subsets'
|
||||||
|
collection :variants, as: 'variants'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class WebfontList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :items, as: 'items', class: Google::Apis::WebfontsV1::Webfont, decorator: Google::Apis::WebfontsV1::Webfont::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,90 @@
|
||||||
|
# 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 WebfontsV1
|
||||||
|
# Web Fonts Developer API
|
||||||
|
#
|
||||||
|
# The Google Web Fonts Developer API lets you retrieve information about web
|
||||||
|
# fonts served by Google.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/webfonts_v1'
|
||||||
|
#
|
||||||
|
# Webfonts = Google::Apis::WebfontsV1 # Alias the module
|
||||||
|
# service = Webfonts::WebfontsService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/fonts/docs/developer_api
|
||||||
|
class WebfontsService < 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://webfonts.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves the list of fonts currently served by the Google Fonts Developer API.
|
||||||
|
# @param [String] sort
|
||||||
|
# Enables sorting of the list.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::WebfontsV1::WebfontList] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::WebfontsV1::WebfontList]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_webfonts(sort: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/webfonts', options)
|
||||||
|
command.response_representation = Google::Apis::WebfontsV1::WebfontList::Representation
|
||||||
|
command.response_class = Google::Apis::WebfontsV1::WebfontList
|
||||||
|
command.query['sort'] = sort unless sort.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue