Permalink
Browse files

Add datastore_v1, bump version

1 parent 3b7325a commit f650a39e1645358f70837294131d9a08a7a1f3e0 @sqrrrl sqrrrl committed Sep 20, 2016
View
4 CHANGELOG.md
@@ -1,3 +1,7 @@
+# 0.9.15
+* Add datastore v1
+* Regenerate APIs
+
# 0.9.14
* Fix error handling with downloads, no longer fails silently
* Prevent form-encoding query parameters for APIs that don't expect it
View
4 api_names.yaml
@@ -623,6 +623,10 @@
"/datastore:v1beta2/AllocateIdsResponse": allocate_ids_response
"/datastore:v1beta2/BeginTransactionRequest": begin_transaction_request
"/datastore:v1beta2/BeginTransactionResponse": begin_transaction_response
+"/datastore:v1/AllocateIdsRequest": allocate_ids_request
+"/datastore:v1/AllocateIdsResponse": allocate_ids_response
+"/datastore:v1/BeginTransactionRequest": begin_transaction_request
+"/datastore:v1/BeginTransactionResponse": begin_transaction_response
"/deploymentmanager:v2/DeploymentsListResponse": list_deployments_response
"/deploymentmanager:v2/ManifestsListResponse": list_manifests_response
"/deploymentmanager:v2/OperationsListResponse": list_operations_response
View
383 api_names_out.yaml
@@ -604,6 +604,10 @@
"/datastore:v1beta2/AllocateIdsResponse": allocate_ids_response
"/datastore:v1beta2/BeginTransactionRequest": begin_transaction_request
"/datastore:v1beta2/BeginTransactionResponse": begin_transaction_response
+"/datastore:v1/AllocateIdsRequest": allocate_ids_request
+"/datastore:v1/AllocateIdsResponse": allocate_ids_response
+"/datastore:v1/BeginTransactionRequest": begin_transaction_request
+"/datastore:v1/BeginTransactionResponse": begin_transaction_response
"/deploymentmanager:v2/DeploymentsListResponse": list_deployments_response
"/deploymentmanager:v2/ManifestsListResponse": list_manifests_response
"/deploymentmanager:v2/OperationsListResponse": list_operations_response
@@ -15435,166 +15439,162 @@
"/customsearch:v1/Search/url": url
"/customsearch:v1/Search/url/template": template
"/customsearch:v1/Search/url/type": type
-"/datastore:v1beta3/key": key
-"/datastore:v1beta3/quotaUser": quota_user
-"/datastore:v1beta3/fields": fields
-"/datastore:v1beta3/datastore.projects.runQuery": run_project_query
-"/datastore:v1beta3/datastore.projects.runQuery/projectId": project_id
-"/datastore:v1beta3/datastore.projects.beginTransaction": begin_project_transaction
-"/datastore:v1beta3/datastore.projects.beginTransaction/projectId": project_id
-"/datastore:v1beta3/datastore.projects.allocateIds": allocate_project_ids
-"/datastore:v1beta3/datastore.projects.allocateIds/projectId": project_id
-"/datastore:v1beta3/datastore.projects.lookup": lookup_project
-"/datastore:v1beta3/datastore.projects.lookup/projectId": project_id
-"/datastore:v1beta3/datastore.projects.commit": commit_project
-"/datastore:v1beta3/datastore.projects.commit/projectId": project_id
-"/datastore:v1beta3/datastore.projects.rollback": rollback_project
-"/datastore:v1beta3/datastore.projects.rollback/projectId": project_id
-"/datastore:v1beta3/Value": value
-"/datastore:v1beta3/Value/stringValue": string_value
-"/datastore:v1beta3/Value/arrayValue": array_value
-"/datastore:v1beta3/Value/entityValue": entity_value
-"/datastore:v1beta3/Value/meaning": meaning
-"/datastore:v1beta3/Value/integerValue": integer_value
-"/datastore:v1beta3/Value/doubleValue": double_value
-"/datastore:v1beta3/Value/blobValue": blob_value
-"/datastore:v1beta3/Value/geoPointValue": geo_point_value
-"/datastore:v1beta3/Value/nullValue": null_value
-"/datastore:v1beta3/Value/booleanValue": boolean_value
-"/datastore:v1beta3/Value/keyValue": key_value
-"/datastore:v1beta3/Value/excludeFromIndexes": exclude_from_indexes
-"/datastore:v1beta3/Value/timestampValue": timestamp_value
-"/datastore:v1beta3/ReadOptions": read_options
-"/datastore:v1beta3/ReadOptions/transaction": transaction
-"/datastore:v1beta3/ReadOptions/readConsistency": read_consistency
-"/datastore:v1beta3/PropertyOrder": property_order
-"/datastore:v1beta3/PropertyOrder/direction": direction
-"/datastore:v1beta3/PropertyOrder/property": property
-"/datastore:v1beta3/CommitRequest": commit_request
-"/datastore:v1beta3/CommitRequest/transaction": transaction
-"/datastore:v1beta3/CommitRequest/mode": mode
-"/datastore:v1beta3/CommitRequest/mutations": mutations
-"/datastore:v1beta3/CommitRequest/mutations/mutation": mutation
-"/datastore:v1beta3/Query": query
-"/datastore:v1beta3/Query/limit": limit
-"/datastore:v1beta3/Query/filter": filter
-"/datastore:v1beta3/Query/endCursor": end_cursor
-"/datastore:v1beta3/Query/distinctOn": distinct_on
-"/datastore:v1beta3/Query/distinctOn/distinct_on": distinct_on
-"/datastore:v1beta3/Query/offset": offset
-"/datastore:v1beta3/Query/projection": projection
-"/datastore:v1beta3/Query/projection/projection": projection
-"/datastore:v1beta3/Query/order": order
-"/datastore:v1beta3/Query/order/order": order
-"/datastore:v1beta3/Query/startCursor": start_cursor
-"/datastore:v1beta3/Query/kind": kind
-"/datastore:v1beta3/Query/kind/kind": kind
-"/datastore:v1beta3/RollbackRequest": rollback_request
-"/datastore:v1beta3/RollbackRequest/transaction": transaction
-"/datastore:v1beta3/EntityResult": entity_result
-"/datastore:v1beta3/EntityResult/cursor": cursor
-"/datastore:v1beta3/EntityResult/entity": entity
-"/datastore:v1beta3/EntityResult/version": version
-"/datastore:v1beta3/GqlQueryParameter": gql_query_parameter
-"/datastore:v1beta3/GqlQueryParameter/value": value
-"/datastore:v1beta3/GqlQueryParameter/cursor": cursor
-"/datastore:v1beta3/ArrayValue": array_value
-"/datastore:v1beta3/ArrayValue/values": values
-"/datastore:v1beta3/ArrayValue/values/value": value
-"/datastore:v1beta3/Filter": filter
-"/datastore:v1beta3/Filter/propertyFilter": property_filter
-"/datastore:v1beta3/Filter/compositeFilter": composite_filter
-"/datastore:v1beta3/BeginTransactionResponse": begin_transaction_response
-"/datastore:v1beta3/BeginTransactionResponse/transaction": transaction
-"/datastore:v1beta3/PartitionId": partition_id
-"/datastore:v1beta3/PartitionId/namespaceId": namespace_id
-"/datastore:v1beta3/PartitionId/projectId": project_id
-"/datastore:v1beta3/QueryResultBatch": query_result_batch
-"/datastore:v1beta3/QueryResultBatch/snapshotVersion": snapshot_version
-"/datastore:v1beta3/QueryResultBatch/endCursor": end_cursor
-"/datastore:v1beta3/QueryResultBatch/skippedCursor": skipped_cursor
-"/datastore:v1beta3/QueryResultBatch/entityResultType": entity_result_type
-"/datastore:v1beta3/QueryResultBatch/moreResults": more_results
-"/datastore:v1beta3/QueryResultBatch/entityResults": entity_results
-"/datastore:v1beta3/QueryResultBatch/entityResults/entity_result": entity_result
-"/datastore:v1beta3/QueryResultBatch/skippedResults": skipped_results
-"/datastore:v1beta3/AllocateIdsRequest": allocate_ids_request
-"/datastore:v1beta3/AllocateIdsRequest/keys": keys
-"/datastore:v1beta3/AllocateIdsRequest/keys/key": key
-"/datastore:v1beta3/KindExpression": kind_expression
-"/datastore:v1beta3/KindExpression/name": name
-"/datastore:v1beta3/PropertyFilter": property_filter
-"/datastore:v1beta3/PropertyFilter/value": value
-"/datastore:v1beta3/PropertyFilter/op": op
-"/datastore:v1beta3/PropertyFilter/property": property
-"/datastore:v1beta3/PathElement": path_element
-"/datastore:v1beta3/PathElement/kind": kind
-"/datastore:v1beta3/PathElement/id": id
-"/datastore:v1beta3/PathElement/name": name
-"/datastore:v1beta3/RollbackResponse": rollback_response
-"/datastore:v1beta3/PropertyReference": property_reference
-"/datastore:v1beta3/PropertyReference/name": name
-"/datastore:v1beta3/Projection": projection
-"/datastore:v1beta3/Projection/property": property
-"/datastore:v1beta3/MutationResult": mutation_result
-"/datastore:v1beta3/MutationResult/conflictDetected": conflict_detected
-"/datastore:v1beta3/MutationResult/key": key
-"/datastore:v1beta3/MutationResult/version": version
-"/datastore:v1beta3/AllocateIdsResponse": allocate_ids_response
-"/datastore:v1beta3/AllocateIdsResponse/keys": keys
-"/datastore:v1beta3/AllocateIdsResponse/keys/key": key
-"/datastore:v1beta3/LookupResponse": lookup_response
-"/datastore:v1beta3/LookupResponse/found": found
-"/datastore:v1beta3/LookupResponse/found/found": found
-"/datastore:v1beta3/LookupResponse/missing": missing
-"/datastore:v1beta3/LookupResponse/missing/missing": missing
-"/datastore:v1beta3/LookupResponse/deferred": deferred
-"/datastore:v1beta3/LookupResponse/deferred/deferred": deferred
-"/datastore:v1beta3/BeginTransactionRequest": begin_transaction_request
-"/datastore:v1beta3/Key": key
-"/datastore:v1beta3/Key/partitionId": partition_id
-"/datastore:v1beta3/Key/path": path
-"/datastore:v1beta3/Key/path/path": path
-"/datastore:v1beta3/RunQueryResponse": run_query_response
-"/datastore:v1beta3/RunQueryResponse/batch": batch
-"/datastore:v1beta3/RunQueryResponse/query": query
-"/datastore:v1beta3/Entity": entity
-"/datastore:v1beta3/Entity/properties": properties
-"/datastore:v1beta3/Entity/properties/property": property
-"/datastore:v1beta3/Entity/key": key
-"/datastore:v1beta3/GqlQuery": gql_query
-"/datastore:v1beta3/GqlQuery/queryString": query_string
-"/datastore:v1beta3/GqlQuery/namedBindings": named_bindings
-"/datastore:v1beta3/GqlQuery/namedBindings/named_binding": named_binding
-"/datastore:v1beta3/GqlQuery/allowLiterals": allow_literals
-"/datastore:v1beta3/GqlQuery/positionalBindings": positional_bindings
-"/datastore:v1beta3/GqlQuery/positionalBindings/positional_binding": positional_binding
-"/datastore:v1beta3/Mutation": mutation
-"/datastore:v1beta3/Mutation/insert": insert
-"/datastore:v1beta3/Mutation/update": update
-"/datastore:v1beta3/Mutation/baseVersion": base_version
-"/datastore:v1beta3/Mutation/upsert": upsert
-"/datastore:v1beta3/Mutation/delete": delete
-"/datastore:v1beta3/CommitResponse": commit_response
-"/datastore:v1beta3/CommitResponse/mutationResults": mutation_results
-"/datastore:v1beta3/CommitResponse/mutationResults/mutation_result": mutation_result
-"/datastore:v1beta3/CommitResponse/indexUpdates": index_updates
-"/datastore:v1beta3/RunQueryRequest": run_query_request
-"/datastore:v1beta3/RunQueryRequest/partitionId": partition_id
-"/datastore:v1beta3/RunQueryRequest/gqlQuery": gql_query
-"/datastore:v1beta3/RunQueryRequest/readOptions": read_options
-"/datastore:v1beta3/RunQueryRequest/query": query
-"/datastore:v1beta3/LookupRequest": lookup_request
-"/datastore:v1beta3/LookupRequest/readOptions": read_options
-"/datastore:v1beta3/LookupRequest/keys": keys
-"/datastore:v1beta3/LookupRequest/keys/key": key
-"/datastore:v1beta3/LatLng": lat_lng
-"/datastore:v1beta3/LatLng/latitude": latitude
-"/datastore:v1beta3/LatLng/longitude": longitude
-"/datastore:v1beta3/CompositeFilter": composite_filter
-"/datastore:v1beta3/CompositeFilter/op": op
-"/datastore:v1beta3/CompositeFilter/filters": filters
-"/datastore:v1beta3/CompositeFilter/filters/filter": filter
+"/datastore:v1/key": key
+"/datastore:v1/quotaUser": quota_user
+"/datastore:v1/fields": fields
+"/datastore:v1/datastore.projects.runQuery": run_project_query
+"/datastore:v1/datastore.projects.runQuery/projectId": project_id
+"/datastore:v1/datastore.projects.beginTransaction": begin_project_transaction
+"/datastore:v1/datastore.projects.beginTransaction/projectId": project_id
+"/datastore:v1/datastore.projects.allocateIds": allocate_project_ids
+"/datastore:v1/datastore.projects.allocateIds/projectId": project_id
+"/datastore:v1/datastore.projects.lookup": lookup_project
+"/datastore:v1/datastore.projects.lookup/projectId": project_id
+"/datastore:v1/datastore.projects.commit": commit_project
+"/datastore:v1/datastore.projects.commit/projectId": project_id
+"/datastore:v1/datastore.projects.rollback": rollback_project
+"/datastore:v1/datastore.projects.rollback/projectId": project_id
+"/datastore:v1/Value": value
+"/datastore:v1/Value/stringValue": string_value
+"/datastore:v1/Value/arrayValue": array_value
+"/datastore:v1/Value/entityValue": entity_value
+"/datastore:v1/Value/meaning": meaning
+"/datastore:v1/Value/integerValue": integer_value
+"/datastore:v1/Value/doubleValue": double_value
+"/datastore:v1/Value/blobValue": blob_value
+"/datastore:v1/Value/geoPointValue": geo_point_value
+"/datastore:v1/Value/nullValue": null_value
+"/datastore:v1/Value/booleanValue": boolean_value
+"/datastore:v1/Value/keyValue": key_value
+"/datastore:v1/Value/excludeFromIndexes": exclude_from_indexes
+"/datastore:v1/Value/timestampValue": timestamp_value
+"/datastore:v1/ReadOptions": read_options
+"/datastore:v1/ReadOptions/transaction": transaction
+"/datastore:v1/ReadOptions/readConsistency": read_consistency
+"/datastore:v1/PropertyOrder": property_order
+"/datastore:v1/PropertyOrder/direction": direction
+"/datastore:v1/PropertyOrder/property": property
+"/datastore:v1/CommitRequest": commit_request
+"/datastore:v1/CommitRequest/transaction": transaction
+"/datastore:v1/CommitRequest/mode": mode
+"/datastore:v1/CommitRequest/mutations": mutations
+"/datastore:v1/CommitRequest/mutations/mutation": mutation
+"/datastore:v1/Query": query
+"/datastore:v1/Query/limit": limit
+"/datastore:v1/Query/filter": filter
+"/datastore:v1/Query/endCursor": end_cursor
+"/datastore:v1/Query/distinctOn": distinct_on
+"/datastore:v1/Query/distinctOn/distinct_on": distinct_on
+"/datastore:v1/Query/offset": offset
+"/datastore:v1/Query/projection": projection
+"/datastore:v1/Query/projection/projection": projection
+"/datastore:v1/Query/order": order
+"/datastore:v1/Query/order/order": order
+"/datastore:v1/Query/startCursor": start_cursor
+"/datastore:v1/Query/kind": kind
+"/datastore:v1/Query/kind/kind": kind
+"/datastore:v1/RollbackRequest": rollback_request
+"/datastore:v1/RollbackRequest/transaction": transaction
+"/datastore:v1/EntityResult": entity_result
+"/datastore:v1/EntityResult/cursor": cursor
+"/datastore:v1/EntityResult/entity": entity
+"/datastore:v1/EntityResult/version": version
+"/datastore:v1/GqlQueryParameter": gql_query_parameter
+"/datastore:v1/GqlQueryParameter/value": value
+"/datastore:v1/GqlQueryParameter/cursor": cursor
+"/datastore:v1/ArrayValue": array_value
+"/datastore:v1/ArrayValue/values": values
+"/datastore:v1/ArrayValue/values/value": value
+"/datastore:v1/Filter": filter
+"/datastore:v1/Filter/propertyFilter": property_filter
+"/datastore:v1/Filter/compositeFilter": composite_filter
+"/datastore:v1/BeginTransactionResponse/transaction": transaction
+"/datastore:v1/PartitionId": partition_id
+"/datastore:v1/PartitionId/namespaceId": namespace_id
+"/datastore:v1/PartitionId/projectId": project_id
+"/datastore:v1/QueryResultBatch": query_result_batch
+"/datastore:v1/QueryResultBatch/snapshotVersion": snapshot_version
+"/datastore:v1/QueryResultBatch/endCursor": end_cursor
+"/datastore:v1/QueryResultBatch/skippedCursor": skipped_cursor
+"/datastore:v1/QueryResultBatch/entityResultType": entity_result_type
+"/datastore:v1/QueryResultBatch/moreResults": more_results
+"/datastore:v1/QueryResultBatch/entityResults": entity_results
+"/datastore:v1/QueryResultBatch/entityResults/entity_result": entity_result
+"/datastore:v1/QueryResultBatch/skippedResults": skipped_results
+"/datastore:v1/AllocateIdsRequest/keys": keys
+"/datastore:v1/AllocateIdsRequest/keys/key": key
+"/datastore:v1/KindExpression": kind_expression
+"/datastore:v1/KindExpression/name": name
+"/datastore:v1/PropertyFilter": property_filter
+"/datastore:v1/PropertyFilter/value": value
+"/datastore:v1/PropertyFilter/op": op
+"/datastore:v1/PropertyFilter/property": property
+"/datastore:v1/PathElement": path_element
+"/datastore:v1/PathElement/kind": kind
+"/datastore:v1/PathElement/id": id
+"/datastore:v1/PathElement/name": name
+"/datastore:v1/RollbackResponse": rollback_response
+"/datastore:v1/PropertyReference": property_reference
+"/datastore:v1/PropertyReference/name": name
+"/datastore:v1/Projection": projection
+"/datastore:v1/Projection/property": property
+"/datastore:v1/MutationResult": mutation_result
+"/datastore:v1/MutationResult/conflictDetected": conflict_detected
+"/datastore:v1/MutationResult/key": key
+"/datastore:v1/MutationResult/version": version
+"/datastore:v1/AllocateIdsResponse/keys": keys
+"/datastore:v1/AllocateIdsResponse/keys/key": key
+"/datastore:v1/LookupResponse": lookup_response
+"/datastore:v1/LookupResponse/found": found
+"/datastore:v1/LookupResponse/found/found": found
+"/datastore:v1/LookupResponse/missing": missing
+"/datastore:v1/LookupResponse/missing/missing": missing
+"/datastore:v1/LookupResponse/deferred": deferred
+"/datastore:v1/LookupResponse/deferred/deferred": deferred
+"/datastore:v1/Key": key
+"/datastore:v1/Key/partitionId": partition_id
+"/datastore:v1/Key/path": path
+"/datastore:v1/Key/path/path": path
+"/datastore:v1/RunQueryResponse": run_query_response
+"/datastore:v1/RunQueryResponse/batch": batch
+"/datastore:v1/RunQueryResponse/query": query
+"/datastore:v1/Entity": entity
+"/datastore:v1/Entity/properties": properties
+"/datastore:v1/Entity/properties/property": property
+"/datastore:v1/Entity/key": key
+"/datastore:v1/GqlQuery": gql_query
+"/datastore:v1/GqlQuery/queryString": query_string
+"/datastore:v1/GqlQuery/namedBindings": named_bindings
+"/datastore:v1/GqlQuery/namedBindings/named_binding": named_binding
+"/datastore:v1/GqlQuery/allowLiterals": allow_literals
+"/datastore:v1/GqlQuery/positionalBindings": positional_bindings
+"/datastore:v1/GqlQuery/positionalBindings/positional_binding": positional_binding
+"/datastore:v1/Mutation": mutation
+"/datastore:v1/Mutation/insert": insert
+"/datastore:v1/Mutation/update": update
+"/datastore:v1/Mutation/baseVersion": base_version
+"/datastore:v1/Mutation/upsert": upsert
+"/datastore:v1/Mutation/delete": delete
+"/datastore:v1/CommitResponse": commit_response
+"/datastore:v1/CommitResponse/mutationResults": mutation_results
+"/datastore:v1/CommitResponse/mutationResults/mutation_result": mutation_result
+"/datastore:v1/CommitResponse/indexUpdates": index_updates
+"/datastore:v1/RunQueryRequest": run_query_request
+"/datastore:v1/RunQueryRequest/partitionId": partition_id
+"/datastore:v1/RunQueryRequest/gqlQuery": gql_query
+"/datastore:v1/RunQueryRequest/readOptions": read_options
+"/datastore:v1/RunQueryRequest/query": query
+"/datastore:v1/LookupRequest": lookup_request
+"/datastore:v1/LookupRequest/readOptions": read_options
+"/datastore:v1/LookupRequest/keys": keys
+"/datastore:v1/LookupRequest/keys/key": key
+"/datastore:v1/LatLng": lat_lng
+"/datastore:v1/LatLng/latitude": latitude
+"/datastore:v1/LatLng/longitude": longitude
+"/datastore:v1/CompositeFilter": composite_filter
+"/datastore:v1/CompositeFilter/op": op
+"/datastore:v1/CompositeFilter/filters": filters
+"/datastore:v1/CompositeFilter/filters/filter": filter
"/deploymentmanager:v2/fields": fields
"/deploymentmanager:v2/key": key
"/deploymentmanager:v2/quotaUser": quota_user
@@ -15608,6 +15608,9 @@
"/deploymentmanager:v2/deploymentmanager.deployments.get": get_deployment
"/deploymentmanager:v2/deploymentmanager.deployments.get/deployment": deployment
"/deploymentmanager:v2/deploymentmanager.deployments.get/project": project
+"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy": get_deployment_iam_policy
+"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy/project": project
+"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy/resource": resource
"/deploymentmanager:v2/deploymentmanager.deployments.insert": insert_deployment
"/deploymentmanager:v2/deploymentmanager.deployments.insert/preview": preview
"/deploymentmanager:v2/deploymentmanager.deployments.insert/project": project
@@ -15622,9 +15625,15 @@
"/deploymentmanager:v2/deploymentmanager.deployments.patch/deployment": deployment
"/deploymentmanager:v2/deploymentmanager.deployments.patch/preview": preview
"/deploymentmanager:v2/deploymentmanager.deployments.patch/project": project
+"/deploymentmanager:v2/deploymentmanager.deployments.setIamPolicy": set_deployment_iam_policy
+"/deploymentmanager:v2/deploymentmanager.deployments.setIamPolicy/project": project
+"/deploymentmanager:v2/deploymentmanager.deployments.setIamPolicy/resource": resource
"/deploymentmanager:v2/deploymentmanager.deployments.stop": stop_deployment
"/deploymentmanager:v2/deploymentmanager.deployments.stop/deployment": deployment
"/deploymentmanager:v2/deploymentmanager.deployments.stop/project": project
+"/deploymentmanager:v2/deploymentmanager.deployments.testIamPermissions": test_deployment_iam_permissions
+"/deploymentmanager:v2/deploymentmanager.deployments.testIamPermissions/project": project
+"/deploymentmanager:v2/deploymentmanager.deployments.testIamPermissions/resource": resource
"/deploymentmanager:v2/deploymentmanager.deployments.update": update_deployment
"/deploymentmanager:v2/deploymentmanager.deployments.update/createPolicy": create_policy
"/deploymentmanager:v2/deploymentmanager.deployments.update/deletePolicy": delete_policy
@@ -15664,6 +15673,22 @@
"/deploymentmanager:v2/deploymentmanager.types.list/maxResults": max_results
"/deploymentmanager:v2/deploymentmanager.types.list/pageToken": page_token
"/deploymentmanager:v2/deploymentmanager.types.list/project": project
+"/deploymentmanager:v2/AuditConfig": audit_config
+"/deploymentmanager:v2/AuditConfig/exemptedMembers": exempted_members
+"/deploymentmanager:v2/AuditConfig/exemptedMembers/exempted_member": exempted_member
+"/deploymentmanager:v2/AuditConfig/service": service
+"/deploymentmanager:v2/Binding": binding
+"/deploymentmanager:v2/Binding/members": members
+"/deploymentmanager:v2/Binding/members/member": member
+"/deploymentmanager:v2/Binding/role": role
+"/deploymentmanager:v2/Condition": condition
+"/deploymentmanager:v2/Condition/iam": iam
+"/deploymentmanager:v2/Condition/op": op
+"/deploymentmanager:v2/Condition/svc": svc
+"/deploymentmanager:v2/Condition/sys": sys
+"/deploymentmanager:v2/Condition/value": value
+"/deploymentmanager:v2/Condition/values": values
+"/deploymentmanager:v2/Condition/values/value": value
"/deploymentmanager:v2/ConfigFile": config_file
"/deploymentmanager:v2/ConfigFile/content": content
"/deploymentmanager:v2/Deployment": deployment
@@ -15699,6 +15724,11 @@
"/deploymentmanager:v2/ImportFile": import_file
"/deploymentmanager:v2/ImportFile/content": content
"/deploymentmanager:v2/ImportFile/name": name
+"/deploymentmanager:v2/LogConfig": log_config
+"/deploymentmanager:v2/LogConfig/counter": counter
+"/deploymentmanager:v2/LogConfigCounterOptions": log_config_counter_options
+"/deploymentmanager:v2/LogConfigCounterOptions/field": field
+"/deploymentmanager:v2/LogConfigCounterOptions/metric": metric
"/deploymentmanager:v2/Manifest": manifest
"/deploymentmanager:v2/Manifest/config": config
"/deploymentmanager:v2/Manifest/expandedConfig": expanded_config
@@ -15751,7 +15781,18 @@
"/deploymentmanager:v2/OperationsListResponse/nextPageToken": next_page_token
"/deploymentmanager:v2/OperationsListResponse/operations": operations
"/deploymentmanager:v2/OperationsListResponse/operations/operation": operation
+"/deploymentmanager:v2/Policy": policy
+"/deploymentmanager:v2/Policy/auditConfigs": audit_configs
+"/deploymentmanager:v2/Policy/auditConfigs/audit_config": audit_config
+"/deploymentmanager:v2/Policy/bindings": bindings
+"/deploymentmanager:v2/Policy/bindings/binding": binding
+"/deploymentmanager:v2/Policy/etag": etag
+"/deploymentmanager:v2/Policy/iamOwned": iam_owned
+"/deploymentmanager:v2/Policy/rules": rules
+"/deploymentmanager:v2/Policy/rules/rule": rule
+"/deploymentmanager:v2/Policy/version": version
"/deploymentmanager:v2/Resource": resource
+"/deploymentmanager:v2/Resource/accessControl": access_control
"/deploymentmanager:v2/Resource/finalProperties": final_properties
"/deploymentmanager:v2/Resource/id": id
"/deploymentmanager:v2/Resource/insertTime": insert_time
@@ -15770,7 +15811,10 @@
"/deploymentmanager:v2/Resource/warnings/warning/data/datum/key": key
"/deploymentmanager:v2/Resource/warnings/warning/data/datum/value": value
"/deploymentmanager:v2/Resource/warnings/warning/message": message
+"/deploymentmanager:v2/ResourceAccessControl": resource_access_control
+"/deploymentmanager:v2/ResourceAccessControl/gcpIamPolicy": gcp_iam_policy
"/deploymentmanager:v2/ResourceUpdate": resource_update
+"/deploymentmanager:v2/ResourceUpdate/accessControl": access_control
"/deploymentmanager:v2/ResourceUpdate/error": error
"/deploymentmanager:v2/ResourceUpdate/error/errors": errors
"/deploymentmanager:v2/ResourceUpdate/error/errors/error": error
@@ -15793,10 +15837,29 @@
"/deploymentmanager:v2/ResourcesListResponse/nextPageToken": next_page_token
"/deploymentmanager:v2/ResourcesListResponse/resources": resources
"/deploymentmanager:v2/ResourcesListResponse/resources/resource": resource
+"/deploymentmanager:v2/Rule": rule
+"/deploymentmanager:v2/Rule/action": action
+"/deploymentmanager:v2/Rule/conditions": conditions
+"/deploymentmanager:v2/Rule/conditions/condition": condition
+"/deploymentmanager:v2/Rule/description": description
+"/deploymentmanager:v2/Rule/ins": ins
+"/deploymentmanager:v2/Rule/ins/in": in
+"/deploymentmanager:v2/Rule/logConfigs": log_configs
+"/deploymentmanager:v2/Rule/logConfigs/log_config": log_config
+"/deploymentmanager:v2/Rule/notIns": not_ins
+"/deploymentmanager:v2/Rule/notIns/not_in": not_in
+"/deploymentmanager:v2/Rule/permissions": permissions
+"/deploymentmanager:v2/Rule/permissions/permission": permission
"/deploymentmanager:v2/TargetConfiguration": target_configuration
"/deploymentmanager:v2/TargetConfiguration/config": config
"/deploymentmanager:v2/TargetConfiguration/imports": imports
"/deploymentmanager:v2/TargetConfiguration/imports/import": import
+"/deploymentmanager:v2/TestPermissionsRequest": test_permissions_request
+"/deploymentmanager:v2/TestPermissionsRequest/permissions": permissions
+"/deploymentmanager:v2/TestPermissionsRequest/permissions/permission": permission
+"/deploymentmanager:v2/TestPermissionsResponse": test_permissions_response
+"/deploymentmanager:v2/TestPermissionsResponse/permissions": permissions
+"/deploymentmanager:v2/TestPermissionsResponse/permissions/permission": permission
"/deploymentmanager:v2/Type": type
"/deploymentmanager:v2/Type/id": id
"/deploymentmanager:v2/Type/insertTime": insert_time
View
2 generated/google/apis/adsense_v1_4.rb
@@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
- REVISION = '20160910'
+ REVISION = '20160918'
# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
View
2 generated/google/apis/adsensehost_v4_1.rb
@@ -26,7 +26,7 @@ module Apis
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
- REVISION = '20160910'
+ REVISION = '20160918'
# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
View
2 generated/google/apis/cloudbuild_v1.rb
@@ -25,7 +25,7 @@ module Apis
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
- REVISION = '20160919'
+ REVISION = '20160920'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
View
38 generated/google/apis/datastore_v1.rb
@@ -0,0 +1,38 @@
+# Copyright 2015 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+require 'google/apis/datastore_v1/service.rb'
+require 'google/apis/datastore_v1/classes.rb'
+require 'google/apis/datastore_v1/representations.rb'
+
+module Google
+ module Apis
+ # Google Cloud Datastore API
+ #
+ # Accesses the schemaless NoSQL database to provide fully managed, robust,
+ # scalable storage for your application.
+ #
+ # @see https://cloud.google.com/datastore/
+ module DatastoreV1
+ VERSION = 'V1'
+ REVISION = '20160823'
+
+ # View and manage your data across Google Cloud Platform services
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+
+ # View and manage your Google Cloud Datastore data
+ AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
+ end
+ end
+end
View
1,284 generated/google/apis/datastore_v1/classes.rb
@@ -0,0 +1,1284 @@
+# Copyright 2015 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+require 'date'
+require 'google/apis/core/base_service'
+require 'google/apis/core/json_representation'
+require 'google/apis/core/hashable'
+require 'google/apis/errors'
+
+module Google
+ module Apis
+ module DatastoreV1
+
+ # A message that can hold any of the supported value types and associated
+ # metadata.
+ class Value
+ include Google::Apis::Core::Hashable
+
+ # A UTF-8 encoded string value.
+ # When `exclude_from_indexes` is false (it is indexed) , may have at most 1500
+ # bytes.
+ # Otherwise, may be set to at least 1,000,000 bytes.
+ # Corresponds to the JSON property `stringValue`
+ # @return [String]
+ attr_accessor :string_value
+
+ # An array value.
+ # Corresponds to the JSON property `arrayValue`
+ # @return [Google::Apis::DatastoreV1::ArrayValue]
+ attr_accessor :array_value
+
+ # A Datastore data object.
+ # An entity is limited to 1 megabyte when stored. That _roughly_
+ # corresponds to a limit of 1 megabyte for the serialized form of this
+ # message.
+ # Corresponds to the JSON property `entityValue`
+ # @return [Google::Apis::DatastoreV1::Entity]
+ attr_accessor :entity_value
+
+ # The `meaning` field should only be populated for backwards compatibility.
+ # Corresponds to the JSON property `meaning`
+ # @return [Fixnum]
+ attr_accessor :meaning
+
+ # An integer value.
+ # Corresponds to the JSON property `integerValue`
+ # @return [String]
+ attr_accessor :integer_value
+
+ # A double value.
+ # Corresponds to the JSON property `doubleValue`
+ # @return [Float]
+ attr_accessor :double_value
+
+ # A blob value.
+ # May have at most 1,000,000 bytes.
+ # When `exclude_from_indexes` is false, may have at most 1500 bytes.
+ # In JSON requests, must be base64-encoded.
+ # Corresponds to the JSON property `blobValue`
+ # @return [String]
+ attr_accessor :blob_value
+
+ # An object representing a latitude/longitude pair. This is expressed as a pair
+ # of doubles representing degrees latitude and degrees longitude. Unless
+ # specified otherwise, this must conform to the
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
+ # standard</a>. Values must be within normalized ranges.
+ # Example of normalization code in Python:
+ # def NormalizeLongitude(longitude):
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
+ # q, r = divmod(longitude, 360.0)
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
+ # return r - 360.0
+ # return r
+ # def NormalizeLatLng(latitude, longitude):
+ # """Wraps decimal degrees latitude and longitude to
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
+ # r = latitude % 360.0
+ # if r <= 90.0:
+ # return r, NormalizeLongitude(longitude)
+ # elif r >= 270.0:
+ # return r - 360, NormalizeLongitude(longitude)
+ # else:
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
+ # assert 180.0 == NormalizeLongitude(180.0)
+ # assert -180.0 == NormalizeLongitude(-180.0)
+ # assert -179.0 == NormalizeLongitude(181.0)
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
+ # Corresponds to the JSON property `geoPointValue`
+ # @return [Google::Apis::DatastoreV1::LatLng]
+ attr_accessor :geo_point_value
+
+ # A null value.
+ # Corresponds to the JSON property `nullValue`
+ # @return [String]
+ attr_accessor :null_value
+
+ # A boolean value.
+ # Corresponds to the JSON property `booleanValue`
+ # @return [Boolean]
+ attr_accessor :boolean_value
+ alias_method :boolean_value?, :boolean_value
+
+ # A unique identifier for an entity.
+ # If a key's partition ID or any of its path kinds or names are
+ # reserved/read-only, the key is reserved/read-only.
+ # A reserved/read-only key is forbidden in certain documented contexts.
+ # Corresponds to the JSON property `keyValue`
+ # @return [Google::Apis::DatastoreV1::Key]
+ attr_accessor :key_value
+
+ # If the value should be excluded from all indexes including those defined
+ # explicitly.
+ # Corresponds to the JSON property `excludeFromIndexes`
+ # @return [Boolean]
+ attr_accessor :exclude_from_indexes
+ alias_method :exclude_from_indexes?, :exclude_from_indexes
+
+ # A timestamp value.
+ # When stored in the Datastore, precise only to microseconds;
+ # any additional precision is rounded down.
+ # Corresponds to the JSON property `timestampValue`
+ # @return [String]
+ attr_accessor :timestamp_value
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @string_value = args[:string_value] if args.key?(:string_value)
+ @array_value = args[:array_value] if args.key?(:array_value)
+ @entity_value = args[:entity_value] if args.key?(:entity_value)
+ @meaning = args[:meaning] if args.key?(:meaning)
+ @integer_value = args[:integer_value] if args.key?(:integer_value)
+ @double_value = args[:double_value] if args.key?(:double_value)
+ @blob_value = args[:blob_value] if args.key?(:blob_value)
+ @geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
+ @null_value = args[:null_value] if args.key?(:null_value)
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
+ @key_value = args[:key_value] if args.key?(:key_value)
+ @exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
+ @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
+ end
+ end
+
+ # The options shared by read requests.
+ class ReadOptions
+ include Google::Apis::Core::Hashable
+
+ # The identifier of the transaction in which to read. A
+ # transaction identifier is returned by a call to
+ # Datastore.BeginTransaction.
+ # Corresponds to the JSON property `transaction`
+ # @return [String]
+ attr_accessor :transaction
+
+ # The non-transactional read consistency to use.
+ # Cannot be set to `STRONG` for global queries.
+ # Corresponds to the JSON property `readConsistency`
+ # @return [String]
+ attr_accessor :read_consistency
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @transaction = args[:transaction] if args.key?(:transaction)
+ @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
+ end
+ end
+
+ # The desired order for a specific property.
+ class PropertyOrder
+ include Google::Apis::Core::Hashable
+
+ # The direction to order by. Defaults to `ASCENDING`.
+ # Corresponds to the JSON property `direction`
+ # @return [String]
+ attr_accessor :direction
+
+ # A reference to a property relative to the kind expressions.
+ # Corresponds to the JSON property `property`
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
+ attr_accessor :property
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @direction = args[:direction] if args.key?(:direction)
+ @property = args[:property] if args.key?(:property)
+ end
+ end
+
+ # The request for Datastore.Commit.
+ class CommitRequest
+ include Google::Apis::Core::Hashable
+
+ # The identifier of the transaction associated with the commit. A
+ # transaction identifier is returned by a call to
+ # Datastore.BeginTransaction.
+ # Corresponds to the JSON property `transaction`
+ # @return [String]
+ attr_accessor :transaction
+
+ # The type of commit to perform. Defaults to `TRANSACTIONAL`.
+ # Corresponds to the JSON property `mode`
+ # @return [String]
+ attr_accessor :mode
+
+ # The mutations to perform.
+ # When mode is `TRANSACTIONAL`, mutations affecting a single entity are
+ # applied in order. The following sequences of mutations affecting a single
+ # entity are not permitted in a single `Commit` request:
+ # - `insert` followed by `insert`
+ # - `update` followed by `insert`
+ # - `upsert` followed by `insert`
+ # - `delete` followed by `update`
+ # When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
+ # entity.
+ # Corresponds to the JSON property `mutations`
+ # @return [Array<Google::Apis::DatastoreV1::Mutation>]
+ attr_accessor :mutations
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @transaction = args[:transaction] if args.key?(:transaction)
+ @mode = args[:mode] if args.key?(:mode)
+ @mutations = args[:mutations] if args.key?(:mutations)
+ end
+ end
+
+ # A query for entities.
+ class Query
+ include Google::Apis::Core::Hashable
+
+ # The maximum number of results to return. Applies after all other
+ # constraints. Optional.
+ # Unspecified is interpreted as no limit.
+ # Must be >= 0 if specified.
+ # Corresponds to the JSON property `limit`
+ # @return [Fixnum]
+ attr_accessor :limit
+
+ # A holder for any type of filter.
+ # Corresponds to the JSON property `filter`
+ # @return [Google::Apis::DatastoreV1::Filter]
+ attr_accessor :filter
+
+ # An ending point for the query results. Query cursors are
+ # returned in query result batches and
+ # [can only be used to limit the same query](https://cloud.google.com/datastore/
+ # docs/concepts/queries#cursors_limits_and_offsets).
+ # Corresponds to the JSON property `endCursor`
+ # @return [String]
+ attr_accessor :end_cursor
+
+ # The properties to make distinct. The query results will contain the first
+ # result for each distinct combination of values for the given properties
+ # (if empty, all results are returned).
+ # Corresponds to the JSON property `distinctOn`
+ # @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
+ attr_accessor :distinct_on
+
+ # The number of results to skip. Applies before limit, but after all other
+ # constraints. Optional. Must be >= 0 if specified.
+ # Corresponds to the JSON property `offset`
+ # @return [Fixnum]
+ attr_accessor :offset
+
+ # The projection to return. Defaults to returning all properties.
+ # Corresponds to the JSON property `projection`
+ # @return [Array<Google::Apis::DatastoreV1::Projection>]
+ attr_accessor :projection
+
+ # The order to apply to the query results (if empty, order is unspecified).
+ # Corresponds to the JSON property `order`
+ # @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
+ attr_accessor :order
+
+ # A starting point for the query results. Query cursors are
+ # returned in query result batches and
+ # [can only be used to continue the same query](https://cloud.google.com/
+ # datastore/docs/concepts/queries#cursors_limits_and_offsets).
+ # Corresponds to the JSON property `startCursor`
+ # @return [String]
+ attr_accessor :start_cursor
+
+ # The kinds to query (if empty, returns entities of all kinds).
+ # Currently at most 1 kind may be specified.
+ # Corresponds to the JSON property `kind`
+ # @return [Array<Google::Apis::DatastoreV1::KindExpression>]
+ attr_accessor :kind
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @limit = args[:limit] if args.key?(:limit)
+ @filter = args[:filter] if args.key?(:filter)
+ @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
+ @distinct_on = args[:distinct_on] if args.key?(:distinct_on)
+ @offset = args[:offset] if args.key?(:offset)
+ @projection = args[:projection] if args.key?(:projection)
+ @order = args[:order] if args.key?(:order)
+ @start_cursor = args[:start_cursor] if args.key?(:start_cursor)
+ @kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ # The request for Datastore.Rollback.
+ class RollbackRequest
+ include Google::Apis::Core::Hashable
+
+ # The transaction identifier, returned by a call to
+ # Datastore.BeginTransaction.
+ # Corresponds to the JSON property `transaction`
+ # @return [String]
+ attr_accessor :transaction
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @transaction = args[:transaction] if args.key?(:transaction)
+ end
+ end
+
+ # The result of fetching an entity from Datastore.
+ class EntityResult
+ include Google::Apis::Core::Hashable
+
+ # A cursor that points to the position after the result entity.
+ # Set only when the `EntityResult` is part of a `QueryResultBatch` message.
+ # Corresponds to the JSON property `cursor`
+ # @return [String]
+ attr_accessor :cursor
+
+ # A Datastore data object.
+ # An entity is limited to 1 megabyte when stored. That _roughly_
+ # corresponds to a limit of 1 megabyte for the serialized form of this
+ # message.
+ # Corresponds to the JSON property `entity`
+ # @return [Google::Apis::DatastoreV1::Entity]
+ attr_accessor :entity
+
+ # The version of the entity, a strictly positive number that monotonically
+ # increases with changes to the entity.
+ # This field is set for `FULL` entity
+ # results.
+ # For missing entities in `LookupResponse`, this
+ # is the version of the snapshot that was used to look up the entity, and it
+ # is always set except for eventually consistent reads.
+ # Corresponds to the JSON property `version`
+ # @return [String]
+ attr_accessor :version
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @cursor = args[:cursor] if args.key?(:cursor)
+ @entity = args[:entity] if args.key?(:entity)
+ @version = args[:version] if args.key?(:version)
+ end
+ end
+
+ # A binding parameter for a GQL query.
+ class GqlQueryParameter
+ include Google::Apis::Core::Hashable
+
+ # A message that can hold any of the supported value types and associated
+ # metadata.
+ # Corresponds to the JSON property `value`
+ # @return [Google::Apis::DatastoreV1::Value]
+ attr_accessor :value
+
+ # A query cursor. Query cursors are returned in query
+ # result batches.
+ # Corresponds to the JSON property `cursor`
+ # @return [String]
+ attr_accessor :cursor
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @value = args[:value] if args.key?(:value)
+ @cursor = args[:cursor] if args.key?(:cursor)
+ end
+ end
+
+ # An array value.
+ class ArrayValue
+ include Google::Apis::Core::Hashable
+
+ # Values in the array.
+ # The order of this array may not be preserved if it contains a mix of
+ # indexed and unindexed values.
+ # Corresponds to the JSON property `values`
+ # @return [Array<Google::Apis::DatastoreV1::Value>]
+ attr_accessor :values
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @values = args[:values] if args.key?(:values)
+ end
+ end
+
+ # A holder for any type of filter.
+ class Filter
+ include Google::Apis::Core::Hashable
+
+ # A filter on a specific property.
+ # Corresponds to the JSON property `propertyFilter`
+ # @return [Google::Apis::DatastoreV1::PropertyFilter]
+ attr_accessor :property_filter
+
+ # A filter that merges multiple other filters using the given operator.
+ # Corresponds to the JSON property `compositeFilter`
+ # @return [Google::Apis::DatastoreV1::CompositeFilter]
+ attr_accessor :composite_filter
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @property_filter = args[:property_filter] if args.key?(:property_filter)
+ @composite_filter = args[:composite_filter] if args.key?(:composite_filter)
+ end
+ end
+
+ # The response for Datastore.BeginTransaction.
+ class BeginTransactionResponse
+ include Google::Apis::Core::Hashable
+
+ # The transaction identifier (always present).
+ # Corresponds to the JSON property `transaction`
+ # @return [String]
+ attr_accessor :transaction
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @transaction = args[:transaction] if args.key?(:transaction)
+ end
+ end
+
+ # A partition ID identifies a grouping of entities. The grouping is always
+ # by project and namespace, however the namespace ID may be empty.
+ # A partition ID contains several dimensions:
+ # project ID and namespace ID.
+ # Partition dimensions:
+ # - May be `""`.
+ # - Must be valid UTF-8 bytes.
+ # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
+ # If the value of any dimension matches regex `__.*__`, the partition is
+ # reserved/read-only.
+ # A reserved/read-only partition ID is forbidden in certain documented
+ # contexts.
+ # Foreign partition IDs (in which the project ID does
+ # not match the context project ID ) are discouraged.
+ # Reads and writes of foreign partition IDs may fail if the project is not in an
+ # active state.
+ class PartitionId
+ include Google::Apis::Core::Hashable
+
+ # If not empty, the ID of the namespace to which the entities belong.
+ # Corresponds to the JSON property `namespaceId`
+ # @return [String]
+ attr_accessor :namespace_id
+
+ # The ID of the project to which the entities belong.
+ # Corresponds to the JSON property `projectId`
+ # @return [String]
+ attr_accessor :project_id
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @namespace_id = args[:namespace_id] if args.key?(:namespace_id)
+ @project_id = args[:project_id] if args.key?(:project_id)
+ end
+ end
+
+ # A batch of results produced by a query.
+ class QueryResultBatch
+ include Google::Apis::Core::Hashable
+
+ # The version number of the snapshot this batch was returned from.
+ # This applies to the range of results from the query's `start_cursor` (or
+ # the beginning of the query if no cursor was given) to this batch's
+ # `end_cursor` (not the query's `end_cursor`).
+ # In a single transaction, subsequent query result batches for the same query
+ # can have a greater snapshot version number. Each batch's snapshot version
+ # is valid for all preceding batches.
+ # Corresponds to the JSON property `snapshotVersion`
+ # @return [String]
+ attr_accessor :snapshot_version
+
+ # A cursor that points to the position after the last result in the batch.
+ # Corresponds to the JSON property `endCursor`
+ # @return [String]
+ attr_accessor :end_cursor
+
+ # A cursor that points to the position after the last skipped result.
+ # Will be set when `skipped_results` != 0.
+ # Corresponds to the JSON property `skippedCursor`
+ # @return [String]
+ attr_accessor :skipped_cursor
+
+ # The result type for every entity in `entity_results`.
+ # Corresponds to the JSON property `entityResultType`
+ # @return [String]
+ attr_accessor :entity_result_type
+
+ # The state of the query after the current batch.
+ # Corresponds to the JSON property `moreResults`
+ # @return [String]
+ attr_accessor :more_results
+
+ # The results for this batch.
+ # Corresponds to the JSON property `entityResults`
+ # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
+ attr_accessor :entity_results
+
+ # The number of results skipped, typically because of an offset.
+ # Corresponds to the JSON property `skippedResults`
+ # @return [Fixnum]
+ attr_accessor :skipped_results
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
+ @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
+ @skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
+ @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
+ @more_results = args[:more_results] if args.key?(:more_results)
+ @entity_results = args[:entity_results] if args.key?(:entity_results)
+ @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
+ end
+ end
+
+ # The request for Datastore.AllocateIds.
+ class AllocateIdsRequest
+ include Google::Apis::Core::Hashable
+
+ # A list of keys with incomplete key paths for which to allocate IDs.
+ # No key may be reserved/read-only.
+ # Corresponds to the JSON property `keys`
+ # @return [Array<Google::Apis::DatastoreV1::Key>]
+ attr_accessor :keys
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @keys = args[:keys] if args.key?(:keys)
+ end
+ end
+
+ # A representation of a kind.
+ class KindExpression
+ include Google::Apis::Core::Hashable
+
+ # The name of the kind.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @name = args[:name] if args.key?(:name)
+ end
+ end
+
+ # A filter on a specific property.
+ class PropertyFilter
+ include Google::Apis::Core::Hashable
+
+ # A message that can hold any of the supported value types and associated
+ # metadata.
+ # Corresponds to the JSON property `value`
+ # @return [Google::Apis::DatastoreV1::Value]
+ attr_accessor :value
+
+ # The operator to filter by.
+ # Corresponds to the JSON property `op`
+ # @return [String]
+ attr_accessor :op
+
+ # A reference to a property relative to the kind expressions.
+ # Corresponds to the JSON property `property`
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
+ attr_accessor :property
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @value = args[:value] if args.key?(:value)
+ @op = args[:op] if args.key?(:op)
+ @property = args[:property] if args.key?(:property)
+ end
+ end
+
+ # A (kind, ID/name) pair used to construct a key path.
+ # If either name or ID is set, the element is complete.
+ # If neither is set, the element is incomplete.
+ class PathElement
+ include Google::Apis::Core::Hashable
+
+ # The kind of the entity.
+ # A kind matching regex `__.*__` is reserved/read-only.
+ # A kind must not contain more than 1500 bytes when UTF-8 encoded.
+ # Cannot be `""`.
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The auto-allocated ID of the entity.
+ # Never equal to zero. Values less than zero are discouraged and may not
+ # be supported in the future.
+ # Corresponds to the JSON property `id`
+ # @return [String]
+ attr_accessor :id
+
+ # The name of the entity.
+ # A name matching regex `__.*__` is reserved/read-only.
+ # A name must not be more than 1500 bytes when UTF-8 encoded.
+ # Cannot be `""`.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @kind = args[:kind] if args.key?(:kind)
+ @id = args[:id] if args.key?(:id)
+ @name = args[:name] if args.key?(:name)
+ end
+ end
+
+ # The response for Datastore.Rollback.
+ # (an empty message).
+ class RollbackResponse
+ include Google::Apis::Core::Hashable
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ end
+ end
+
+ # A reference to a property relative to the kind expressions.
+ class PropertyReference
+ include Google::Apis::Core::Hashable
+
+ # The name of the property.
+ # If name includes "."s, it may be interpreted as a property name path.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @name = args[:name] if args.key?(:name)
+ end
+ end
+
+ # A representation of a property in a projection.
+ class Projection
+ include Google::Apis::Core::Hashable
+
+ # A reference to a property relative to the kind expressions.
+ # Corresponds to the JSON property `property`
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
+ attr_accessor :property
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @property = args[:property] if args.key?(:property)
+ end
+ end
+
+ # The result of applying a mutation.
+ class MutationResult
+ include Google::Apis::Core::Hashable
+
+ # Whether a conflict was detected for this mutation. Always false when a
+ # conflict detection strategy field is not set in the mutation.
+ # Corresponds to the JSON property `conflictDetected`
+ # @return [Boolean]
+ attr_accessor :conflict_detected
+ alias_method :conflict_detected?, :conflict_detected
+
+ # A unique identifier for an entity.
+ # If a key's partition ID or any of its path kinds or names are
+ # reserved/read-only, the key is reserved/read-only.
+ # A reserved/read-only key is forbidden in certain documented contexts.
+ # Corresponds to the JSON property `key`
+ # @return [Google::Apis::DatastoreV1::Key]
+ attr_accessor :key
+
+ # The version of the entity on the server after processing the mutation. If
+ # the mutation doesn't change anything on the server, then the version will
+ # be the version of the current entity or, if no entity is present, a version
+ # that is strictly greater than the version of any previous entity and less
+ # than the version of any possible future entity.
+ # Corresponds to the JSON property `version`
+ # @return [String]
+ attr_accessor :version
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
+ @key = args[:key] if args.key?(:key)
+ @version = args[:version] if args.key?(:version)
+ end
+ end
+
+ # The response for Datastore.AllocateIds.
+ class AllocateIdsResponse
+ include Google::Apis::Core::Hashable
+
+ # The keys specified in the request (in the same order), each with
+ # its key path completed with a newly allocated ID.
+ # Corresponds to the JSON property `keys`
+ # @return [Array<Google::Apis::DatastoreV1::Key>]
+ attr_accessor :keys
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @keys = args[:keys] if args.key?(:keys)
+ end
+ end
+
+ # The response for Datastore.Lookup.
+ class LookupResponse
+ include Google::Apis::Core::Hashable
+
+ # Entities found as `ResultType.FULL` entities. The order of results in this
+ # field is undefined and has no relation to the order of the keys in the
+ # input.
+ # Corresponds to the JSON property `found`
+ # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
+ attr_accessor :found
+
+ # Entities not found as `ResultType.KEY_ONLY` entities. The order of results
+ # in this field is undefined and has no relation to the order of the keys
+ # in the input.
+ # Corresponds to the JSON property `missing`
+ # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
+ attr_accessor :missing
+
+ # A list of keys that were not looked up due to resource constraints. The
+ # order of results in this field is undefined and has no relation to the
+ # order of the keys in the input.
+ # Corresponds to the JSON property `deferred`
+ # @return [Array<Google::Apis::DatastoreV1::Key>]
+ attr_accessor :deferred
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @found = args[:found] if args.key?(:found)
+ @missing = args[:missing] if args.key?(:missing)
+ @deferred = args[:deferred] if args.key?(:deferred)
+ end
+ end
+
+ # The request for Datastore.BeginTransaction.
+ class BeginTransactionRequest
+ include Google::Apis::Core::Hashable
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ end
+ end
+
+ # A unique identifier for an entity.
+ # If a key's partition ID or any of its path kinds or names are
+ # reserved/read-only, the key is reserved/read-only.
+ # A reserved/read-only key is forbidden in certain documented contexts.
+ class Key
+ include Google::Apis::Core::Hashable
+
+ # A partition ID identifies a grouping of entities. The grouping is always
+ # by project and namespace, however the namespace ID may be empty.
+ # A partition ID contains several dimensions:
+ # project ID and namespace ID.
+ # Partition dimensions:
+ # - May be `""`.
+ # - Must be valid UTF-8 bytes.
+ # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
+ # If the value of any dimension matches regex `__.*__`, the partition is
+ # reserved/read-only.
+ # A reserved/read-only partition ID is forbidden in certain documented
+ # contexts.
+ # Foreign partition IDs (in which the project ID does
+ # not match the context project ID ) are discouraged.
+ # Reads and writes of foreign partition IDs may fail if the project is not in an
+ # active state.
+ # Corresponds to the JSON property `partitionId`
+ # @return [Google::Apis::DatastoreV1::PartitionId]
+ attr_accessor :partition_id
+
+ # The entity path.
+ # An entity path consists of one or more elements composed of a kind and a
+ # string or numerical identifier, which identify entities. The first
+ # element identifies a _root entity_, the second element identifies
+ # a _child_ of the root entity, the third element identifies a child of the
+ # second entity, and so forth. The entities identified by all prefixes of
+ # the path are called the element's _ancestors_.
+ # An entity path is always fully complete: *all* of the entity's ancestors
+ # are required to be in the path along with the entity identifier itself.
+ # The only exception is that in some documented cases, the identifier in the
+ # last path element (for the entity) itself may be omitted. For example,
+ # the last path element of the key of `Mutation.insert` may have no
+ # identifier.
+ # A path can never be empty, and a path can have at most 100 elements.
+ # Corresponds to the JSON property `path`
+ # @return [Array<Google::Apis::DatastoreV1::PathElement>]
+ attr_accessor :path
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @partition_id = args[:partition_id] if args.key?(:partition_id)
+ @path = args[:path] if args.key?(:path)
+ end
+ end
+
+ # The response for Datastore.RunQuery.
+ class RunQueryResponse
+ include Google::Apis::Core::Hashable
+
+ # A batch of results produced by a query.
+ # Corresponds to the JSON property `batch`
+ # @return [Google::Apis::DatastoreV1::QueryResultBatch]
+ attr_accessor :batch
+
+ # A query for entities.
+ # Corresponds to the JSON property `query`
+ # @return [Google::Apis::DatastoreV1::Query]
+ attr_accessor :query
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @batch = args[:batch] if args.key?(:batch)
+ @query = args[:query] if args.key?(:query)
+ end
+ end
+
+ # A Datastore data object.
+ # An entity is limited to 1 megabyte when stored. That _roughly_
+ # corresponds to a limit of 1 megabyte for the serialized form of this
+ # message.
+ class Entity
+ include Google::Apis::Core::Hashable
+
+ # The entity's properties.
+ # The map's keys are property names.
+ # A property name matching regex `__.*__` is reserved.
+ # A reserved property name is forbidden in certain documented contexts.
+ # The name must not contain more than 500 characters.
+ # The name cannot be `""`.
+ # Corresponds to the JSON property `properties`
+ # @return [Hash<String,Google::Apis::DatastoreV1::Value>]
+ attr_accessor :properties
+
+ # A unique identifier for an entity.
+ # If a key's partition ID or any of its path kinds or names are
+ # reserved/read-only, the key is reserved/read-only.
+ # A reserved/read-only key is forbidden in certain documented contexts.
+ # Corresponds to the JSON property `key`
+ # @return [Google::Apis::DatastoreV1::Key]
+ attr_accessor :key
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @properties = args[:properties] if args.key?(:properties)
+ @key = args[:key] if args.key?(:key)
+ end
+ end
+
+ # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
+ class GqlQuery
+ include Google::Apis::Core::Hashable
+
+ # A string of the format described
+ # [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
+ # Corresponds to the JSON property `queryString`
+ # @return [String]
+ attr_accessor :query_string
+
+ # For each non-reserved named binding site in the query string, there must be
+ # a named parameter with that name, but not necessarily the inverse.
+ # Key must match regex `A-Za-z_$*`, must not match regex
+ # `__.*__`, and must not be `""`.
+ # Corresponds to the JSON property `namedBindings`
+ # @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
+ attr_accessor :named_bindings
+
+ # When false, the query string must not contain any literals and instead must
+ # bind all values. For example,
+ # `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
+ # `SELECT * FROM Kind WHERE a = @value` is.
+ # Corresponds to the JSON property `allowLiterals`
+ # @return [Boolean]
+ attr_accessor :allow_literals
+ alias_method :allow_literals?, :allow_literals
+
+ # Numbered binding site @1 references the first numbered parameter,
+ # effectively using 1-based indexing, rather than the usual 0.
+ # For each binding site numbered i in `query_string`, there must be an i-th
+ # numbered parameter. The inverse must also be true.
+ # Corresponds to the JSON property `positionalBindings`
+ # @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
+ attr_accessor :positional_bindings
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @query_string = args[:query_string] if args.key?(:query_string)
+ @named_bindings = args[:named_bindings] if args.key?(:named_bindings)
+ @allow_literals = args[:allow_literals] if args.key?(:allow_literals)
+ @positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
+ end
+ end
+
+ # A mutation to apply to an entity.
+ class Mutation
+ include Google::Apis::Core::Hashable
+
+ # A Datastore data object.
+ # An entity is limited to 1 megabyte when stored. That _roughly_
+ # corresponds to a limit of 1 megabyte for the serialized form of this
+ # message.
+ # Corresponds to the JSON property `insert`
+ # @return [Google::Apis::DatastoreV1::Entity]
+ attr_accessor :insert
+
+ # A Datastore data object.
+ # An entity is limited to 1 megabyte when stored. That _roughly_
+ # corresponds to a limit of 1 megabyte for the serialized form of this
+ # message.
+ # Corresponds to the JSON property `update`
+ # @return [Google::Apis::DatastoreV1::Entity]
+ attr_accessor :update
+
+ # The version of the entity that this mutation is being applied to. If this
+ # does not match the current version on the server, the mutation conflicts.
+ # Corresponds to the JSON property `baseVersion`
+ # @return [String]
+ attr_accessor :base_version
+
+ # A Datastore data object.
+ # An entity is limited to 1 megabyte when stored. That _roughly_
+ # corresponds to a limit of 1 megabyte for the serialized form of this
+ # message.
+ # Corresponds to the JSON property `upsert`
+ # @return [Google::Apis::DatastoreV1::Entity]
+ attr_accessor :upsert
+
+ # A unique identifier for an entity.
+ # If a key's partition ID or any of its path kinds or names are
+ # reserved/read-only, the key is reserved/read-only.
+ # A reserved/read-only key is forbidden in certain documented contexts.
+ # Corresponds to the JSON property `delete`
+ # @return [Google::Apis::DatastoreV1::Key]
+ attr_accessor :delete
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @insert = args[:insert] if args.key?(:insert)
+ @update = args[:update] if args.key?(:update)
+ @base_version = args[:base_version] if args.key?(:base_version)
+ @upsert = args[:upsert] if args.key?(:upsert)
+ @delete = args[:delete] if args.key?(:delete)
+ end
+ end
+
+ # The response for Datastore.Commit.
+ class CommitResponse
+ include Google::Apis::Core::Hashable
+
+ # The result of performing the mutations.
+ # The i-th mutation result corresponds to the i-th mutation in the request.
+ # Corresponds to the JSON property `mutationResults`
+ # @return [Array<Google::Apis::DatastoreV1::MutationResult>]
+ attr_accessor :mutation_results
+
+ # The number of index entries updated during the commit, or zero if none were
+ # updated.
+ # Corresponds to the JSON property `indexUpdates`
+ # @return [Fixnum]
+ attr_accessor :index_updates
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @mutation_results = args[:mutation_results] if args.key?(:mutation_results)
+ @index_updates = args[:index_updates] if args.key?(:index_updates)
+ end
+ end
+
+ # The request for Datastore.RunQuery.
+ class RunQueryRequest
+ include Google::Apis::Core::Hashable
+
+ # A partition ID identifies a grouping of entities. The grouping is always
+ # by project and namespace, however the namespace ID may be empty.
+ # A partition ID contains several dimensions:
+ # project ID and namespace ID.
+ # Partition dimensions:
+ # - May be `""`.
+ # - Must be valid UTF-8 bytes.
+ # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
+ # If the value of any dimension matches regex `__.*__`, the partition is
+ # reserved/read-only.
+ # A reserved/read-only partition ID is forbidden in certain documented
+ # contexts.
+ # Foreign partition IDs (in which the project ID does
+ # not match the context project ID ) are discouraged.
+ # Reads and writes of foreign partition IDs may fail if the project is not in an
+ # active state.
+ # Corresponds to the JSON property `partitionId`
+ # @return [Google::Apis::DatastoreV1::PartitionId]
+ attr_accessor :partition_id
+
+ # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
+ # Corresponds to the JSON property `gqlQuery`
+ # @return [Google::Apis::DatastoreV1::GqlQuery]
+ attr_accessor :gql_query
+
+ # The options shared by read requests.
+ # Corresponds to the JSON property `readOptions`
+ # @return [Google::Apis::DatastoreV1::ReadOptions]
+ attr_accessor :read_options
+
+ # A query for entities.
+ # Corresponds to the JSON property `query`
+ # @return [Google::Apis::DatastoreV1::Query]
+ attr_accessor :query
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @partition_id = args[:partition_id] if args.key?(:partition_id)
+ @gql_query = args[:gql_query] if args.key?(:gql_query)
+ @read_options = args[:read_options] if args.key?(:read_options)
+ @query = args[:query] if args.key?(:query)
+ end
+ end
+
+ # The request for Datastore.Lookup.
+ class LookupRequest
+ include Google::Apis::Core::Hashable
+
+ # The options shared by read requests.
+ # Corresponds to the JSON property `readOptions`
+ # @return [Google::Apis::DatastoreV1::ReadOptions]
+ attr_accessor :read_options
+
+ # Keys of entities to look up.
+ # Corresponds to the JSON property `keys`
+ # @return [Array<Google::Apis::DatastoreV1::Key>]
+ attr_accessor :keys
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @read_options = args[:read_options] if args.key?(:read_options)
+ @keys = args[:keys] if args.key?(:keys)
+ end
+ end
+
+ # An object representing a latitude/longitude pair. This is expressed as a pair
+ # of doubles representing degrees latitude and degrees longitude. Unless
+ # specified otherwise, this must conform to the
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
+ # standard</a>. Values must be within normalized ranges.
+ # Example of normalization code in Python:
+ # def NormalizeLongitude(longitude):
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
+ # q, r = divmod(longitude, 360.0)
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
+ # return r - 360.0
+ # return r
+ # def NormalizeLatLng(latitude, longitude):
+ # """Wraps decimal degrees latitude and longitude to
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
+ # r = latitude % 360.0
+ # if r <= 90.0:
+ # return r, NormalizeLongitude(longitude)
+ # elif r >= 270.0:
+ # return r - 360, NormalizeLongitude(longitude)
+ # else:
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
+ # assert 180.0 == NormalizeLongitude(180.0)
+ # assert -180.0 == NormalizeLongitude(-180.0)
+ # assert -179.0 == NormalizeLongitude(181.0)
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
+ class LatLng
+ include Google::Apis::Core::Hashable
+
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
+ # Corresponds to the JSON property `latitude`
+ # @return [Float]
+ attr_accessor :latitude
+
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
+ # Corresponds to the JSON property `longitude`
+ # @return [Float]
+ attr_accessor :longitude
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @latitude = args[:latitude] if args.key?(:latitude)
+ @longitude = args[:longitude] if args.key?(:longitude)
+ end
+ end
+
+ # A filter that merges multiple other filters using the given operator.
+ class CompositeFilter
+ include Google::Apis::Core::Hashable
+
+ # The operator for combining multiple filters.
+ # Corresponds to the JSON property `op`
+ # @return [String]
+ attr_accessor :op
+
+ # The list of filters to combine.
+ # Must contain at least one filter.
+ # Corresponds to the JSON property `filters`
+ # @return [Array<Google::Apis::DatastoreV1::Filter>]
+ attr_accessor :filters
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @op = args[:op] if args.key?(:op)
+ @filters = args[:filters] if args.key?(:filters)
+ end
+ end
+ end
+ end
+end
View
572 generated/google/apis/datastore_v1/representations.rb
@@ -0,0 +1,572 @@
+# Copyright 2015 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+require 'date'
+require 'google/apis/core/base_service'
+require 'google/apis/core/json_representation'
+require 'google/apis/core/hashable'
+require 'google/apis/errors'
+
+module Google
+ module Apis
+ module DatastoreV1
+
+ class Value
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class ReadOptions
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class PropertyOrder
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class CommitRequest
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Query
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class RollbackRequest
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class EntityResult
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GqlQueryParameter
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class ArrayValue
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Filter
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class BeginTransactionResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class PartitionId
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class QueryResultBatch
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class AllocateIdsRequest
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class KindExpression
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class PropertyFilter
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class PathElement
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class RollbackResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class PropertyReference
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Projection
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class MutationResult
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class AllocateIdsResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class LookupResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class BeginTransactionRequest
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Key
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class RunQueryResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Entity
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class GqlQuery
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Mutation
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class CommitResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class RunQueryRequest
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class LookupRequest
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class LatLng
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class CompositeFilter
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Value
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :string_value, as: 'stringValue'
+ property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
+
+ property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
+
+ property :meaning, as: 'meaning'
+ property :integer_value, as: 'integerValue'
+ property :double_value, as: 'doubleValue'
+ property :blob_value, :base64 => true, as: 'blobValue'
+ property :geo_point_value, as: 'geoPointValue', class: Google::Apis::DatastoreV1::LatLng, decorator: Google::Apis::DatastoreV1::LatLng::Representation
+
+ property :null_value, as: 'nullValue'
+ property :boolean_value, as: 'booleanValue'
+ property :key_value, as: 'keyValue', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
+
+ property :exclude_from_indexes, as: 'excludeFromIndexes'
+ property :timestamp_value, as: 'timestampValue'
+ end
+ end
+
+ class ReadOptions
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :transaction, :base64 => true, as: 'transaction'
+ property :read_consistency, as: 'readConsistency'
+ end
+ end
+
+ class PropertyOrder
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :direction, as: 'direction'
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
+
+ end
+ end
+
+ class CommitRequest
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :transaction, :base64 => true, as: 'transaction'
+ property :mode, as: 'mode'
+ collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
+
+ end
+ end
+
+ class Query
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :limit, as: 'limit'
+ property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
+
+ property :end_cursor, :base64 => true, as: 'endCursor'
+ collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
+
+ property :offset, as: 'offset'
+ collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
+
+ collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation
+
+ property :start_cursor, :base64 => true, as: 'startCursor'
+ collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
+
+ end
+ end
+
+ class RollbackRequest
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :transaction, :base64 => true, as: 'transaction'
+ end
+ end
+
+ class EntityResult
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :cursor, :base64 => true, as: 'cursor'
+ property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
+
+ property :version, as: 'version'
+ end
+ end
+
+ class GqlQueryParameter
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
+
+ property :cursor, :base64 => true, as: 'cursor'
+ end
+ end
+
+ class ArrayValue
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
+
+ end
+ end
+
+ class Filter
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
+
+ property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
+
+ end
+ end
+
+ class BeginTransactionResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :transaction, :base64 => true, as: 'transaction'
+ end
+ end
+
+ class PartitionId
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :namespace_id, as: 'namespaceId'
+ property :project_id, as: 'projectId'
+ end
+ end
+
+ class QueryResultBatch
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :snapshot_version, as: 'snapshotVersion'
+ property :end_cursor, :base64 => true, as: 'endCursor'
+ property :skipped_cursor, :base64 => true, as: 'skippedCursor'
+ property :entity_result_type, as: 'entityResultType'
+ property :more_results, as: 'moreResults'
+ collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
+
+ property :skipped_results, as: 'skippedResults'
+ end
+ end
+
+ class AllocateIdsRequest
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
+
+ end
+ end
+
+ class KindExpression
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :name, as: 'name'
+ end
+ end
+
+ class PropertyFilter
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
+
+ property :op, as: 'op'
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
+
+ end
+ end
+
+ class PathElement
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :kind, as: 'kind'
+ property :id, as: 'id'
+ property :name, as: 'name'
+ end
+ end
+
+ class RollbackResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ end
+ end
+
+ class PropertyReference
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :name, as: 'name'
+ end
+ end
+
+ class Projection
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
+
+ end
+ end
+
+ class MutationResult
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :conflict_detected, as: 'conflictDetected'
+ property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
+
+ property :version, as: 'version'
+ end
+ end
+
+ class AllocateIdsResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
+
+ end
+ end
+
+ class LookupResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
+
+ collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
+
+ collection :deferred, as: 'deferred', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
+
+ end
+ end
+
+ class BeginTransactionRequest
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ end
+ end
+
+ class Key
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
+
+ collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation
+
+ end
+ end
+
+ class RunQueryResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation
+
+ property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
+
+ end
+ end
+
+ class Entity
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ hash :properties, as: 'properties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
+
+ property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
+
+ end
+ end
+
+ class GqlQuery
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :query_string, as: 'queryString'
+ hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
+
+ property :allow_literals, as: 'allowLiterals'
+ collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
+
+ end
+ end
+
+ class Mutation
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
+
+ property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
+
+ property :base_version, as: 'baseVersion'
+ property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
+
+ property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
+
+ end
+ end
+
+ class CommitResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
+
+ property :index_updates, as: 'indexUpdates'
+ end
+ end
+