Regen APIs

This commit is contained in:
Steve Bazyl 2016-09-19 14:24:23 -07:00
parent a68b8cb758
commit 0108c6539b
64 changed files with 2710 additions and 221 deletions

View File

@ -1887,6 +1887,12 @@
"/compute:beta/compute.autoscalers.update/autoscaler": autoscaler
"/compute:beta/compute.autoscalers.update/project": project
"/compute:beta/compute.autoscalers.update/zone": zone
"/compute:beta/compute.backendServices.aggregatedList": aggregated_backend_service_list
"/compute:beta/compute.backendServices.aggregatedList/filter": filter
"/compute:beta/compute.backendServices.aggregatedList/maxResults": max_results
"/compute:beta/compute.backendServices.aggregatedList/orderBy": order_by
"/compute:beta/compute.backendServices.aggregatedList/pageToken": page_token
"/compute:beta/compute.backendServices.aggregatedList/project": project
"/compute:beta/compute.backendServices.delete": delete_backend_service
"/compute:beta/compute.backendServices.delete/backendService": backend_service
"/compute:beta/compute.backendServices.delete/project": project
@ -2446,6 +2452,40 @@
"/compute:beta/compute.regionAutoscalers.update/autoscaler": autoscaler
"/compute:beta/compute.regionAutoscalers.update/project": project
"/compute:beta/compute.regionAutoscalers.update/region": region
"/compute:beta/compute.regionBackendServices.delete": delete_region_backend_service
"/compute:beta/compute.regionBackendServices.delete/backendService": backend_service
"/compute:beta/compute.regionBackendServices.delete/project": project
"/compute:beta/compute.regionBackendServices.delete/region": region
"/compute:beta/compute.regionBackendServices.get": get_region_backend_service
"/compute:beta/compute.regionBackendServices.get/backendService": backend_service
"/compute:beta/compute.regionBackendServices.get/project": project
"/compute:beta/compute.regionBackendServices.get/region": region
"/compute:beta/compute.regionBackendServices.getHealth": get_region_backend_service_health
"/compute:beta/compute.regionBackendServices.getHealth/backendService": backend_service
"/compute:beta/compute.regionBackendServices.getHealth/project": project
"/compute:beta/compute.regionBackendServices.getHealth/region": region
"/compute:beta/compute.regionBackendServices.insert": insert_region_backend_service
"/compute:beta/compute.regionBackendServices.insert/project": project
"/compute:beta/compute.regionBackendServices.insert/region": region
"/compute:beta/compute.regionBackendServices.list": list_region_backend_services
"/compute:beta/compute.regionBackendServices.list/filter": filter
"/compute:beta/compute.regionBackendServices.list/maxResults": max_results
"/compute:beta/compute.regionBackendServices.list/orderBy": order_by
"/compute:beta/compute.regionBackendServices.list/pageToken": page_token
"/compute:beta/compute.regionBackendServices.list/project": project
"/compute:beta/compute.regionBackendServices.list/region": region
"/compute:beta/compute.regionBackendServices.patch": patch_region_backend_service
"/compute:beta/compute.regionBackendServices.patch/backendService": backend_service
"/compute:beta/compute.regionBackendServices.patch/project": project
"/compute:beta/compute.regionBackendServices.patch/region": region
"/compute:beta/compute.regionBackendServices.testIamPermissions": test_region_backend_service_iam_permissions
"/compute:beta/compute.regionBackendServices.testIamPermissions/project": project
"/compute:beta/compute.regionBackendServices.testIamPermissions/region": region
"/compute:beta/compute.regionBackendServices.testIamPermissions/resource": resource
"/compute:beta/compute.regionBackendServices.update": update_region_backend_service
"/compute:beta/compute.regionBackendServices.update/backendService": backend_service
"/compute:beta/compute.regionBackendServices.update/project": project
"/compute:beta/compute.regionBackendServices.update/region": region
"/compute:beta/compute.regionInstanceGroupManagers.abandonInstances": abandon_region_instance_group_manager_instances
"/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/instanceGroupManager": instance_group_manager
"/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/project": project
@ -3063,6 +3103,7 @@
"/compute:beta/BackendService/healthChecks/health_check": health_check
"/compute:beta/BackendService/id": id
"/compute:beta/BackendService/kind": kind
"/compute:beta/BackendService/loadBalancingScheme": load_balancing_scheme
"/compute:beta/BackendService/name": name
"/compute:beta/BackendService/port": port
"/compute:beta/BackendService/portName": port_name
@ -3071,6 +3112,13 @@
"/compute:beta/BackendService/selfLink": self_link
"/compute:beta/BackendService/sessionAffinity": session_affinity
"/compute:beta/BackendService/timeoutSec": timeout_sec
"/compute:beta/BackendServiceAggregatedList": backend_service_aggregated_list
"/compute:beta/BackendServiceAggregatedList/id": id
"/compute:beta/BackendServiceAggregatedList/items": items
"/compute:beta/BackendServiceAggregatedList/items/item": item
"/compute:beta/BackendServiceAggregatedList/kind": kind
"/compute:beta/BackendServiceAggregatedList/nextPageToken": next_page_token
"/compute:beta/BackendServiceAggregatedList/selfLink": self_link
"/compute:beta/BackendServiceGroupHealth": backend_service_group_health
"/compute:beta/BackendServiceGroupHealth/healthStatus": health_status
"/compute:beta/BackendServiceGroupHealth/healthStatus/health_status": health_status
@ -3082,6 +3130,16 @@
"/compute:beta/BackendServiceList/kind": kind
"/compute:beta/BackendServiceList/nextPageToken": next_page_token
"/compute:beta/BackendServiceList/selfLink": self_link
"/compute:beta/BackendServicesScopedList": backend_services_scoped_list
"/compute:beta/BackendServicesScopedList/backendServices": backend_services
"/compute:beta/BackendServicesScopedList/backendServices/backend_service": backend_service
"/compute:beta/BackendServicesScopedList/warning": warning
"/compute:beta/BackendServicesScopedList/warning/code": code
"/compute:beta/BackendServicesScopedList/warning/data": data
"/compute:beta/BackendServicesScopedList/warning/data/datum": datum
"/compute:beta/BackendServicesScopedList/warning/data/datum/key": key
"/compute:beta/BackendServicesScopedList/warning/data/datum/value": value
"/compute:beta/BackendServicesScopedList/warning/message": message
"/compute:beta/CacheInvalidationRule": cache_invalidation_rule
"/compute:beta/CacheInvalidationRule/path": path
"/compute:beta/ConnectionDraining": connection_draining
@ -3221,14 +3279,20 @@
"/compute:beta/ForwardingRule": forwarding_rule
"/compute:beta/ForwardingRule/IPAddress": ip_address
"/compute:beta/ForwardingRule/IPProtocol": ip_protocol
"/compute:beta/ForwardingRule/backendService": backend_service
"/compute:beta/ForwardingRule/creationTimestamp": creation_timestamp
"/compute:beta/ForwardingRule/description": description
"/compute:beta/ForwardingRule/id": id
"/compute:beta/ForwardingRule/kind": kind
"/compute:beta/ForwardingRule/loadBalancingScheme": load_balancing_scheme
"/compute:beta/ForwardingRule/name": name
"/compute:beta/ForwardingRule/network": network
"/compute:beta/ForwardingRule/portRange": port_range
"/compute:beta/ForwardingRule/ports": ports
"/compute:beta/ForwardingRule/ports/port": port
"/compute:beta/ForwardingRule/region": region
"/compute:beta/ForwardingRule/selfLink": self_link
"/compute:beta/ForwardingRule/subnetwork": subnetwork
"/compute:beta/ForwardingRule/target": target
"/compute:beta/ForwardingRuleAggregatedList": forwarding_rule_aggregated_list
"/compute:beta/ForwardingRuleAggregatedList/id": id
@ -3258,6 +3322,8 @@
"/compute:beta/GlobalSetLabelsRequest/labelFingerprint": label_fingerprint
"/compute:beta/GlobalSetLabelsRequest/labels": labels
"/compute:beta/GlobalSetLabelsRequest/labels/label": label
"/compute:beta/GuestOsFeature": guest_os_feature
"/compute:beta/GuestOsFeature/type": type
"/compute:beta/HTTP2HealthCheck": http2_health_check
"/compute:beta/HTTP2HealthCheck/host": host
"/compute:beta/HTTP2HealthCheck/port": port
@ -3361,6 +3427,8 @@
"/compute:beta/Image/description": description
"/compute:beta/Image/diskSizeGb": disk_size_gb
"/compute:beta/Image/family": family
"/compute:beta/Image/guestOsFeatures": guest_os_features
"/compute:beta/Image/guestOsFeatures/guest_os_feature": guest_os_feature
"/compute:beta/Image/id": id
"/compute:beta/Image/imageEncryptionKey": image_encryption_key
"/compute:beta/Image/kind": kind
@ -10358,6 +10426,7 @@
"/books:v1/books.volumes.list/filter": filter
"/books:v1/books.volumes.list/langRestrict": lang_restrict
"/books:v1/books.volumes.list/libraryRestrict": library_restrict
"/books:v1/books.volumes.list/maxAllowedMaturityRating": max_allowed_maturity_rating
"/books:v1/books.volumes.list/maxResults": max_results
"/books:v1/books.volumes.list/orderBy": order_by
"/books:v1/books.volumes.list/partner": partner
@ -11516,6 +11585,7 @@
"/cloudbuild:v1/cloudbuild.projects.builds.get/id": id
"/cloudbuild:v1/cloudbuild.projects.builds.list": list_project_builds
"/cloudbuild:v1/cloudbuild.projects.builds.list/pageSize": page_size
"/cloudbuild:v1/cloudbuild.projects.builds.list/filter": filter
"/cloudbuild:v1/cloudbuild.projects.builds.list/projectId": project_id
"/cloudbuild:v1/cloudbuild.projects.builds.list/pageToken": page_token
"/cloudbuild:v1/cloudbuild.projects.builds.cancel": cancel_build
@ -11553,11 +11623,13 @@
"/cloudbuild:v1/Operation/response/response": response
"/cloudbuild:v1/Operation/name": name
"/cloudbuild:v1/BuildTrigger": build_trigger
"/cloudbuild:v1/BuildTrigger/filename": filename
"/cloudbuild:v1/BuildTrigger/triggerTemplate": trigger_template
"/cloudbuild:v1/BuildTrigger/build": build
"/cloudbuild:v1/BuildTrigger/createTime": create_time
"/cloudbuild:v1/BuildTrigger/id": id
"/cloudbuild:v1/BuildTrigger/description": description
"/cloudbuild:v1/BuildTrigger/triggerTemplate": trigger_template
"/cloudbuild:v1/BuildTrigger/disabled": disabled
"/cloudbuild:v1/BuildTrigger/createTime": create_time
"/cloudbuild:v1/BuildTrigger/filename": filename
"/cloudbuild:v1/BuildTrigger/build": build
"/cloudbuild:v1/BuiltImage": built_image
"/cloudbuild:v1/BuiltImage/digest": digest
"/cloudbuild:v1/BuiltImage/name": name
@ -12142,6 +12214,25 @@
"/compute:v1/compute.globalOperations.list/maxResults": max_results
"/compute:v1/compute.globalOperations.list/pageToken": page_token
"/compute:v1/compute.globalOperations.list/project": project
"/compute:v1/compute.healthChecks.delete": delete_health_check
"/compute:v1/compute.healthChecks.delete/healthCheck": health_check
"/compute:v1/compute.healthChecks.delete/project": project
"/compute:v1/compute.healthChecks.get": get_health_check
"/compute:v1/compute.healthChecks.get/healthCheck": health_check
"/compute:v1/compute.healthChecks.get/project": project
"/compute:v1/compute.healthChecks.insert": insert_health_check
"/compute:v1/compute.healthChecks.insert/project": project
"/compute:v1/compute.healthChecks.list": list_health_checks
"/compute:v1/compute.healthChecks.list/filter": filter
"/compute:v1/compute.healthChecks.list/maxResults": max_results
"/compute:v1/compute.healthChecks.list/pageToken": page_token
"/compute:v1/compute.healthChecks.list/project": project
"/compute:v1/compute.healthChecks.patch": patch_health_check
"/compute:v1/compute.healthChecks.patch/healthCheck": health_check
"/compute:v1/compute.healthChecks.patch/project": project
"/compute:v1/compute.healthChecks.update": update_health_check
"/compute:v1/compute.healthChecks.update/healthCheck": health_check
"/compute:v1/compute.healthChecks.update/project": project
"/compute:v1/compute.httpHealthChecks.delete": delete_http_health_check
"/compute:v1/compute.httpHealthChecks.delete/httpHealthCheck": http_health_check
"/compute:v1/compute.httpHealthChecks.delete/project": project
@ -12616,6 +12707,28 @@
"/compute:v1/compute.targetPools.setBackup/project": project
"/compute:v1/compute.targetPools.setBackup/region": region
"/compute:v1/compute.targetPools.setBackup/targetPool": target_pool
"/compute:v1/compute.targetSslProxies.delete": delete_target_ssl_proxy
"/compute:v1/compute.targetSslProxies.delete/project": project
"/compute:v1/compute.targetSslProxies.delete/targetSslProxy": target_ssl_proxy
"/compute:v1/compute.targetSslProxies.get": get_target_ssl_proxy
"/compute:v1/compute.targetSslProxies.get/project": project
"/compute:v1/compute.targetSslProxies.get/targetSslProxy": target_ssl_proxy
"/compute:v1/compute.targetSslProxies.insert": insert_target_ssl_proxy
"/compute:v1/compute.targetSslProxies.insert/project": project
"/compute:v1/compute.targetSslProxies.list": list_target_ssl_proxies
"/compute:v1/compute.targetSslProxies.list/filter": filter
"/compute:v1/compute.targetSslProxies.list/maxResults": max_results
"/compute:v1/compute.targetSslProxies.list/pageToken": page_token
"/compute:v1/compute.targetSslProxies.list/project": project
"/compute:v1/compute.targetSslProxies.setBackendService": set_target_ssl_proxy_backend_service
"/compute:v1/compute.targetSslProxies.setBackendService/project": project
"/compute:v1/compute.targetSslProxies.setBackendService/targetSslProxy": target_ssl_proxy
"/compute:v1/compute.targetSslProxies.setProxyHeader": set_target_ssl_proxy_proxy_header
"/compute:v1/compute.targetSslProxies.setProxyHeader/project": project
"/compute:v1/compute.targetSslProxies.setProxyHeader/targetSslProxy": target_ssl_proxy
"/compute:v1/compute.targetSslProxies.setSslCertificates": set_target_ssl_proxy_ssl_certificates
"/compute:v1/compute.targetSslProxies.setSslCertificates/project": project
"/compute:v1/compute.targetSslProxies.setSslCertificates/targetSslProxy": target_ssl_proxy
"/compute:v1/compute.targetVpnGateways.aggregatedList/filter": filter
"/compute:v1/compute.targetVpnGateways.aggregatedList/maxResults": max_results
"/compute:v1/compute.targetVpnGateways.aggregatedList/pageToken": page_token
@ -12817,6 +12930,8 @@
"/compute:v1/Backend/capacityScaler": capacity_scaler
"/compute:v1/Backend/description": description
"/compute:v1/Backend/group": group
"/compute:v1/Backend/maxConnections": max_connections
"/compute:v1/Backend/maxConnectionsPerInstance": max_connections_per_instance
"/compute:v1/Backend/maxRate": max_rate
"/compute:v1/Backend/maxRatePerInstance": max_rate_per_instance
"/compute:v1/Backend/maxUtilization": max_utilization
@ -12824,6 +12939,7 @@
"/compute:v1/BackendService/affinityCookieTtlSec": affinity_cookie_ttl_sec
"/compute:v1/BackendService/backends": backends
"/compute:v1/BackendService/backends/backend": backend
"/compute:v1/BackendService/connectionDraining": connection_draining
"/compute:v1/BackendService/creationTimestamp": creation_timestamp
"/compute:v1/BackendService/description": description
"/compute:v1/BackendService/enableCDN": enable_cdn
@ -12853,6 +12969,8 @@
"/compute:v1/BackendServiceList/selfLink": self_link
"/compute:v1/CacheInvalidationRule": cache_invalidation_rule
"/compute:v1/CacheInvalidationRule/path": path
"/compute:v1/ConnectionDraining": connection_draining
"/compute:v1/ConnectionDraining/drainingTimeoutSec": draining_timeout_sec
"/compute:v1/CustomerEncryptionKey": customer_encryption_key
"/compute:v1/CustomerEncryptionKey/rawKey": raw_key
"/compute:v1/CustomerEncryptionKey/sha256": sha256
@ -13015,6 +13133,48 @@
"/compute:v1/ForwardingRulesScopedList/warning/data/datum/key": key
"/compute:v1/ForwardingRulesScopedList/warning/data/datum/value": value
"/compute:v1/ForwardingRulesScopedList/warning/message": message
"/compute:v1/HTTP2HealthCheck": http2_health_check
"/compute:v1/HTTP2HealthCheck/host": host
"/compute:v1/HTTP2HealthCheck/port": port
"/compute:v1/HTTP2HealthCheck/portName": port_name
"/compute:v1/HTTP2HealthCheck/proxyHeader": proxy_header
"/compute:v1/HTTP2HealthCheck/requestPath": request_path
"/compute:v1/HTTPHealthCheck": http_health_check
"/compute:v1/HTTPHealthCheck/host": host
"/compute:v1/HTTPHealthCheck/port": port
"/compute:v1/HTTPHealthCheck/portName": port_name
"/compute:v1/HTTPHealthCheck/proxyHeader": proxy_header
"/compute:v1/HTTPHealthCheck/requestPath": request_path
"/compute:v1/HTTPSHealthCheck": https_health_check
"/compute:v1/HTTPSHealthCheck/host": host
"/compute:v1/HTTPSHealthCheck/port": port
"/compute:v1/HTTPSHealthCheck/portName": port_name
"/compute:v1/HTTPSHealthCheck/proxyHeader": proxy_header
"/compute:v1/HTTPSHealthCheck/requestPath": request_path
"/compute:v1/HealthCheck": health_check
"/compute:v1/HealthCheck/checkIntervalSec": check_interval_sec
"/compute:v1/HealthCheck/creationTimestamp": creation_timestamp
"/compute:v1/HealthCheck/description": description
"/compute:v1/HealthCheck/healthyThreshold": healthy_threshold
"/compute:v1/HealthCheck/http2HealthCheck": http2_health_check
"/compute:v1/HealthCheck/httpHealthCheck": http_health_check
"/compute:v1/HealthCheck/httpsHealthCheck": https_health_check
"/compute:v1/HealthCheck/id": id
"/compute:v1/HealthCheck/kind": kind
"/compute:v1/HealthCheck/name": name
"/compute:v1/HealthCheck/selfLink": self_link
"/compute:v1/HealthCheck/sslHealthCheck": ssl_health_check
"/compute:v1/HealthCheck/tcpHealthCheck": tcp_health_check
"/compute:v1/HealthCheck/timeoutSec": timeout_sec
"/compute:v1/HealthCheck/type": type
"/compute:v1/HealthCheck/unhealthyThreshold": unhealthy_threshold
"/compute:v1/HealthCheckList": health_check_list
"/compute:v1/HealthCheckList/id": id
"/compute:v1/HealthCheckList/items": items
"/compute:v1/HealthCheckList/items/item": item
"/compute:v1/HealthCheckList/kind": kind
"/compute:v1/HealthCheckList/nextPageToken": next_page_token
"/compute:v1/HealthCheckList/selfLink": self_link
"/compute:v1/HealthCheckReference": health_check_reference
"/compute:v1/HealthCheckReference/healthCheck": health_check
"/compute:v1/HealthStatus": health_status
@ -13625,6 +13785,12 @@
"/compute:v1/RoutersScopedList/warning/data/datum/key": key
"/compute:v1/RoutersScopedList/warning/data/datum/value": value
"/compute:v1/RoutersScopedList/warning/message": message
"/compute:v1/SSLHealthCheck": ssl_health_check
"/compute:v1/SSLHealthCheck/port": port
"/compute:v1/SSLHealthCheck/portName": port_name
"/compute:v1/SSLHealthCheck/proxyHeader": proxy_header
"/compute:v1/SSLHealthCheck/request": request
"/compute:v1/SSLHealthCheck/response": response
"/compute:v1/Scheduling": scheduling
"/compute:v1/Scheduling/automaticRestart": automatic_restart
"/compute:v1/Scheduling/onHostMaintenance": on_host_maintenance
@ -13712,6 +13878,12 @@
"/compute:v1/SubnetworksScopedList/warning/data/datum/key": key
"/compute:v1/SubnetworksScopedList/warning/data/datum/value": value
"/compute:v1/SubnetworksScopedList/warning/message": message
"/compute:v1/TCPHealthCheck": tcp_health_check
"/compute:v1/TCPHealthCheck/port": port
"/compute:v1/TCPHealthCheck/portName": port_name
"/compute:v1/TCPHealthCheck/proxyHeader": proxy_header
"/compute:v1/TCPHealthCheck/request": request
"/compute:v1/TCPHealthCheck/response": response
"/compute:v1/Tags": tags
"/compute:v1/Tags/fingerprint": fingerprint
"/compute:v1/Tags/items": items
@ -13838,6 +14010,31 @@
"/compute:v1/TargetPoolsScopedList/warning/message": message
"/compute:v1/TargetReference": target_reference
"/compute:v1/TargetReference/target": target
"/compute:v1/TargetSslProxiesSetBackendServiceRequest": target_ssl_proxies_set_backend_service_request
"/compute:v1/TargetSslProxiesSetBackendServiceRequest/service": service
"/compute:v1/TargetSslProxiesSetProxyHeaderRequest": target_ssl_proxies_set_proxy_header_request
"/compute:v1/TargetSslProxiesSetProxyHeaderRequest/proxyHeader": proxy_header
"/compute:v1/TargetSslProxiesSetSslCertificatesRequest": target_ssl_proxies_set_ssl_certificates_request
"/compute:v1/TargetSslProxiesSetSslCertificatesRequest/sslCertificates": ssl_certificates
"/compute:v1/TargetSslProxiesSetSslCertificatesRequest/sslCertificates/ssl_certificate": ssl_certificate
"/compute:v1/TargetSslProxy": target_ssl_proxy
"/compute:v1/TargetSslProxy/creationTimestamp": creation_timestamp
"/compute:v1/TargetSslProxy/description": description
"/compute:v1/TargetSslProxy/id": id
"/compute:v1/TargetSslProxy/kind": kind
"/compute:v1/TargetSslProxy/name": name
"/compute:v1/TargetSslProxy/proxyHeader": proxy_header
"/compute:v1/TargetSslProxy/selfLink": self_link
"/compute:v1/TargetSslProxy/service": service
"/compute:v1/TargetSslProxy/sslCertificates": ssl_certificates
"/compute:v1/TargetSslProxy/sslCertificates/ssl_certificate": ssl_certificate
"/compute:v1/TargetSslProxyList": target_ssl_proxy_list
"/compute:v1/TargetSslProxyList/id": id
"/compute:v1/TargetSslProxyList/items": items
"/compute:v1/TargetSslProxyList/items/item": item
"/compute:v1/TargetSslProxyList/kind": kind
"/compute:v1/TargetSslProxyList/nextPageToken": next_page_token
"/compute:v1/TargetSslProxyList/selfLink": self_link
"/compute:v1/TargetVpnGateway": target_vpn_gateway
"/compute:v1/TargetVpnGateway/creationTimestamp": creation_timestamp
"/compute:v1/TargetVpnGateway/description": description
@ -14497,6 +14694,7 @@
"/content:v2/LoyaltyPoints/ratio": ratio
"/content:v2/Order": order
"/content:v2/Order/acknowledged": acknowledged
"/content:v2/Order/channelType": channel_type
"/content:v2/Order/customer": customer
"/content:v2/Order/deliveryDetails": delivery_details
"/content:v2/Order/id": id
@ -19683,6 +19881,7 @@
"/fitness:v1/ListSessionsResponse": list_sessions_response
"/fitness:v1/ListSessionsResponse/deletedSession": deleted_session
"/fitness:v1/ListSessionsResponse/deletedSession/deleted_session": deleted_session
"/fitness:v1/ListSessionsResponse/hasMoreData": has_more_data
"/fitness:v1/ListSessionsResponse/nextPageToken": next_page_token
"/fitness:v1/ListSessionsResponse/session": session
"/fitness:v1/ListSessionsResponse/session/session": session
@ -24743,6 +24942,10 @@
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/clientId": client_id
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/context": context
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/continueUri": continue_uri
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/customParameter": custom_parameter
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/customParameter/custom_parameter": custom_parameter
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/customParameter/custom_parameter/key": key
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/customParameter/custom_parameter/value": value
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/hostedDomain": hosted_domain
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/identifier": identifier
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/oauthConsumerKey": oauth_consumer_key
@ -24834,6 +25037,7 @@
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/memoryCost": memory_cost
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/rounds": rounds
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/saltSeparator": salt_separator
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/sanityCheck": sanity_check
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/signerKey": signer_key
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/users": users
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/users/user": user
@ -24880,6 +25084,8 @@
"/identitytoolkit:v3/ResetPasswordResponse": reset_password_response
"/identitytoolkit:v3/ResetPasswordResponse/email": email
"/identitytoolkit:v3/ResetPasswordResponse/kind": kind
"/identitytoolkit:v3/ResetPasswordResponse/newEmail": new_email
"/identitytoolkit:v3/ResetPasswordResponse/requestType": request_type
"/identitytoolkit:v3/SetAccountInfoResponse": set_account_info_response
"/identitytoolkit:v3/SetAccountInfoResponse/displayName": display_name
"/identitytoolkit:v3/SetAccountInfoResponse/email": email
@ -24913,6 +25119,7 @@
"/identitytoolkit:v3/UploadAccountResponse/kind": kind
"/identitytoolkit:v3/UserInfo": user_info
"/identitytoolkit:v3/UserInfo/createdAt": created_at
"/identitytoolkit:v3/UserInfo/customAuth": custom_auth
"/identitytoolkit:v3/UserInfo/disabled": disabled
"/identitytoolkit:v3/UserInfo/displayName": display_name
"/identitytoolkit:v3/UserInfo/email": email
@ -27575,6 +27782,7 @@
"/speech:v1beta1/RecognitionConfig/encoding": encoding
"/speech:v1beta1/RecognitionConfig/profanityFilter": profanity_filter
"/speech:v1beta1/RecognitionConfig/sampleRate": sample_rate
"/speech:v1beta1/RecognitionConfig/audioChannels": audio_channels
"/speech:v1beta1/SyncRecognizeRequest": sync_recognize_request
"/speech:v1beta1/SyncRecognizeRequest/audio": audio
"/speech:v1beta1/SyncRecognizeRequest/config": config
@ -28096,7 +28304,6 @@
"/storage:v1/storage.objects.compose/destinationPredefinedAcl": destination_predefined_acl
"/storage:v1/storage.objects.compose/ifGenerationMatch": if_generation_match
"/storage:v1/storage.objects.compose/ifMetagenerationMatch": if_metageneration_match
"/storage:v1/storage.objects.compose/kmsKeyName": kms_key_name
"/storage:v1/storage.objects.copy": copy_object
"/storage:v1/storage.objects.copy/destinationBucket": destination_bucket
"/storage:v1/storage.objects.copy/destinationObject": destination_object
@ -28137,7 +28344,6 @@
"/storage:v1/storage.objects.insert/ifGenerationNotMatch": if_generation_not_match
"/storage:v1/storage.objects.insert/ifMetagenerationMatch": if_metageneration_match
"/storage:v1/storage.objects.insert/ifMetagenerationNotMatch": if_metageneration_not_match
"/storage:v1/storage.objects.insert/kmsKeyName": kms_key_name
"/storage:v1/storage.objects.insert/name": name
"/storage:v1/storage.objects.insert/predefinedAcl": predefined_acl
"/storage:v1/storage.objects.insert/projection": projection
@ -28161,7 +28367,6 @@
"/storage:v1/storage.objects.patch/projection": projection
"/storage:v1/storage.objects.rewrite": rewrite_object
"/storage:v1/storage.objects.rewrite/destinationBucket": destination_bucket
"/storage:v1/storage.objects.rewrite/destinationKmsKeyName": destination_kms_key_name
"/storage:v1/storage.objects.rewrite/destinationObject": destination_object
"/storage:v1/storage.objects.rewrite/destinationPredefinedAcl": destination_predefined_acl
"/storage:v1/storage.objects.rewrite/ifGenerationMatch": if_generation_match
@ -28207,8 +28412,6 @@
"/storage:v1/Bucket/cors/cors_configuration/responseHeader/response_header": response_header
"/storage:v1/Bucket/defaultObjectAcl": default_object_acl
"/storage:v1/Bucket/defaultObjectAcl/default_object_acl": default_object_acl
"/storage:v1/Bucket/encryption": encryption
"/storage:v1/Bucket/encryption/default_kms_key_name": default_kms_key_name
"/storage:v1/Bucket/etag": etag
"/storage:v1/Bucket/id": id
"/storage:v1/Bucket/kind": kind
@ -28303,7 +28506,6 @@
"/storage:v1/Object/generation": generation
"/storage:v1/Object/id": id
"/storage:v1/Object/kind": kind
"/storage:v1/Object/kmsKeyName": kms_key_name
"/storage:v1/Object/md5Hash": md5_hash
"/storage:v1/Object/mediaLink": media_link
"/storage:v1/Object/metadata": metadata

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20160830'
REVISION = '20160910'
# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20160830'
REVISION = '20160910'
# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20160825'
REVISION = '20160913'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -442,14 +442,14 @@ module Google
# Identifies the extent to which the device is controlled by an Android for Work
# EMM in various deployment configurations.
# Possible values include:
# - "managedDevice"—A device that has the EMM's device policy controller (DPC)
# as the device owner.
# - "managedProfile"—A device that has a work profile managed by the DPC (DPC is
# profile owner) in addition to a separate, personal profile that is unavailable
# to the DPC.
# - "containerApp"—A device running the Android for Work App. The Android for
# Work App is managed by the DPC.
# - "unmanagedProfile"—A device that has been allowed (by the domain's admin,
# - "managedDevice", a device that has the EMM's device policy controller (DPC)
# as the device owner,
# - "managedProfile", a device that has a work profile managed by the DPC (DPC
# is profile owner) in addition to a separate, personal profile that is
# unavailable to the DPC,
# - "containerApp", a device running the Android for Work App. The Android for
# Work App is managed by the DPC,
# - "unmanagedProfile", a device that has been allowed (by the domain's admin,
# using the Admin Console to enable the privilege) to use Android for Work apps
# or Google Apps for Work, but the profile is itself not owned by a DPC.
# Corresponds to the JSON property `managementType`

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/activity/
module AppsactivityV1
VERSION = 'V1'
REVISION = '20160805'
REVISION = '20160830'
# View the activity history of your Google Apps
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20160824'
REVISION = '20160908'
# View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20160822'
REVISION = '20160910'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -336,11 +336,7 @@ module Google
# [Experimental] The labels associated with this dataset. You can use these to
# organize and group your datasets. You can set this property when inserting or
# updating a dataset. Label keys and values can be no longer than 63 characters,
# can only contain letters, numeric characters, underscores and dashes.
# International characters are allowed. Label values are optional. Label keys
# must start with a letter and must be unique within a dataset. Both keys and
# values are additionally constrained to be <= 128 bytes in size.
# updating a dataset. See Labeling Datasets for more information.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -2137,7 +2133,7 @@ module Google
# [Optional] The struct field values, in order of the struct type's declaration.
# Corresponds to the JSON property `structValues`
# @return [Array<Google::Apis::BigqueryV2::QueryParameterValue>]
# @return [Hash<String,Google::Apis::BigqueryV2::QueryParameterValue>]
attr_accessor :struct_values
# [Optional] The value of this value, if a simple scalar type.

View File

@ -853,7 +853,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :array_values, as: 'arrayValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
collection :struct_values, as: 'structValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
hash :struct_values, as: 'structValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation
property :value, as: 'value'
end

View File

@ -179,10 +179,9 @@ module Google
# Whether to list all datasets, including hidden ones
# @param [String] filter
# An expression for filtering the results of the request by label. The syntax is
# "labels.[:]". Multiple filters can be ANDed together by connecting with a
# space. Example: "labels.department:receiving labels.active". See https://cloud.
# google.com/bigquery/docs/labeling-datasets#filtering_datasets_using_labels for
# details.
# "labels.<name>[:<value>]". Multiple filters can be ANDed together by
# connecting with a space. Example: "labels.department:receiving labels.active".
# See Filtering datasets using labels for details.
# @param [Fixnum] max_results
# The maximum number of results to return
# @param [String] page_token
@ -339,7 +338,7 @@ module Google
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'project/{projectId}/jobs/{jobId}/cancel', options)
command = make_simple_command(:post, 'projects/{projectId}/jobs/{jobId}/cancel', options)
command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation
command.response_class = Google::Apis::BigqueryV2::CancelJobResponse
command.params['projectId'] = project_id unless project_id.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/books/docs/v1/getting_started
module BooksV1
VERSION = 'V1'
REVISION = '20160629'
REVISION = '20160823'
# Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -1979,6 +1979,9 @@ module Google
# Restrict results to books with this language code.
# @param [String] library_restrict
# Restrict search to this user's library.
# @param [String] max_allowed_maturity_rating
# The maximum allowed maturity rating of returned recommendations. Books with a
# higher maturity rating are filtered out.
# @param [Fixnum] max_results
# Maximum number of results to return.
# @param [String] order_by
@ -2016,7 +2019,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_allowed_maturity_rating: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes
@ -2024,6 +2027,7 @@ module Google
command.query['filter'] = filter unless filter.nil?
command.query['langRestrict'] = lang_restrict unless lang_restrict.nil?
command.query['libraryRestrict'] = library_restrict unless library_restrict.nil?
command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['partner'] = partner unless partner.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20160829'
REVISION = '20160913'
# Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20160831'
REVISION = '20160919'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -287,11 +287,16 @@ module Google
class BuildTrigger
include Google::Apis::Core::Hashable
# Path, from the source root, to a file whose contents is used for the
# template.
# Corresponds to the JSON property `filename`
# Unique identifier of the trigger.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :filename
attr_accessor :id
# Human-readable description of this trigger.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
@ -299,6 +304,24 @@ module Google
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :trigger_template
# If true, the trigger will never result in a build.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
# Time when the trigger was created.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Path, from the source root, to a file whose contents is used for the
# template.
# Corresponds to the JSON property `filename`
# @return [String]
attr_accessor :filename
# A build resource in the Container Builder API.
# At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to
@ -307,29 +330,19 @@ module Google
# @return [Google::Apis::CloudbuildV1::Build]
attr_accessor :build
# Time when the trigger was created.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Unique identifier of the trigger.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@filename = args[:filename] if args.key?(:filename)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@build = args[:build] if args.key?(:build)
@create_time = args[:create_time] if args.key?(:create_time)
@id = args[:id] if args.key?(:id)
@description = args[:description] if args.key?(:description)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@disabled = args[:disabled] if args.key?(:disabled)
@create_time = args[:create_time] if args.key?(:create_time)
@filename = args[:filename] if args.key?(:filename)
@build = args[:build] if args.key?(:build)
end
end
@ -785,7 +798,7 @@ module Google
# @return [Array<String>]
attr_accessor :source_provenance_hash
# Options for a verifiable build with details uploaded to the Analysis API.
# Requested verifiability options.
# Corresponds to the JSON property `requestedVerifyOption`
# @return [String]
attr_accessor :requested_verify_option

View File

@ -196,13 +196,15 @@ module Google
class BuildTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filename, as: 'filename'
property :id, as: 'id'
property :description, as: 'description'
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :disabled, as: 'disabled'
property :create_time, as: 'createTime'
property :filename, as: 'filename'
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
property :create_time, as: 'createTime'
property :id, as: 'id'
end
end

View File

@ -294,6 +294,8 @@ module Google
# ID of the project.
# @param [Fixnum] page_size
# Number of results to return in the list.
# @param [String] filter
# The raw filter text to constrain the results.
# @param [String] page_token
# Token to provide to skip to a particular spot in the list.
# @param [String] quota_user
@ -313,12 +315,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_builds(project_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
def list_project_builds(project_id, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20160817'
REVISION = '20160908'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -996,18 +996,19 @@ module Google
class Backend
include Google::Apis::Core::Hashable
# Specifies the balancing mode for this backend. For global HTTP(S) load
# balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
# Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL
# load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE
# (for HTTP(S)) and CONNECTION (for TCP/SSL).
# This cannot be used for internal load balancing.
# Corresponds to the JSON property `balancingMode`
# @return [String]
attr_accessor :balancing_mode
# A multiplier applied to the group's maximum servicing capacity (either
# UTILIZATION or RATE). Default value is 1, which means the group will serve up
# to 100% of its configured CPU or RPS (depending on balancingMode). A setting
# of 0 means the group is completely drained, offering 0% of its available CPU
# or RPS. Valid range is [0.0,1.0].
# A multiplier applied to the group's maximum servicing capacity (based on
# UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group
# will serve up to 100% of its configured capacity (depending on balancingMode).
# A setting of 0 means the group is completely drained, offering 0% of its
# available Capacity. Valid range is [0.0,1.0].
# This cannot be used for internal load balancing.
# Corresponds to the JSON property `capacityScaler`
# @return [Float]
@ -1161,6 +1162,11 @@ module Google
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `loadBalancingScheme`
# @return [String]
attr_accessor :load_balancing_scheme
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
@ -1237,6 +1243,7 @@ module Google
@health_checks = args[:health_checks] if args.key?(:health_checks)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@name = args[:name] if args.key?(:name)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@ -1248,6 +1255,49 @@ module Google
end
end
# Contains a list of BackendServicesScopedList.
class BackendServiceAggregatedList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A map of scoped BackendService lists.
# Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeBeta::BackendServicesScopedList>]
attr_accessor :items
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] A token used to continue a truncated list request.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
#
class BackendServiceGroupHealth
include Google::Apis::Core::Hashable
@ -1318,6 +1368,97 @@ module Google
end
end
#
class BackendServicesScopedList
include Google::Apis::Core::Hashable
# List of BackendServices contained in this scope.
# Corresponds to the JSON property `backendServices`
# @return [Array<Google::Apis::ComputeBeta::BackendService>]
attr_accessor :backend_services
# Informational warning which replaces the list of backend services when the
# list is empty.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeBeta::BackendServicesScopedList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@backend_services = args[:backend_services] if args.key?(:backend_services)
@warning = args[:warning] if args.key?(:warning)
end
# Informational warning which replaces the list of backend services when the
# list is empty.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeBeta::BackendServicesScopedList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
#
class CacheInvalidationRule
include Google::Apis::Core::Hashable
@ -2408,6 +2549,13 @@ module Google
# @return [String]
attr_accessor :ip_protocol
# This field is not used for external load balancing.
# For internal load balancing, this field identifies the BackendService resource
# to receive the matched traffic.
# Corresponds to the JSON property `backendService`
# @return [String]
attr_accessor :backend_service
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -2431,6 +2579,15 @@ module Google
# @return [String]
attr_accessor :kind
# This signifies what the ForwardingRule will be used for and can only take the
# following values: INTERNAL EXTERNAL The value of INTERNAL means that this will
# be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL
# means that this will be used for External Load Balancing (HTTP(S) LB, External
# TCP/UDP LB, SSL Proxy)
# Corresponds to the JSON property `loadBalancingScheme`
# @return [String]
attr_accessor :load_balancing_scheme
# Name of the resource; provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
@ -2441,6 +2598,14 @@ module Google
# @return [String]
attr_accessor :name
# This field is not used for external load balancing.
# For internal load balancing, this field identifies the network that the load
# balanced IP should belong to for this Forwarding Rule. If this field is not
# specified, the default network will be used.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed
# to ports in the specified range will be forwarded to target. Forwarding rules
# with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
@ -2449,6 +2614,16 @@ module Google
# @return [String]
attr_accessor :port_range
# This field is not used for external load balancing.
# When the load balancing scheme is INTERNAL, a single port or a comma separated
# list of ports can be configured. Only packets addressed to these ports will be
# forwarded to the backends configured with this forwarding rule. If the port
# list is not provided then all ports are allowed to pass through.
# You may specify a maximum of up to 5 ports.
# Corresponds to the JSON property `ports`
# @return [Array<String>]
attr_accessor :ports
# [Output Only] URL of the region where the regional forwarding rule resides.
# This field is not applicable to global forwarding rules.
# Corresponds to the JSON property `region`
@ -2460,6 +2635,16 @@ module Google
# @return [String]
attr_accessor :self_link
# This field is not used for external load balancing.
# For internal load balancing, this field identifies the subnetwork that the
# load balanced IP should belong to for this Forwarding Rule.
# If the network specified is in auto subnet mode, this field is optional.
# However, if the network is in custom subnet mode, a subnetwork must be
# specified.
# Corresponds to the JSON property `subnetwork`
# @return [String]
attr_accessor :subnetwork
# The URL of the target resource to receive the matched traffic. For regional
# forwarding rules, this target must live in the same region as the forwarding
# rule. For global forwarding rules, this target must be a global
@ -2479,14 +2664,19 @@ module Google
def update!(**args)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
@backend_service = args[:backend_service] if args.key?(:backend_service)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@port_range = args[:port_range] if args.key?(:port_range)
@ports = args[:ports] if args.key?(:ports)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@target = args[:target] if args.key?(:target)
end
end
@ -2713,6 +2903,25 @@ module Google
end
end
# Features supported by the guest os.
class GuestOsFeature
include Google::Apis::Core::Hashable
# The type of supported feature..
# 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)
@type = args[:type] if args.key?(:type)
end
end
#
class Http2HealthCheck
include Google::Apis::Core::Hashable
@ -3438,7 +3647,7 @@ module Google
# @return [String]
attr_accessor :archive_size_bytes
# [Output Only] Creation timestamp in RFC3339 text format.
# Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
@ -3467,6 +3676,11 @@ module Google
# @return [String]
attr_accessor :family
# Features of the guest os, valid for bootable images only.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
attr_accessor :guest_os_features
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
@ -3574,6 +3788,7 @@ module Google
@description = args[:description] if args.key?(:description)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@family = args[:family] if args.key?(:family)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@id = args[:id] if args.key?(:id)
@image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key)
@kind = args[:kind] if args.key?(:kind)
@ -3794,7 +4009,7 @@ module Google
attr_accessor :service_accounts
# [Output Only] The status of the instance. One of the following values:
# PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDED, SUSPENDING, and
# PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and
# TERMINATED.
# Corresponds to the JSON property `status`
# @return [String]
@ -3916,8 +4131,8 @@ module Google
# @return [String]
attr_accessor :fingerprint
# [Output Only] A unique identifier for this resource type. The server generates
# this identifier.
# [Output Only] A unique identifier for this instance group. The server
# generates this identifier.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id

View File

@ -154,6 +154,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceGroupHealth
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -166,6 +172,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServicesScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class CacheInvalidationRule
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -340,6 +364,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GuestOsFeature
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Http2HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1751,6 +1781,7 @@ module Google
collection :health_checks, as: 'healthChecks'
property :id, as: 'id'
property :kind, as: 'kind'
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :name, as: 'name'
property :port, as: 'port'
property :port_name, as: 'portName'
@ -1762,6 +1793,18 @@ module Google
end
end
class BackendServiceAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeBeta::BackendServicesScopedList, decorator: Google::Apis::ComputeBeta::BackendServicesScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class BackendServiceGroupHealth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1783,6 +1826,34 @@ module Google
end
end
class BackendServicesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :backend_services, as: 'backendServices', class: Google::Apis::ComputeBeta::BackendService, decorator: Google::Apis::ComputeBeta::BackendService::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::BackendServicesScopedList::Warning, decorator: Google::Apis::ComputeBeta::BackendServicesScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::BackendServicesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::BackendServicesScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class CacheInvalidationRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2039,14 +2110,19 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_address, as: 'IPAddress'
property :ip_protocol, as: 'IPProtocol'
property :backend_service, as: 'backendService'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, as: 'id'
property :kind, as: 'kind'
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :name, as: 'name'
property :network, as: 'network'
property :port_range, as: 'portRange'
collection :ports, as: 'ports'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :subnetwork, as: 'subnetwork'
property :target, as: 'target'
end
end
@ -2111,6 +2187,13 @@ module Google
end
end
class GuestOsFeature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class Http2HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2281,6 +2364,8 @@ module Google
property :description, as: 'description'
property :disk_size_gb, as: 'diskSizeGb'
property :family, as: 'family'
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
property :id, as: 'id'
property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation

View File

@ -793,6 +793,84 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the list of all BackendService resources, regional and global,
# available to the specified project.
# @param [String] project
# Name of the project scoping this request.
# @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=`
# expression`. Your `expression` must be in the format: field_name
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::BackendServiceAggregatedList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::BackendServiceAggregatedList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def aggregated_backend_service_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/aggregated/backendServices', options)
command.response_representation = Google::Apis::ComputeBeta::BackendServiceAggregatedList::Representation
command.response_class = Google::Apis::ComputeBeta::BackendServiceAggregatedList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified BackendService resource.
# @param [String] project
# Project ID for this request.
@ -8166,6 +8244,393 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified regional BackendService resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] backend_service
# Name of the BackendService resource to delete.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/backendServices/{backendService}', options)
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['backendService'] = backend_service unless backend_service.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified regional BackendService resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] backend_service
# Name of the BackendService resource to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::BackendService] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::BackendService]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/backendServices/{backendService}', options)
command.response_representation = Google::Apis::ComputeBeta::BackendService::Representation
command.response_class = Google::Apis::ComputeBeta::BackendService
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['backendService'] = backend_service unless backend_service.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets the most recent health check results for this regional BackendService.
# @param [String] project
# @param [String] region
# Name of the region scoping this request.
# @param [String] backend_service
# Name of the BackendService resource to which the queried instance belongs.
# @param [Google::Apis::ComputeBeta::ResourceGroupReference] resource_group_reference_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::BackendServiceGroupHealth] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::BackendServiceGroupHealth]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_region_backend_service_health(project, region, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{backendService}/getHealth', options)
command.request_representation = Google::Apis::ComputeBeta::ResourceGroupReference::Representation
command.request_object = resource_group_reference_object
command.response_representation = Google::Apis::ComputeBeta::BackendServiceGroupHealth::Representation
command.response_class = Google::Apis::ComputeBeta::BackendServiceGroupHealth
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['backendService'] = backend_service unless backend_service.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a regional BackendService resource in the specified project using the
# data included in the request. There are several restrictions and guidelines to
# keep in mind when creating a regional backend service. Read Restrictions and
# Guidelines for more information.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_region_backend_service(project, region, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/backendServices', options)
command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation
command.request_object = backend_service_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of regional BackendService resources available to the
# specified project in the given region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=`
# expression`. Your `expression` must be in the format: field_name
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::BackendServiceList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::BackendServiceList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_region_backend_services(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/backendServices', options)
command.response_representation = Google::Apis::ComputeBeta::BackendServiceList::Representation
command.response_class = Google::Apis::ComputeBeta::BackendServiceList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Update the entire content of the regional BackendService resource. There are
# several restrictions and guidelines to keep in mind when updating a backend
# service. Read Restrictions and Guidelines for more information. This method
# supports patch semantics.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] backend_service
# Name of the BackendService resource to update.
# @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_region_backend_service(project, region, backend_service, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/regions/{region}/backendServices/{backendService}', options)
command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation
command.request_object = backend_service_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['backendService'] = backend_service unless backend_service.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_region_backend_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{resource}/testIamPermissions', options)
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
command.request_object = test_permissions_request_object
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Update the entire content of the regional BackendService resource. There are
# several restrictions and guidelines to keep in mind when updating a backend
# service. Read Restrictions and Guidelines for more information.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] backend_service
# Name of the BackendService resource to update.
# @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_region_backend_service(project, region, backend_service, backend_service_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/regions/{region}/backendServices/{backendService}', options)
command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation
command.request_object = backend_service_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['backendService'] = backend_service unless backend_service.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Schedules a group action to remove the specified instances from the managed
# instance group. Abandoning an instance does not delete the instance, but it
# does remove the instance from any target pools that are applied by the managed

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20160817'
REVISION = '20160908'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -944,18 +944,19 @@ module Google
class Backend
include Google::Apis::Core::Hashable
# Specifies the balancing mode for this backend. For global HTTP(S) load
# balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
# Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL
# load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE
# (for HTTP(S)) and CONNECTION (for TCP/SSL).
# This cannot be used for internal load balancing.
# Corresponds to the JSON property `balancingMode`
# @return [String]
attr_accessor :balancing_mode
# A multiplier applied to the group's maximum servicing capacity (either
# UTILIZATION or RATE). Default value is 1, which means the group will serve up
# to 100% of its configured CPU or RPS (depending on balancingMode). A setting
# of 0 means the group is completely drained, offering 0% of its available CPU
# or RPS. Valid range is [0.0,1.0].
# A multiplier applied to the group's maximum servicing capacity (based on
# UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group
# will serve up to 100% of its configured capacity (depending on balancingMode).
# A setting of 0 means the group is completely drained, offering 0% of its
# available Capacity. Valid range is [0.0,1.0].
# This cannot be used for internal load balancing.
# Corresponds to the JSON property `capacityScaler`
# @return [Float]
@ -980,6 +981,23 @@ module Google
# @return [String]
attr_accessor :group
# The max number of simultaneous connections for the group. Can be used with
# either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either
# maxConnections or maxConnectionsPerInstance must be set.
# This cannot be used for internal load balancing.
# Corresponds to the JSON property `maxConnections`
# @return [Fixnum]
attr_accessor :max_connections
# The max number of simultaneous connections that a single backend instance can
# handle. This is used to calculate the capacity of the group. Can be used in
# either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either
# maxConnections or maxConnectionsPerInstance must be set.
# This cannot be used for internal load balancing.
# Corresponds to the JSON property `maxConnectionsPerInstance`
# @return [Fixnum]
attr_accessor :max_connections_per_instance
# The max requests per second (RPS) of the group. Can be used with either RATE
# or UTILIZATION balancing modes, but required if RATE mode. For RATE mode,
# either maxRate or maxRatePerInstance must be set.
@ -1014,6 +1032,8 @@ module Google
@capacity_scaler = args[:capacity_scaler] if args.key?(:capacity_scaler)
@description = args[:description] if args.key?(:description)
@group = args[:group] if args.key?(:group)
@max_connections = args[:max_connections] if args.key?(:max_connections)
@max_connections_per_instance = args[:max_connections_per_instance] if args.key?(:max_connections_per_instance)
@max_rate = args[:max_rate] if args.key?(:max_rate)
@max_rate_per_instance = args[:max_rate_per_instance] if args.key?(:max_rate_per_instance)
@max_utilization = args[:max_utilization] if args.key?(:max_utilization)
@ -1038,6 +1058,11 @@ module Google
# @return [Array<Google::Apis::ComputeV1::Backend>]
attr_accessor :backends
# Message containing connection draining configuration.
# Corresponds to the JSON property `connectionDraining`
# @return [Google::Apis::ComputeV1::ConnectionDraining]
attr_accessor :connection_draining
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -1153,6 +1178,7 @@ module Google
def update!(**args)
@affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec)
@backends = args[:backends] if args.key?(:backends)
@connection_draining = args[:connection_draining] if args.key?(:connection_draining)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
@ -1260,6 +1286,26 @@ module Google
end
end
# Message containing connection draining configuration.
class ConnectionDraining
include Google::Apis::Core::Hashable
# Time for which instance will be drained (not accept new connections, but still
# work to finish started).
# Corresponds to the JSON property `drainingTimeoutSec`
# @return [Fixnum]
attr_accessor :draining_timeout_sec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@draining_timeout_sec = args[:draining_timeout_sec] if args.key?(:draining_timeout_sec)
end
end
# Represents a customer-supplied encryption key
class CustomerEncryptionKey
include Google::Apis::Core::Hashable
@ -2543,6 +2589,319 @@ module Google
end
end
#
class Http2HealthCheck
include Google::Apis::Core::Hashable
# The value of the host header in the HTTP/2 health check request. If left empty
# (default value), the IP on behalf of which this health check is performed will
# be used.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The TCP port number for the health check request. The default value is 443.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies the type of proxy header to append before sending data to the
# backend, either NONE or PROXY_V1. The default is NONE.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
# The request path of the HTTP/2 health check request. The default value is /.
# Corresponds to the JSON property `requestPath`
# @return [String]
attr_accessor :request_path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@host = args[:host] if args.key?(:host)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request_path = args[:request_path] if args.key?(:request_path)
end
end
#
class HttpHealthCheck
include Google::Apis::Core::Hashable
# The value of the host header in the HTTP health check request. If left empty (
# default value), the IP on behalf of which this health check is performed will
# be used.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The TCP port number for the health check request. The default value is 80.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies the type of proxy header to append before sending data to the
# backend, either NONE or PROXY_V1. The default is NONE.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
# The request path of the HTTP health check request. The default value is /.
# Corresponds to the JSON property `requestPath`
# @return [String]
attr_accessor :request_path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@host = args[:host] if args.key?(:host)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request_path = args[:request_path] if args.key?(:request_path)
end
end
#
class HttpsHealthCheck
include Google::Apis::Core::Hashable
# The value of the host header in the HTTPS health check request. If left empty (
# default value), the IP on behalf of which this health check is performed will
# be used.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The TCP port number for the health check request. The default value is 443.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies the type of proxy header to append before sending data to the
# backend, either NONE or PROXY_V1. The default is NONE.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
# The request path of the HTTPS health check request. The default value is /.
# Corresponds to the JSON property `requestPath`
# @return [String]
attr_accessor :request_path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@host = args[:host] if args.key?(:host)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request_path = args[:request_path] if args.key?(:request_path)
end
end
# An HealthCheck resource. This resource defines a template for how individual
# virtual machines should be checked for health, via one of the supported
# protocols.
class HealthCheck
include Google::Apis::Core::Hashable
# How often (in seconds) to send a health check. The default value is 5 seconds.
# Corresponds to the JSON property `checkIntervalSec`
# @return [Fixnum]
attr_accessor :check_interval_sec
# [Output Only] Creation timestamp in 3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# A so-far unhealthy instance will be marked healthy after this many consecutive
# successes. The default value is 2.
# Corresponds to the JSON property `healthyThreshold`
# @return [Fixnum]
attr_accessor :healthy_threshold
#
# Corresponds to the JSON property `http2HealthCheck`
# @return [Google::Apis::ComputeV1::Http2HealthCheck]
attr_accessor :http2_health_check
#
# Corresponds to the JSON property `httpHealthCheck`
# @return [Google::Apis::ComputeV1::HttpHealthCheck]
attr_accessor :http_health_check
#
# Corresponds to the JSON property `httpsHealthCheck`
# @return [Google::Apis::ComputeV1::HttpsHealthCheck]
attr_accessor :https_health_check
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Type of the resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
#
# Corresponds to the JSON property `sslHealthCheck`
# @return [Google::Apis::ComputeV1::SslHealthCheck]
attr_accessor :ssl_health_check
#
# Corresponds to the JSON property `tcpHealthCheck`
# @return [Google::Apis::ComputeV1::TcpHealthCheck]
attr_accessor :tcp_health_check
# How long (in seconds) to wait before claiming failure. The default value is 5
# seconds. It is invalid for timeoutSec to have greater value than
# checkIntervalSec.
# Corresponds to the JSON property `timeoutSec`
# @return [Fixnum]
attr_accessor :timeout_sec
# Specifies the type of the healthCheck, either TCP, UDP, SSL, HTTP, HTTPS or
# HTTP2. If not specified, the default is TCP. Exactly one of the protocol-
# specific health check field must be specified, which must match type field.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# A so-far healthy instance will be marked unhealthy after this many consecutive
# failures. The default value is 2.
# Corresponds to the JSON property `unhealthyThreshold`
# @return [Fixnum]
attr_accessor :unhealthy_threshold
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
@http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check)
@http_health_check = args[:http_health_check] if args.key?(:http_health_check)
@https_health_check = args[:https_health_check] if args.key?(:https_health_check)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
@ssl_health_check = args[:ssl_health_check] if args.key?(:ssl_health_check)
@tcp_health_check = args[:tcp_health_check] if args.key?(:tcp_health_check)
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
@type = args[:type] if args.key?(:type)
@unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
end
end
# Contains a list of HealthCheck resources.
class HealthCheckList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of HealthCheck resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::HealthCheck>]
attr_accessor :items
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# A full or valid partial URL to a health check. For example, the following are
# valid URLs:
# - https://www.googleapis.com/compute/beta/projects/project-id/global/
@ -2955,7 +3314,7 @@ module Google
# @return [String]
attr_accessor :archive_size_bytes
# [Output Only] Creation timestamp in RFC3339 text format.
# Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
@ -3275,7 +3634,7 @@ module Google
attr_accessor :service_accounts
# [Output Only] The status of the instance. One of the following values:
# PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDED, SUSPENDING, and
# PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and
# TERMINATED.
# Corresponds to the JSON property `status`
# @return [String]
@ -3395,8 +3754,8 @@ module Google
# @return [String]
attr_accessor :fingerprint
# [Output Only] A unique identifier for this resource type. The server generates
# this identifier.
# [Output Only] A unique identifier for this instance group. The server
# generates this identifier.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
@ -7164,6 +7523,56 @@ module Google
end
end
#
class SslHealthCheck
include Google::Apis::Core::Hashable
# The TCP port number for the health check request. The default value is 443.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies the type of proxy header to append before sending data to the
# backend, either NONE or PROXY_V1. The default is NONE.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
# The application data to send once the SSL connection has been established (
# default value is empty). If both request and response are empty, the
# connection establishment alone will indicate health. The request data can only
# be ASCII.
# Corresponds to the JSON property `request`
# @return [String]
attr_accessor :request
# The bytes to match against the beginning of the response data. If left empty (
# the default value), any response will indicate health. The response data can
# only be ASCII.
# Corresponds to the JSON property `response`
# @return [String]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request = args[:request] if args.key?(:request)
@response = args[:response] if args.key?(:response)
end
end
# Sets the scheduling options for an Instance.
class Scheduling
include Google::Apis::Core::Hashable
@ -7823,6 +8232,56 @@ module Google
end
end
#
class TcpHealthCheck
include Google::Apis::Core::Hashable
# The TCP port number for the health check request. The default value is 80.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies the type of proxy header to append before sending data to the
# backend, either NONE or PROXY_V1. The default is NONE.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
# The application data to send once the TCP connection has been established (
# default value is empty). If both request and response are empty, the
# connection establishment alone will indicate health. The request data can only
# be ASCII.
# Corresponds to the JSON property `request`
# @return [String]
attr_accessor :request
# The bytes to match against the beginning of the response data. If left empty (
# the default value), any response will indicate health. The response data can
# only be ASCII.
# Corresponds to the JSON property `response`
# @return [String]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request = args[:request] if args.key?(:request)
@response = args[:response] if args.key?(:response)
end
end
# A set of instance tags.
class Tags
include Google::Apis::Core::Hashable
@ -8822,6 +9281,190 @@ module Google
end
end
#
class TargetSslProxiesSetBackendServiceRequest
include Google::Apis::Core::Hashable
# The URL of the new BackendService resource for the targetSslProxy.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service = args[:service] if args.key?(:service)
end
end
#
class TargetSslProxiesSetProxyHeaderRequest
include Google::Apis::Core::Hashable
# The new type of proxy header to append before sending data to the backend.
# NONE or PROXY_V1 are allowed.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
end
end
#
class TargetSslProxiesSetSslCertificatesRequest
include Google::Apis::Core::Hashable
# New set of URLs to SslCertificate resources to associate with this
# TargetSslProxy. Currently exactly one ssl certificate must be specified.
# Corresponds to the JSON property `sslCertificates`
# @return [Array<String>]
attr_accessor :ssl_certificates
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates)
end
end
# A TargetSslProxy resource. This resource defines an SSL proxy.
class TargetSslProxy
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# [Output Only] Type of the resource. Always compute#targetSslProxy for target
# SSL proxies.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Specifies the type of proxy header to append before sending data to the
# backend, either NONE or PROXY_V1. The default is NONE.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# URL to the BackendService resource.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# URLs to SslCertificate resources that are used to authenticate connections to
# Backends. Currently exactly one SSL certificate must be specified.
# Corresponds to the JSON property `sslCertificates`
# @return [Array<String>]
attr_accessor :ssl_certificates
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@self_link = args[:self_link] if args.key?(:self_link)
@service = args[:service] if args.key?(:service)
@ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates)
end
end
# Contains a list of TargetSslProxy resources.
class TargetSslProxyList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of TargetSslProxy resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::TargetSslProxy>]
attr_accessor :items
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# Represents a Target VPN gateway resource.
class TargetVpnGateway
include Google::Apis::Core::Hashable

View File

@ -166,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ConnectionDraining
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomerEncryptionKey
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -322,6 +328,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Http2HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpsHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HealthCheckReference
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -922,6 +958,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SslHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Scheduling
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1000,6 +1042,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TcpHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Tags
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1144,6 +1192,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TargetSslProxiesSetBackendServiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetSslProxiesSetProxyHeaderRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetSslProxiesSetSslCertificatesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetSslProxy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetSslProxyList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetVpnGateway
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1505,6 +1583,8 @@ module Google
property :capacity_scaler, as: 'capacityScaler'
property :description, as: 'description'
property :group, as: 'group'
property :max_connections, as: 'maxConnections'
property :max_connections_per_instance, as: 'maxConnectionsPerInstance'
property :max_rate, as: 'maxRate'
property :max_rate_per_instance, as: 'maxRatePerInstance'
property :max_utilization, as: 'maxUtilization'
@ -1517,6 +1597,8 @@ module Google
property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
collection :backends, as: 'backends', class: Google::Apis::ComputeV1::Backend, decorator: Google::Apis::ComputeV1::Backend::Representation
property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeV1::ConnectionDraining, decorator: Google::Apis::ComputeV1::ConnectionDraining::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :enable_cdn, as: 'enableCDN'
@ -1563,6 +1645,13 @@ module Google
end
end
class ConnectionDraining
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :draining_timeout_sec, as: 'drainingTimeoutSec'
end
end
class CustomerEncryptionKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1865,6 +1954,78 @@ module Google
end
end
class Http2HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :port, as: 'port'
property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader'
property :request_path, as: 'requestPath'
end
end
class HttpHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :port, as: 'port'
property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader'
property :request_path, as: 'requestPath'
end
end
class HttpsHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :port, as: 'port'
property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader'
property :request_path, as: 'requestPath'
end
end
class HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :check_interval_sec, as: 'checkIntervalSec'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :healthy_threshold, as: 'healthyThreshold'
property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeV1::Http2HealthCheck, decorator: Google::Apis::ComputeV1::Http2HealthCheck::Representation
property :http_health_check, as: 'httpHealthCheck', class: Google::Apis::ComputeV1::HttpHealthCheck, decorator: Google::Apis::ComputeV1::HttpHealthCheck::Representation
property :https_health_check, as: 'httpsHealthCheck', class: Google::Apis::ComputeV1::HttpsHealthCheck, decorator: Google::Apis::ComputeV1::HttpsHealthCheck::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :ssl_health_check, as: 'sslHealthCheck', class: Google::Apis::ComputeV1::SslHealthCheck, decorator: Google::Apis::ComputeV1::SslHealthCheck::Representation
property :tcp_health_check, as: 'tcpHealthCheck', class: Google::Apis::ComputeV1::TcpHealthCheck, decorator: Google::Apis::ComputeV1::TcpHealthCheck::Representation
property :timeout_sec, as: 'timeoutSec'
property :type, as: 'type'
property :unhealthy_threshold, as: 'unhealthyThreshold'
end
end
class HealthCheckList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::HealthCheck, decorator: Google::Apis::ComputeV1::HealthCheck::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class HealthCheckReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3015,6 +3176,17 @@ module Google
end
end
class SslHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :port, as: 'port'
property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader'
property :request, as: 'request'
property :response, as: 'response'
end
end
class Scheduling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3170,6 +3342,17 @@ module Google
end
end
class TcpHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :port, as: 'port'
property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader'
property :request, as: 'request'
property :response, as: 'response'
end
end
class Tags
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3421,6 +3604,54 @@ module Google
end
end
class TargetSslProxiesSetBackendServiceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
end
end
class TargetSslProxiesSetProxyHeaderRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :proxy_header, as: 'proxyHeader'
end
end
class TargetSslProxiesSetSslCertificatesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ssl_certificates, as: 'sslCertificates'
end
end
class TargetSslProxy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :proxy_header, as: 'proxyHeader'
property :self_link, as: 'selfLink'
property :service, as: 'service'
collection :ssl_certificates, as: 'sslCertificates'
end
end
class TargetSslProxyList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::TargetSslProxy, decorator: Google::Apis::ComputeV1::TargetSslProxy::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class TargetVpnGateway
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2704,6 +2704,273 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified HealthCheck resource.
# @param [String] project
# Project ID for this request.
# @param [String] health_check
# Name of the HealthCheck resource to delete.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/healthChecks/{healthCheck}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['healthCheck'] = health_check unless health_check.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified HealthCheck resource. Get a list of available health
# checks by making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] health_check
# Name of the HealthCheck resource to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::HealthCheck] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::HealthCheck]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/healthChecks/{healthCheck}', options)
command.response_representation = Google::Apis::ComputeV1::HealthCheck::Representation
command.response_class = Google::Apis::ComputeV1::HealthCheck
command.params['project'] = project unless project.nil?
command.params['healthCheck'] = health_check unless health_check.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a HealthCheck resource in the specified project using the data
# included in the request.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeV1::HealthCheck] health_check_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_health_check(project, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/healthChecks', options)
command.request_representation = Google::Apis::ComputeV1::HealthCheck::Representation
command.request_object = health_check_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of HealthCheck resources available to the specified project.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=`
# expression`. Your `expression` must be in the format: field_name
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::HealthCheckList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::HealthCheckList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_health_checks(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/healthChecks', options)
command.response_representation = Google::Apis::ComputeV1::HealthCheckList::Representation
command.response_class = Google::Apis::ComputeV1::HealthCheckList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a HealthCheck resource in the specified project using the data
# included in the request. This method supports patch semantics.
# @param [String] project
# Project ID for this request.
# @param [String] health_check
# Name of the HealthCheck resource to update.
# @param [Google::Apis::ComputeV1::HealthCheck] health_check_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_health_check(project, health_check, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/global/healthChecks/{healthCheck}', options)
command.request_representation = Google::Apis::ComputeV1::HealthCheck::Representation
command.request_object = health_check_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['healthCheck'] = health_check unless health_check.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a HealthCheck resource in the specified project using the data
# included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] health_check
# Name of the HealthCheck resource to update.
# @param [Google::Apis::ComputeV1::HealthCheck] health_check_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_health_check(project, health_check, health_check_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/global/healthChecks/{healthCheck}', options)
command.request_representation = Google::Apis::ComputeV1::HealthCheck::Representation
command.request_object = health_check_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['healthCheck'] = health_check unless health_check.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified HttpHealthCheck resource.
# @param [String] project
# Project ID for this request.
@ -9017,6 +9284,313 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified TargetSslProxy resource.
# @param [String] project
# Project ID for this request.
# @param [String] target_ssl_proxy
# Name of the TargetSslProxy resource to delete.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/targetSslProxies/{targetSslProxy}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified TargetSslProxy resource. Get a list of available target
# SSL proxies by making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] target_ssl_proxy
# Name of the TargetSslProxy resource to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::TargetSslProxy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::TargetSslProxy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/targetSslProxies/{targetSslProxy}', options)
command.response_representation = Google::Apis::ComputeV1::TargetSslProxy::Representation
command.response_class = Google::Apis::ComputeV1::TargetSslProxy
command.params['project'] = project unless project.nil?
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a TargetSslProxy resource in the specified project using the data
# included in the request.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeV1::TargetSslProxy] target_ssl_proxy_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_target_ssl_proxy(project, target_ssl_proxy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/targetSslProxies', options)
command.request_representation = Google::Apis::ComputeV1::TargetSslProxy::Representation
command.request_object = target_ssl_proxy_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of TargetSslProxy resources available to the specified
# project.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=`
# expression`. Your `expression` must be in the format: field_name
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::TargetSslProxyList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::TargetSslProxyList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_target_ssl_proxies(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/targetSslProxies', options)
command.response_representation = Google::Apis::ComputeV1::TargetSslProxyList::Representation
command.response_class = Google::Apis::ComputeV1::TargetSslProxyList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Changes the BackendService for TargetSslProxy.
# @param [String] project
# Project ID for this request.
# @param [String] target_ssl_proxy
# Name of the TargetSslProxy resource whose BackendService resource is to be set.
# @param [Google::Apis::ComputeV1::TargetSslProxiesSetBackendServiceRequest] target_ssl_proxies_set_backend_service_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 set_target_ssl_proxy_backend_service(project, target_ssl_proxy, target_ssl_proxies_set_backend_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setBackendService', options)
command.request_representation = Google::Apis::ComputeV1::TargetSslProxiesSetBackendServiceRequest::Representation
command.request_object = target_ssl_proxies_set_backend_service_request_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Changes the ProxyHeaderType for TargetSslProxy.
# @param [String] project
# Project ID for this request.
# @param [String] target_ssl_proxy
# Name of the TargetSslProxy resource whose ProxyHeader is to be set.
# @param [Google::Apis::ComputeV1::TargetSslProxiesSetProxyHeaderRequest] target_ssl_proxies_set_proxy_header_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 set_target_ssl_proxy_proxy_header(project, target_ssl_proxy, target_ssl_proxies_set_proxy_header_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader', options)
command.request_representation = Google::Apis::ComputeV1::TargetSslProxiesSetProxyHeaderRequest::Representation
command.request_object = target_ssl_proxies_set_proxy_header_request_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Changes SslCertificates for TargetSslProxy.
# @param [String] project
# Project ID for this request.
# @param [String] target_ssl_proxy
# Name of the TargetSslProxy resource whose SslCertificate resource is to be set.
# @param [Google::Apis::ComputeV1::TargetSslProxiesSetSslCertificatesRequest] target_ssl_proxies_set_ssl_certificates_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 set_target_ssl_proxy_ssl_certificates(project, target_ssl_proxy, target_ssl_proxies_set_ssl_certificates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates', options)
command.request_representation = Google::Apis::ComputeV1::TargetSslProxiesSetSslCertificatesRequest::Representation
command.request_object = target_ssl_proxies_set_ssl_certificates_request_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['targetSslProxy'] = target_ssl_proxy unless target_ssl_proxy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves an aggregated list of target VPN gateways.
# @param [String] project
# Project ID for this request.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20160824'
REVISION = '20160905'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -2730,6 +2730,11 @@ module Google
attr_accessor :acknowledged
alias_method :acknowledged?, :acknowledged
# The channel type of the order: "purchaseOnGoogle" or "googleExpress".
# Corresponds to the JSON property `channelType`
# @return [String]
attr_accessor :channel_type
# The details of the customer who placed the order.
# Corresponds to the JSON property `customer`
# @return [Google::Apis::ContentV2::OrderCustomer]
@ -2831,6 +2836,7 @@ module Google
# Update properties of this object
def update!(**args)
@acknowledged = args[:acknowledged] if args.key?(:acknowledged)
@channel_type = args[:channel_type] if args.key?(:channel_type)
@customer = args[:customer] if args.key?(:customer)
@delivery_details = args[:delivery_details] if args.key?(:delivery_details)
@id = args[:id] if args.key?(:id)

View File

@ -1808,6 +1808,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :acknowledged, as: 'acknowledged'
property :channel_type, as: 'channelType'
property :customer, as: 'customer', class: Google::Apis::ContentV2::OrderCustomer, decorator: Google::Apis::ContentV2::OrderCustomer::Representation
property :delivery_details, as: 'deliveryDetails', class: Google::Apis::ContentV2::OrderDeliveryDetails, decorator: Google::Apis::ContentV2::OrderDeliveryDetails::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2
VERSION = 'V2'
REVISION = '20160819'
REVISION = '20160913'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2
VERSION = 'V2'
REVISION = '20160829'
REVISION = '20160907'
# View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20160819'
REVISION = '20160913'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV3
VERSION = 'V3'
REVISION = '20160819'
REVISION = '20160913'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -47,7 +47,8 @@ module Google
# @return [Hash<String,Array<String>>]
attr_accessor :import_formats
# This is always drive#about.
# Identifies what kind of resource this is. Value: the fixed string "drive#about"
# .
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -142,7 +143,8 @@ module Google
# @return [String]
attr_accessor :file_id
# This is always drive#change.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# change".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -182,7 +184,8 @@ module Google
# @return [Array<Google::Apis::DriveV3::Change>]
attr_accessor :changes
# This is always drive#changeList.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# changeList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -332,7 +335,8 @@ module Google
# @return [String]
attr_accessor :id
# This is always drive#comment.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# comment".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -419,7 +423,8 @@ module Google
# @return [Array<Google::Apis::DriveV3::Comment>]
attr_accessor :comments
# This is always drive#commentList.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# commentList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -531,7 +536,7 @@ module Google
attr_accessor :is_app_authorized
alias_method :is_app_authorized?, :is_app_authorized
# This is always drive#file.
# Identifies what kind of resource this is. Value: the fixed string "drive#file".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1083,7 +1088,8 @@ module Google
# @return [Array<Google::Apis::DriveV3::File>]
attr_accessor :files
# This is always drive#fileList.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# fileList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1115,7 +1121,8 @@ module Google
# @return [Array<String>]
attr_accessor :ids
# This is always drive#generatedIds
# Identifies what kind of resource this is. Value: the fixed string "drive#
# generatedIds".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1175,7 +1182,8 @@ module Google
# @return [String]
attr_accessor :id
# This is always drive#permission.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# permission".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1226,7 +1234,8 @@ module Google
class PermissionList
include Google::Apis::Core::Hashable
# This is always drive#permissionList.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# permissionList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1291,7 +1300,8 @@ module Google
# @return [String]
attr_accessor :id
# This is always drive#reply.
# Identifies what kind of resource this is. Value: the fixed string "drive#reply"
# .
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1323,7 +1333,8 @@ module Google
class ReplyList
include Google::Apis::Core::Hashable
# This is always drive#replyList.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# replyList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1370,7 +1381,8 @@ module Google
attr_accessor :keep_forever
alias_method :keep_forever?, :keep_forever
# This is always drive#revision.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# revision".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1453,7 +1465,8 @@ module Google
class RevisionList
include Google::Apis::Core::Hashable
# This is always drive#revisionList.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# revisionList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1478,7 +1491,8 @@ module Google
class StartPageToken
include Google::Apis::Core::Hashable
# This is always drive#startPageToken.
# Identifies what kind of resource this is. Value: the fixed string "drive#
# startPageToken".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1514,7 +1528,7 @@ module Google
# @return [String]
attr_accessor :email_address
# This is always drive#user.
# Identifies what kind of resource this is. Value: the fixed string "drive#user".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/fit/rest/
module FitnessV1
VERSION = 'V1'
REVISION = '20160801'
REVISION = '20160907'
# View your activity information in Google Fit
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'

View File

@ -103,7 +103,7 @@ module Google
end
end
#
# Next id: 10
class AggregateRequest
include Google::Apis::Core::Hashable
@ -746,6 +746,12 @@ module Google
# @return [Array<Google::Apis::FitnessV1::Session>]
attr_accessor :deleted_session
# Flag to indicate server has more data to transfer
# Corresponds to the JSON property `hasMoreData`
# @return [Boolean]
attr_accessor :has_more_data
alias_method :has_more_data?, :has_more_data
# 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`
@ -764,6 +770,7 @@ module Google
# 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

View File

@ -326,6 +326,7 @@ module Google
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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesConfigurationV1configuration
VERSION = 'V1configuration'
REVISION = '20160824'
REVISION = '20160908'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesManagementV1management
VERSION = 'V1management'
REVISION = '20160824'
REVISION = '20160908'
# Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/
module GamesV1
VERSION = 'V1'
REVISION = '20160824'
REVISION = '20160908'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics/
module GenomicsV1
VERSION = 'V1'
REVISION = '20160830'
REVISION = '20160914'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -827,7 +827,7 @@ module Google
# @return [String]
attr_accessor :id
# The Google Developers Console project ID that this dataset belongs to.
# The Google Cloud project ID that this dataset belongs to.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
@ -1203,8 +1203,8 @@ module Google
class ExportReadGroupSetRequest
include Google::Apis::Core::Hashable
# Required. The Google Developers Console project ID that owns this export. The
# caller must have WRITE access to this project.
# Required. The Google Cloud project ID that owns this export. The caller must
# have WRITE access to this project.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
@ -2029,8 +2029,8 @@ module Google
class StreamReadsRequest
include Google::Apis::Core::Hashable
# The Google Developers Console project ID or number which will be billed for
# this access. The caller must have WRITE access to this project. Required.
# The Google Cloud project ID which will be billed for this access. The caller
# must have WRITE access to this project. Required.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
@ -3202,8 +3202,8 @@ module Google
class StreamVariantsRequest
include Google::Apis::Core::Hashable
# The Google Developers Console project ID or number which will be billed for
# this access. The caller must have WRITE access to this project. Required.
# The Google Cloud project ID which will be billed for this access. The caller
# must have WRITE access to this project. Required.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id

View File

@ -430,7 +430,7 @@ module Google
# genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
# com/genomics/fundamentals-of-google-genomics)
# @param [String] project_id
# Required. The project to list datasets for.
# Required. The Google Cloud project ID to list datasets for.
# @param [Fixnum] page_size
# The maximum number of results to return in a single page. If unspecified,
# defaults to 50. The maximum value is 1024.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/identity-toolkit/v3/
module IdentitytoolkitV3
VERSION = 'V3'
REVISION = '20160812'
REVISION = '20160902'
end
end
end

View File

@ -306,6 +306,11 @@ module Google
# @return [String]
attr_accessor :continue_uri
# The query parameter that client can customize by themselves in auth url.
# Corresponds to the JSON property `customParameter`
# @return [Array<Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::CustomParameter>]
attr_accessor :custom_parameter
# The hosted domain to restrict sign-in to accounts at that domain for Google
# Apps hosted accounts.
# Corresponds to the JSON property `hostedDomain`
@ -361,6 +366,7 @@ module Google
@client_id = args[:client_id] if args.key?(:client_id)
@context = args[:context] if args.key?(:context)
@continue_uri = args[:continue_uri] if args.key?(:continue_uri)
@custom_parameter = args[:custom_parameter] if args.key?(:custom_parameter)
@hosted_domain = args[:hosted_domain] if args.key?(:hosted_domain)
@identifier = args[:identifier] if args.key?(:identifier)
@oauth_consumer_key = args[:oauth_consumer_key] if args.key?(:oauth_consumer_key)
@ -370,6 +376,31 @@ module Google
@provider_id = args[:provider_id] if args.key?(:provider_id)
@session_id = args[:session_id] if args.key?(:session_id)
end
#
class CustomParameter
include Google::Apis::Core::Hashable
# The key of the query parameter.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# The value of the query parameter.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
# Request to delete account.
@ -968,6 +999,13 @@ module Google
# @return [String]
attr_accessor :salt_separator
# If true, backend will do sanity check(including duplicate email and federated
# id) when uploading account.
# Corresponds to the JSON property `sanityCheck`
# @return [Boolean]
attr_accessor :sanity_check
alias_method :sanity_check?, :sanity_check
# The key for to hash the password.
# Corresponds to the JSON property `signerKey`
# @return [String]
@ -989,6 +1027,7 @@ module Google
@memory_cost = args[:memory_cost] if args.key?(:memory_cost)
@rounds = args[:rounds] if args.key?(:rounds)
@salt_separator = args[:salt_separator] if args.key?(:salt_separator)
@sanity_check = args[:sanity_check] if args.key?(:sanity_check)
@signer_key = args[:signer_key] if args.key?(:signer_key)
@users = args[:users] if args.key?(:users)
end
@ -1297,7 +1336,8 @@ module Google
class ResetPasswordResponse
include Google::Apis::Core::Hashable
# The user's email.
# The user's email. If the out-of-band code is for email recovery, the user's
# original email.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
@ -1307,6 +1347,16 @@ module Google
# @return [String]
attr_accessor :kind
# If the out-of-band code is for email recovery, the user's new email.
# Corresponds to the JSON property `newEmail`
# @return [String]
attr_accessor :new_email
# The request type.
# Corresponds to the JSON property `requestType`
# @return [String]
attr_accessor :request_type
def initialize(**args)
update!(**args)
end
@ -1315,6 +1365,8 @@ module Google
def update!(**args)
@email = args[:email] if args.key?(:email)
@kind = args[:kind] if args.key?(:kind)
@new_email = args[:new_email] if args.key?(:new_email)
@request_type = args[:request_type] if args.key?(:request_type)
end
end
@ -1552,6 +1604,12 @@ module Google
# @return [String]
attr_accessor :created_at
# Whether the user is authenticated by the developer.
# Corresponds to the JSON property `customAuth`
# @return [Boolean]
attr_accessor :custom_auth
alias_method :custom_auth?, :custom_auth
# Whether the user is disabled.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
@ -1609,7 +1667,7 @@ module Google
# @return [String]
attr_accessor :salt
# User's screen name at Twitter.
# User's screen name at Twitter or login name at Github.
# Corresponds to the JSON property `screenName`
# @return [String]
attr_accessor :screen_name
@ -1631,6 +1689,7 @@ module Google
# Update properties of this object
def update!(**args)
@created_at = args[:created_at] if args.key?(:created_at)
@custom_auth = args[:custom_auth] if args.key?(:custom_auth)
@disabled = args[:disabled] if args.key?(:disabled)
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@ -1687,7 +1746,7 @@ module Google
# @return [String]
attr_accessor :raw_user_info
# User's screen name at Twitter.
# User's screen name at Twitter or login name at Github.
# Corresponds to the JSON property `screenName`
# @return [String]
attr_accessor :screen_name
@ -1906,7 +1965,7 @@ module Google
# @return [String]
attr_accessor :refresh_token
# The screen_name of a Twitter user.
# The screen_name of a Twitter user or the login name at Github.
# Corresponds to the JSON property `screenName`
# @return [String]
attr_accessor :screen_name

View File

@ -66,6 +66,12 @@ module Google
class CreateAuthUriRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
class CustomParameter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@ -316,6 +322,8 @@ module Google
property :client_id, as: 'clientId'
property :context, as: 'context'
property :continue_uri, as: 'continueUri'
collection :custom_parameter, as: 'customParameter', class: Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::CustomParameter, decorator: Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::CustomParameter::Representation
property :hosted_domain, as: 'hostedDomain'
property :identifier, as: 'identifier'
property :oauth_consumer_key, as: 'oauthConsumerKey'
@ -325,6 +333,14 @@ module Google
property :provider_id, as: 'providerId'
property :session_id, as: 'sessionId'
end
class CustomParameter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
class DeleteAccountRequest
@ -479,6 +495,7 @@ module Google
property :memory_cost, as: 'memoryCost'
property :rounds, as: 'rounds'
property :salt_separator, :base64 => true, as: 'saltSeparator'
property :sanity_check, as: 'sanityCheck'
property :signer_key, :base64 => true, as: 'signerKey'
collection :users, as: 'users', class: Google::Apis::IdentitytoolkitV3::UserInfo, decorator: Google::Apis::IdentitytoolkitV3::UserInfo::Representation
@ -557,6 +574,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
property :kind, as: 'kind'
property :new_email, as: 'newEmail'
property :request_type, as: 'requestType'
end
end
@ -622,6 +641,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :created_at, as: 'createdAt'
property :custom_auth, as: 'customAuth'
property :disabled, as: 'disabled'
property :display_name, as: 'displayName'
property :email, as: 'email'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/
module LanguageV1beta1
VERSION = 'V1beta1'
REVISION = '20160816'
REVISION = '20160912'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -18,7 +18,7 @@ require 'google/apis/monitoring_v3/representations.rb'
module Google
module Apis
# Google Monitoring API
# Stackdriver Monitoring API
#
# Manages your Stackdriver Monitoring data and configurations. Most projects
# must be associated with a Stackdriver account, with a few exceptions as noted
@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20160829'
REVISION = '20160912'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -285,10 +285,11 @@ module Google
# @return [Array<Google::Apis::MonitoringV3::Point>]
attr_accessor :points
# Output only. The value type of the time series. This can be different than the
# value type of the metric object if this time series is an alignment or
# reduction of other time series. This field is ignored when writing data to a
# time series.
# The value type of the time series. This can be different than the value type
# of the metric object if this time series is an alignment or reduction of other
# time series. When writing data to a time series, this field is optional, and,
# when specified, must match the value type of the metric descriptor. If a
# metric descriptor is auto-created, its value type will match this field.
# Corresponds to the JSON property `valueType`
# @return [String]
attr_accessor :value_type
@ -309,10 +310,11 @@ module Google
# @return [Google::Apis::MonitoringV3::MonitoredResource]
attr_accessor :resource
# Output only. The metric kind of the time series. This can be different than
# the metric kind of the metric object if this time series is an alignment or
# reduction of other time series. This field is ignored when writing data to a
# time series.
# The metric kind of the time series. This can be different than the metric kind
# of the metric object if this time series is an alignment or reduction of other
# time series. When writing data to a time series, this field is optional, and,
# when specified, must match the metric kind of the metric descriptor. If a
# metric descriptor is auto-created, its metric kind will match this field.
# Corresponds to the JSON property `metricKind`
# @return [String]
attr_accessor :metric_kind
@ -399,12 +401,14 @@ module Google
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
attr_accessor :labels
# Whether the metric records instantaneous values, changes to a value, etc.
# Whether the metric records instantaneous values, changes to a value, etc. Some
# combinations of metric_kind and value_type might not be supported.
# Corresponds to the JSON property `metricKind`
# @return [String]
attr_accessor :metric_kind
# Whether the measurement is an integer, a floating-point number, etc.
# Whether the measurement is an integer, a floating-point number, etc. Some
# combinations of metric_kind and value_type might not be supported.
# Corresponds to the JSON property `valueType`
# @return [String]
attr_accessor :value_type

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module MonitoringV3
# Google Monitoring API
# Stackdriver Monitoring API
#
# Manages your Stackdriver Monitoring data and configurations. Most projects
# must be associated with a Stackdriver account, with a few exceptions as noted

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/accounts/docs/OAuth2
module Oauth2V2
VERSION = 'V2'
REVISION = '20160817'
REVISION = '20160912'
# Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/domains/
module PlusDomainsV1
VERSION = 'V1'
REVISION = '20160830'
REVISION = '20160914'
# View your circles and the people and pages in them
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/api/
module PlusV1
VERSION = 'V1'
REVISION = '20160830'
REVISION = '20160914'
# Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/
module SheetsV4
VERSION = 'V4'
REVISION = '20160826'
REVISION = '20160916'
# View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech/
module SpeechV1beta1
VERSION = 'V1beta1'
REVISION = '20160824'
REVISION = '20160912'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -322,6 +322,14 @@ module Google
# @return [Fixnum]
attr_accessor :sample_rate
# [Optional] The number of interleaved channels in the input audio data.
# Valid values for LINEAR16 and FLAC are `1`-`8`.
# Valid values for MULAW, AMR and AMR_WB are only `1`.
# If `0` or omitted, defaults to one channel (mono).
# Corresponds to the JSON property `audioChannels`
# @return [Fixnum]
attr_accessor :audio_channels
def initialize(**args)
update!(**args)
end
@ -334,6 +342,7 @@ module Google
@encoding = args[:encoding] if args.key?(:encoding)
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
@audio_channels = args[:audio_channels] if args.key?(:audio_channels)
end
end

View File

@ -153,6 +153,7 @@ module Google
property :encoding, as: 'encoding'
property :profanity_filter, as: 'profanityFilter'
property :sample_rate, as: 'sampleRate'
property :audio_channels, as: 'audioChannels'
end
end

View File

@ -28,10 +28,10 @@ module Google
# require 'google/apis/speech_v1beta1'
#
# Speech = Google::Apis::SpeechV1beta1 # Alias the module
# service = Speech::CloudSpeechAPIService.new
# service = Speech::SpeechService.new
#
# @see https://cloud.google.com/speech/
class CloudSpeechAPIService < Google::Apis::Core::BaseService
class SpeechService < 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.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/sql/docs/reference/latest
module SqladminV1beta4
VERSION = 'V1beta4'
REVISION = '20160822'
REVISION = '20160907'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/storage/docs/json_api/
module StorageV1
VERSION = 'V1'
REVISION = '20160802'
REVISION = '20160908'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -41,12 +41,6 @@ module Google
# @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
attr_accessor :default_object_acl
# Encryption configuration used by default for newly inserted objects, when no
# encryption config is specified.
# Corresponds to the JSON property `encryption`
# @return [Google::Apis::StorageV1::Bucket::Encryption]
attr_accessor :encryption
# HTTP 1.1 Entity tag for the bucket.
# Corresponds to the JSON property `etag`
# @return [String]
@ -145,7 +139,6 @@ module Google
@acl = args[:acl] if args.key?(:acl)
@cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
@default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
@encryption = args[:encryption] if args.key?(:encryption)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@ -206,26 +199,6 @@ module Google
end
end
# Encryption configuration used by default for newly inserted objects, when no
# encryption config is specified.
class Encryption
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `default_kms_key_name`
# @return [String]
attr_accessor :default_kms_key_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name)
end
end
# The bucket's lifecycle configuration. See lifecycle management for more
# information.
class Lifecycle
@ -856,12 +829,6 @@ module Google
# @return [String]
attr_accessor :kind
# Cloud KMS Key used to encrypt this object, if the object is encrypted by such
# a key.
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name
# MD5 hash of the data; encoded using base64. For more information about using
# the MD5 hash, see Hashes and ETags: Best Practices.
# Corresponds to the JSON property `md5Hash`
@ -947,7 +914,6 @@ module Google
@generation = args[:generation] if args.key?(:generation)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
@md5_hash = args[:md5_hash] if args.key?(:md5_hash)
@media_link = args[:media_link] if args.key?(:media_link)
@metadata = args[:metadata] if args.key?(:metadata)

View File

@ -31,12 +31,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Encryption
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Lifecycle
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -193,8 +187,6 @@ module Google
collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
property :etag, as: 'etag'
property :id, as: 'id'
property :kind, as: 'kind'
@ -230,13 +222,6 @@ module Google
end
end
class Encryption
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_kms_key_name, as: 'default_kms_key_name'
end
end
class Lifecycle
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -413,7 +398,6 @@ module Google
property :generation, as: 'generation'
property :id, as: 'id'
property :kind, as: 'kind'
property :kms_key_name, as: 'kmsKeyName'
property :md5_hash, as: 'md5Hash'
property :media_link, as: 'mediaLink'
hash :metadata, as: 'metadata'

View File

@ -1154,10 +1154,6 @@ module Google
# @param [String] if_metageneration_match
# Makes the operation conditional on whether the object's current metageneration
# matches the given value.
# @param [String] kms_key_name
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
# object. Overrides the object metadata's kms_key_name value, if any.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1181,7 +1177,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
if download_dest.nil?
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
else
@ -1197,7 +1193,6 @@ module Google
command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
@ -1454,10 +1449,6 @@ module Google
# @param [String] if_metageneration_not_match
# Makes the operation conditional on whether the object's current metageneration
# does not match the given value.
# @param [String] kms_key_name
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
# object. Overrides the object metadata's kms_key_name value, if any.
# @param [String] name
# Name of the object. Required when the object metadata is not otherwise
# provided. Overrides the object metadata's name value, if any. For information
@ -1493,7 +1484,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, kms_key_name: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, 'b/{bucket}/o', options)
else
@ -1511,7 +1502,6 @@ module Google
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
command.query['name'] = name unless name.nil?
command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
command.query['projection'] = projection unless projection.nil?
@ -1666,10 +1656,6 @@ module Google
# about how to URL encode object names to be path safe, see Encoding URI Path
# Parts.
# @param [Google::Apis::StorageV1::Object] object_object
# @param [String] destination_kms_key_name
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
# object. Overrides the object metadata's kms_key_name value, if any.
# @param [String] destination_predefined_acl
# Apply a predefined set of access controls to the destination object.
# @param [String] if_generation_match
@ -1736,7 +1722,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
command.request_representation = Google::Apis::StorageV1::Object::Representation
command.request_object = object_object
@ -1746,7 +1732,6 @@ module Google
command.params['sourceObject'] = source_object unless source_object.nil?
command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
command.params['destinationObject'] = destination_object unless destination_object.nil?
command.query['destinationKmsKeyName'] = destination_kms_key_name unless destination_kms_key_name.nil?
command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20160823'
REVISION = '20160913'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'