Autogenerated update (2018-05-01)

Delete:
- prediction_v1_2
- prediction_v1_3
- prediction_v1_4
- prediction_v1_5
- prediction_v1_6

Update:
- adexchangeseller_v1
- androidenterprise_v1
- androidmanagement_v1
- appstate_v1
- deploymentmanager_v2
- dns_v1
- dns_v2beta1
- games_management_v1management
- games_v1
- oauth2_v2
- pagespeedonline_v2
- pubsub_v1
- spectrum_v1explorer
- toolresults_v1beta3
This commit is contained in:
Google APIs 2018-05-01 00:36:47 +00:00
parent 3e5a08300d
commit 15c502073d
73 changed files with 7377 additions and 8539 deletions

View File

@ -63696,6 +63696,419 @@
"/searchconsole:v1/key": key
"/searchconsole:v1/quotaUser": quota_user
"/searchconsole:v1/searchconsole.urlTestingTools.mobileFriendlyTest.run": run_mobile_friendly_test
"/servicebroker:v1/GoogleIamV1__Binding": google_iam_v1__binding
"/servicebroker:v1/GoogleIamV1__Binding/members": members
"/servicebroker:v1/GoogleIamV1__Binding/members/member": member
"/servicebroker:v1/GoogleIamV1__Binding/role": role
"/servicebroker:v1/GoogleIamV1__Policy": google_iam_v1__policy
"/servicebroker:v1/GoogleIamV1__Policy/bindings": bindings
"/servicebroker:v1/GoogleIamV1__Policy/bindings/binding": binding
"/servicebroker:v1/GoogleIamV1__Policy/etag": etag
"/servicebroker:v1/GoogleIamV1__Policy/version": version
"/servicebroker:v1/GoogleIamV1__SetIamPolicyRequest": google_iam_v1__set_iam_policy_request
"/servicebroker:v1/GoogleIamV1__SetIamPolicyRequest/policy": policy
"/servicebroker:v1/GoogleIamV1__TestIamPermissionsRequest": google_iam_v1__test_iam_permissions_request
"/servicebroker:v1/GoogleIamV1__TestIamPermissionsRequest/permissions": permissions
"/servicebroker:v1/GoogleIamV1__TestIamPermissionsRequest/permissions/permission": permission
"/servicebroker:v1/GoogleIamV1__TestIamPermissionsResponse": google_iam_v1__test_iam_permissions_response
"/servicebroker:v1/GoogleIamV1__TestIamPermissionsResponse/permissions": permissions
"/servicebroker:v1/GoogleIamV1__TestIamPermissionsResponse/permissions/permission": permission
"/servicebroker:v1/fields": fields
"/servicebroker:v1/key": key
"/servicebroker:v1/quotaUser": quota_user
"/servicebroker:v1/servicebroker.getIamPolicy/resource": resource
"/servicebroker:v1/servicebroker.setIamPolicy/resource": resource
"/servicebroker:v1/servicebroker.testIamPermissions/resource": resource
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding": google_cloud_servicebroker_v1alpha1__binding
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding/bind_resource": bind_resource
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding/bind_resource/bind_resource": bind_resource
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding/binding_id": binding_id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding/createTime": create_time
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding/parameters": parameters
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding/parameters/parameter": parameter
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding/plan_id": plan_id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Binding/service_id": service_id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse": google_cloud_servicebroker_v1alpha1__create_binding_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/credentials": credentials
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/credentials/credential": credential
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/operation": operation
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/route_service_url": route_service_url
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/syslog_drain_url": syslog_drain_url
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/volume_mounts": volume_mounts
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/volume_mounts/volume_mount": volume_mount
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateBindingResponse/volume_mounts/volume_mount/volume_mount": volume_mount
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse": google_cloud_servicebroker_v1alpha1__create_service_instance_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse/operation": operation
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DashboardClient": google_cloud_servicebroker_v1alpha1__dashboard_client
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DashboardClient/id": id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DashboardClient/redirect_uri": redirect_uri
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DashboardClient/secret": secret
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse": google_cloud_servicebroker_v1alpha1__delete_binding_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse/operation": operation
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse": google_cloud_servicebroker_v1alpha1__delete_service_instance_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse/operation": operation
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse": google_cloud_servicebroker_v1alpha1__get_binding_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse/credentials": credentials
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse/credentials/credential": credential
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse/route_service_url": route_service_url
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse/syslog_drain_url": syslog_drain_url
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse/volume_mounts": volume_mounts
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse/volume_mounts/volume_mount": volume_mount
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__GetBindingResponse/volume_mounts/volume_mount/volume_mount": volume_mount
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListBindingsResponse": google_cloud_servicebroker_v1alpha1__list_bindings_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListBindingsResponse/bindings": bindings
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListBindingsResponse/bindings/binding": binding
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListBindingsResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListBindingsResponse/nextPageToken": next_page_token
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListCatalogResponse": google_cloud_servicebroker_v1alpha1__list_catalog_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListCatalogResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListCatalogResponse/nextPageToken": next_page_token
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListCatalogResponse/services": services
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListCatalogResponse/services/service": service
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse": google_cloud_servicebroker_v1alpha1__list_service_instances_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse/instances": instances
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse/instances/instance": instance
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse/nextPageToken": next_page_token
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Operation": google_cloud_servicebroker_v1alpha1__operation
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Operation/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Operation/state": state
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan": google_cloud_servicebroker_v1alpha1__plan
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/bindable": bindable
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/free": free
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/id": id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/metadata": metadata
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/metadata/metadatum": metadatum
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/name": name
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/schemas": schemas
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Plan/schemas/schema": schema
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service": google_cloud_servicebroker_v1alpha1__service
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/bindable": bindable
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/binding_retrievable": binding_retrievable
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/dashboard_client": dashboard_client
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/id": id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/instance_retrievable": instance_retrievable
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/metadata": metadata
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/metadata/metadatum": metadatum
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/name": name
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/plan_updateable": plan_updateable
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/plans": plans
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/plans/plan": plan
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/tags": tags
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__Service/tags/tag": tag
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance": google_cloud_servicebroker_v1alpha1__service_instance
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/context": context
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/context/context": context
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/createTime": create_time
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/instance_id": instance_id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/organization_guid": organization_guid
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/parameters": parameters
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/parameters/parameter": parameter
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/plan_id": plan_id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/previous_values": previous_values
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/previous_values/previous_value": previous_value
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/resourceName": resource_name
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/service_id": service_id
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__ServiceInstance/space_guid": space_guid
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse": google_cloud_servicebroker_v1alpha1__update_service_instance_response
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse/description": description
"/servicebroker:v1alpha1/GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse/operation": operation
"/servicebroker:v1alpha1/GoogleIamV1__Binding": google_iam_v1__binding
"/servicebroker:v1alpha1/GoogleIamV1__Binding/members": members
"/servicebroker:v1alpha1/GoogleIamV1__Binding/members/member": member
"/servicebroker:v1alpha1/GoogleIamV1__Binding/role": role
"/servicebroker:v1alpha1/GoogleIamV1__Policy": google_iam_v1__policy
"/servicebroker:v1alpha1/GoogleIamV1__Policy/bindings": bindings
"/servicebroker:v1alpha1/GoogleIamV1__Policy/bindings/binding": binding
"/servicebroker:v1alpha1/GoogleIamV1__Policy/etag": etag
"/servicebroker:v1alpha1/GoogleIamV1__Policy/version": version
"/servicebroker:v1alpha1/GoogleIamV1__SetIamPolicyRequest": google_iam_v1__set_iam_policy_request
"/servicebroker:v1alpha1/GoogleIamV1__SetIamPolicyRequest/policy": policy
"/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsRequest": google_iam_v1__test_iam_permissions_request
"/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsRequest/permissions": permissions
"/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsRequest/permissions/permission": permission
"/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsResponse": google_iam_v1__test_iam_permissions_response
"/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsResponse/permissions": permissions
"/servicebroker:v1alpha1/GoogleIamV1__TestIamPermissionsResponse/permissions/permission": permission
"/servicebroker:v1alpha1/fields": fields
"/servicebroker:v1alpha1/key": key
"/servicebroker:v1alpha1/quotaUser": quota_user
"/servicebroker:v1alpha1/servicebroker.getIamPolicy/resource": resource
"/servicebroker:v1alpha1/servicebroker.projects.brokers.instances.get": get_project_broker_instance
"/servicebroker:v1alpha1/servicebroker.projects.brokers.instances.get/name": name
"/servicebroker:v1alpha1/servicebroker.projects.brokers.instances.service_bindings.list": list_project_broker_instance_service_bindings
"/servicebroker:v1alpha1/servicebroker.projects.brokers.instances.service_bindings.list/pageSize": page_size
"/servicebroker:v1alpha1/servicebroker.projects.brokers.instances.service_bindings.list/pageToken": page_token
"/servicebroker:v1alpha1/servicebroker.projects.brokers.instances.service_bindings.list/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.service_instances.list": list_project_broker_service_instances
"/servicebroker:v1alpha1/servicebroker.projects.brokers.service_instances.list/pageSize": page_size
"/servicebroker:v1alpha1/servicebroker.projects.brokers.service_instances.list/pageToken": page_token
"/servicebroker:v1alpha1/servicebroker.projects.brokers.service_instances.list/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.catalog.list": list_project_broker_v2_catalogs
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.catalog.list/pageSize": page_size
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.catalog.list/pageToken": page_token
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.catalog.list/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.create": create_project_broker_v2_service_instance
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.create/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.create/instance_id": instance_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.create/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.delete": delete_project_broker_v2_service_instance
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.delete/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.delete/instanceId": instance_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.delete/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.delete/planId": plan_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.delete/serviceId": service_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.get": get_project_broker_v2_service_instance
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.get/name": name
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.getLast_operation": get_project_broker_v2_service_instance_last_operation
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/instanceId": instance_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/operation": operation
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/planId": plan_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/serviceId": service_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.patch": patch_project_broker_v2_service_instance
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.patch/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.patch/instance_id": instance_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.patch/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create": create_project_broker_v2_service_instance_service_binding
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create/binding_id": binding_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create/instanceId": instance_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete": delete_project_broker_v2_service_instance_service_binding
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/bindingId": binding_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/instanceId": instance_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/planId": plan_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/serviceId": service_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get": get_project_broker_v2_service_instance_service_binding
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get/bindingId": binding_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get/instanceId": instance_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get/planId": plan_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get/serviceId": service_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation": get_project_broker_v2_service_instance_service_binding_last_operation
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/bindingId": binding_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/instanceId": instance_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/operation": operation
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/parent": parent
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/planId": plan_id
"/servicebroker:v1alpha1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/serviceId": service_id
"/servicebroker:v1alpha1/servicebroker.setIamPolicy/resource": resource
"/servicebroker:v1alpha1/servicebroker.testIamPermissions/resource": resource
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding": google_cloud_servicebroker_v1beta1__binding
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding/bind_resource": bind_resource
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding/bind_resource/bind_resource": bind_resource
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding/binding_id": binding_id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding/createTime": create_time
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding/parameters": parameters
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding/parameters/parameter": parameter
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding/plan_id": plan_id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Binding/service_id": service_id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Broker": google_cloud_servicebroker_v1beta1__broker
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Broker/createTime": create_time
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Broker/name": name
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Broker/title": title
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Broker/url": url
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse": google_cloud_servicebroker_v1beta1__create_binding_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/credentials": credentials
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/credentials/credential": credential
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/operation": operation
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/route_service_url": route_service_url
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/syslog_drain_url": syslog_drain_url
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/volume_mounts": volume_mounts
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/volume_mounts/volume_mount": volume_mount
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateBindingResponse/volume_mounts/volume_mount/volume_mount": volume_mount
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse": google_cloud_servicebroker_v1beta1__create_service_instance_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse/operation": operation
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DashboardClient": google_cloud_servicebroker_v1beta1__dashboard_client
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DashboardClient/id": id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DashboardClient/redirect_uri": redirect_uri
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DashboardClient/secret": secret
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DeleteBindingResponse": google_cloud_servicebroker_v1beta1__delete_binding_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DeleteBindingResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DeleteBindingResponse/operation": operation
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse": google_cloud_servicebroker_v1beta1__delete_service_instance_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse/operation": operation
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse": google_cloud_servicebroker_v1beta1__get_binding_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse/credentials": credentials
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse/credentials/credential": credential
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse/route_service_url": route_service_url
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse/syslog_drain_url": syslog_drain_url
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse/volume_mounts": volume_mounts
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse/volume_mounts/volume_mount": volume_mount
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__GetBindingResponse/volume_mounts/volume_mount/volume_mount": volume_mount
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBindingsResponse": google_cloud_servicebroker_v1beta1__list_bindings_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBindingsResponse/bindings": bindings
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBindingsResponse/bindings/binding": binding
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBindingsResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBindingsResponse/nextPageToken": next_page_token
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBrokersResponse": google_cloud_servicebroker_v1beta1__list_brokers_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBrokersResponse/brokers": brokers
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBrokersResponse/brokers/broker": broker
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListBrokersResponse/nextPageToken": next_page_token
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListCatalogResponse": google_cloud_servicebroker_v1beta1__list_catalog_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListCatalogResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListCatalogResponse/nextPageToken": next_page_token
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListCatalogResponse/services": services
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListCatalogResponse/services/service": service
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse": google_cloud_servicebroker_v1beta1__list_service_instances_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse/instances": instances
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse/instances/instance": instance
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse/nextPageToken": next_page_token
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Operation": google_cloud_servicebroker_v1beta1__operation
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Operation/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Operation/state": state
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan": google_cloud_servicebroker_v1beta1__plan
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/bindable": bindable
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/free": free
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/id": id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/metadata": metadata
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/metadata/metadatum": metadatum
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/name": name
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/schemas": schemas
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Plan/schemas/schema": schema
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service": google_cloud_servicebroker_v1beta1__service
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/bindable": bindable
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/binding_retrievable": binding_retrievable
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/bindings_retrievable": bindings_retrievable
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/dashboard_client": dashboard_client
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/id": id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/instances_retrievable": instances_retrievable
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/metadata": metadata
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/metadata/metadatum": metadatum
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/name": name
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/plan_updateable": plan_updateable
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/plans": plans
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/plans/plan": plan
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/tags": tags
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__Service/tags/tag": tag
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance": google_cloud_servicebroker_v1beta1__service_instance
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/context": context
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/context/context": context
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/createTime": create_time
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/instance_id": instance_id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/organization_guid": organization_guid
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/parameters": parameters
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/parameters/parameter": parameter
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/plan_id": plan_id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/previous_values": previous_values
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/previous_values/previous_value": previous_value
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/resourceName": resource_name
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/service_id": service_id
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__ServiceInstance/space_guid": space_guid
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse": google_cloud_servicebroker_v1beta1__update_service_instance_response
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse/description": description
"/servicebroker:v1beta1/GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse/operation": operation
"/servicebroker:v1beta1/GoogleIamV1__Binding": google_iam_v1__binding
"/servicebroker:v1beta1/GoogleIamV1__Binding/members": members
"/servicebroker:v1beta1/GoogleIamV1__Binding/members/member": member
"/servicebroker:v1beta1/GoogleIamV1__Binding/role": role
"/servicebroker:v1beta1/GoogleIamV1__Policy": google_iam_v1__policy
"/servicebroker:v1beta1/GoogleIamV1__Policy/bindings": bindings
"/servicebroker:v1beta1/GoogleIamV1__Policy/bindings/binding": binding
"/servicebroker:v1beta1/GoogleIamV1__Policy/etag": etag
"/servicebroker:v1beta1/GoogleIamV1__Policy/version": version
"/servicebroker:v1beta1/GoogleIamV1__SetIamPolicyRequest": google_iam_v1__set_iam_policy_request
"/servicebroker:v1beta1/GoogleIamV1__SetIamPolicyRequest/policy": policy
"/servicebroker:v1beta1/GoogleIamV1__TestIamPermissionsRequest": google_iam_v1__test_iam_permissions_request
"/servicebroker:v1beta1/GoogleIamV1__TestIamPermissionsRequest/permissions": permissions
"/servicebroker:v1beta1/GoogleIamV1__TestIamPermissionsRequest/permissions/permission": permission
"/servicebroker:v1beta1/GoogleIamV1__TestIamPermissionsResponse": google_iam_v1__test_iam_permissions_response
"/servicebroker:v1beta1/GoogleIamV1__TestIamPermissionsResponse/permissions": permissions
"/servicebroker:v1beta1/GoogleIamV1__TestIamPermissionsResponse/permissions/permission": permission
"/servicebroker:v1beta1/GoogleProtobuf__Empty": google_protobuf__empty
"/servicebroker:v1beta1/fields": fields
"/servicebroker:v1beta1/key": key
"/servicebroker:v1beta1/quotaUser": quota_user
"/servicebroker:v1beta1/servicebroker.getIamPolicy/resource": resource
"/servicebroker:v1beta1/servicebroker.projects.brokers.create": create_project_broker
"/servicebroker:v1beta1/servicebroker.projects.brokers.create/parent": parent
"/servicebroker:v1beta1/servicebroker.projects.brokers.delete": delete_project_broker
"/servicebroker:v1beta1/servicebroker.projects.brokers.delete/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.getLast_operation": get_project_broker_instance_binding_last_operation
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.getLast_operation/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.getLast_operation/operation": operation
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.getLast_operation/planId": plan_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.getLast_operation/serviceId": service_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.list": list_project_broker_instance_bindings
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.list/pageSize": page_size
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.list/pageToken": page_token
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.bindings.list/parent": parent
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.get": get_project_broker_instance
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.get/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.getLast_operation": get_project_broker_instance_last_operation
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.getLast_operation/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.getLast_operation/operation": operation
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.getLast_operation/planId": plan_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.getLast_operation/serviceId": service_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.list": list_project_broker_instances
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.list/pageSize": page_size
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.list/pageToken": page_token
"/servicebroker:v1beta1/servicebroker.projects.brokers.instances.list/parent": parent
"/servicebroker:v1beta1/servicebroker.projects.brokers.list": list_project_brokers
"/servicebroker:v1beta1/servicebroker.projects.brokers.list/pageSize": page_size
"/servicebroker:v1beta1/servicebroker.projects.brokers.list/pageToken": page_token
"/servicebroker:v1beta1/servicebroker.projects.brokers.list/parent": parent
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.catalog.list": list_project_broker_v2_catalogs
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.catalog.list/pageSize": page_size
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.catalog.list/pageToken": page_token
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.catalog.list/parent": parent
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.create": create_project_broker_v2_service_instance
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.create/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.create/instance_id": instance_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.create/parent": parent
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.delete": delete_project_broker_v2_service_instance
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.delete/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.delete/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.delete/planId": plan_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.delete/serviceId": service_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.get": get_project_broker_v2_service_instance
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.get/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.getLast_operation": get_project_broker_v2_service_instance_last_operation
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/operation": operation
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/planId": plan_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.getLast_operation/serviceId": service_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.patch": patch_project_broker_v2_service_instance
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.patch/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.patch/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create": create_project_broker_v2_service_instance_service_binding
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create/binding_id": binding_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.create/parent": parent
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete": delete_project_broker_v2_service_instance_service_binding
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/acceptsIncomplete": accepts_incomplete
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/planId": plan_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.delete/serviceId": service_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get": get_project_broker_v2_service_instance_service_binding
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get/planId": plan_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.get/serviceId": service_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation": get_project_broker_v2_service_instance_service_binding_last_operation
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/name": name
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/operation": operation
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/planId": plan_id
"/servicebroker:v1beta1/servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation/serviceId": service_id
"/servicebroker:v1beta1/servicebroker.setIamPolicy/resource": resource
"/servicebroker:v1beta1/servicebroker.testIamPermissions/resource": resource
"/serviceconsumermanagement:v1/AddTenantProjectRequest": add_tenant_project_request
"/serviceconsumermanagement:v1/AddTenantProjectRequest/projectConfig": project_config
"/serviceconsumermanagement:v1/AddTenantProjectRequest/tag": tag

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/ad-exchange/seller-rest/
module AdexchangesellerV1
VERSION = 'V1'
REVISION = '20160805'
REVISION = '20171101'
# View and manage your Ad Exchange data
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -63,12 +61,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -101,12 +97,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -144,12 +138,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -191,12 +183,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -231,12 +221,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -275,12 +263,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -321,12 +307,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -381,12 +365,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [IO, String] download_dest
# IO stream or filename to receive content download
# @param [Google::Apis::RequestOptions] options
@ -439,12 +421,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -482,12 +462,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -524,12 +502,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -39,14 +39,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -82,12 +80,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -149,12 +145,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -194,12 +188,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -236,12 +228,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -290,12 +280,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -347,12 +335,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

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

View File

@ -106,7 +106,7 @@ module Google
end
end
# The Android Device Policy configuration of an enterprise.
# Deprecated and unused.
class AndroidDevicePolicyConfig
include Google::Apis::Core::Hashable
@ -116,9 +116,7 @@ module Google
# @return [String]
attr_accessor :kind
# The state of Android Device Policy. "enabled" indicates that Android Device
# Policy is enabled for the enterprise and the EMM is allowed to manage devices
# with Android Device Policy, while "disabled" means that it cannot.
# Deprecated and unused.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state

View File

@ -591,7 +591,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the Android Device Policy config resource.
# Deprecated and unused.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] fields
@ -918,10 +918,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the Android Device Policy config resource. EMM may use this method to
# enable or disable Android Device Policy support for the specified enterprise.
# To learn more about managing devices and apps with Android Device Policy, see
# the Android Management API.
# Deprecated and unused.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] android_device_policy_config_object

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20180417'
REVISION = '20180423'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'

View File

@ -743,9 +743,7 @@ module Google
class Enterprise
include Google::Apis::Core::Hashable
# Whether permissions for apps installed via policy are automatically approved.
# If enabled, you must display an app's permissions to the enterprise admin
# before setting the app to be installed in a policy.
# Deprecated and unused.
# Corresponds to the JSON property `appAutoApprovalEnabled`
# @return [Boolean]
attr_accessor :app_auto_approval_enabled

View File

@ -39,14 +39,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -62,12 +60,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -104,12 +100,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -144,12 +138,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

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

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -64,12 +62,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -104,12 +100,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -138,12 +132,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -173,12 +165,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -216,12 +206,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -39,14 +39,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -64,12 +62,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -100,12 +96,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -147,12 +141,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -201,12 +193,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -254,12 +244,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

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

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -62,12 +60,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -104,12 +100,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -143,12 +137,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -182,12 +174,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -230,12 +220,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -303,12 +291,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -360,12 +346,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -405,12 +389,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -447,12 +429,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -488,12 +468,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -544,12 +522,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -589,12 +565,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -662,12 +636,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -704,12 +676,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -774,12 +744,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -817,12 +785,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -890,12 +856,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -964,12 +928,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-dns
module DnsV1
VERSION = 'V1'
REVISION = '20180417'
REVISION = '20180427'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -568,7 +568,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Update an existing ManagedZone. This method supports patch semantics.
# Apply a partial update to an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-dns
module DnsV2beta1
VERSION = 'V2beta1'
REVISION = '20180417'
REVISION = '20180427'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -568,7 +568,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Update an existing ManagedZone. This method supports patch semantics.
# Apply a partial update to an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -58,12 +56,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -93,12 +89,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -128,12 +122,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -164,12 +156,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -197,12 +187,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -230,12 +218,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -265,12 +251,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -300,12 +284,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -334,12 +316,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -61,12 +59,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -97,12 +93,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -134,12 +128,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -175,12 +167,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -216,12 +206,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -257,12 +245,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -314,12 +300,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [IO, String] download_dest
# IO stream or filename to receive content download
# @param [Google::Apis::RequestOptions] options
@ -369,12 +353,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [IO, String] download_dest
# IO stream or filename to receive content download
# @param [Google::Apis::RequestOptions] options
@ -415,12 +397,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -451,12 +431,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -488,12 +466,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -529,12 +505,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -569,12 +543,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -610,12 +582,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -650,12 +620,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -686,12 +654,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -719,12 +685,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -771,12 +735,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [IO, String] upload_source
# IO stream or filename containing content to upload
# @param [String] content_type
@ -827,12 +789,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [IO, String] upload_source
# IO stream or filename containing content to upload
# @param [String] content_type
@ -873,12 +833,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -911,12 +869,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -953,12 +909,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -993,12 +947,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1047,12 +999,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [IO, String] upload_source
# IO stream or filename containing content to upload
# @param [String] content_type
@ -1102,12 +1052,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1143,12 +1091,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1179,12 +1125,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1221,12 +1165,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1261,12 +1203,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1297,12 +1237,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1334,12 +1272,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1375,12 +1311,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1415,12 +1349,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1456,12 +1388,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

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

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -61,12 +59,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -96,12 +92,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -129,12 +123,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -163,12 +155,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -197,12 +187,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -238,12 +226,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -278,12 +264,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -311,12 +295,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -343,12 +325,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -377,12 +357,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -411,12 +389,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -449,12 +425,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -487,12 +461,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -523,12 +495,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -556,12 +526,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -587,12 +555,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -621,12 +587,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -655,12 +619,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -689,12 +651,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -721,12 +681,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -755,12 +713,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -790,12 +746,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -823,12 +777,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -857,12 +809,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -891,12 +841,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -924,12 +872,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -956,12 +902,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

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

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -65,12 +63,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -109,12 +105,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -159,12 +153,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -199,12 +191,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -239,12 +229,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -275,12 +263,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -309,12 +295,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -351,12 +335,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -386,12 +368,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -419,12 +399,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -461,12 +439,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -504,12 +480,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -543,12 +517,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -582,12 +554,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -624,12 +594,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -659,12 +627,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -705,12 +671,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -748,12 +712,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -792,12 +754,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -830,12 +790,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -863,12 +821,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -904,12 +860,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -941,12 +895,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -988,12 +940,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1031,12 +981,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1068,12 +1016,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1108,12 +1054,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1145,12 +1089,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1180,12 +1122,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1220,12 +1160,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1262,12 +1200,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1306,12 +1242,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1347,12 +1281,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1406,12 +1338,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1459,12 +1389,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1519,12 +1447,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1573,12 +1499,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1612,12 +1536,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1651,12 +1573,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1697,12 +1617,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1735,12 +1653,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1769,12 +1685,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1808,12 +1722,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1845,12 +1757,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1883,12 +1793,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1925,12 +1833,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1964,12 +1870,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2003,12 +1907,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2049,12 +1951,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2102,12 +2002,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2150,12 +2048,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2204,12 +2100,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2246,12 +2140,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/accounts/docs/OAuth2
module Oauth2V2
VERSION = 'V2'
REVISION = '20170807'
REVISION = '20180208'
# 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

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -57,12 +55,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -92,12 +88,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -127,12 +121,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -159,12 +151,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/speed/docs/insights/v2/getting-started
module PagespeedonlineV2
VERSION = 'V2'
REVISION = '20180108'
REVISION = '20180315'
end
end
end

View File

@ -39,14 +39,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -73,12 +71,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -1,44 +0,0 @@
# 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/prediction_v1_2/service.rb'
require 'google/apis/prediction_v1_2/classes.rb'
require 'google/apis/prediction_v1_2/representations.rb'
module Google
module Apis
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @see https://developers.google.com/prediction/docs/developer-guide
module PredictionV1_2
VERSION = 'V1_2'
REVISION = '20160511'
# Manage your data and permissions in Google Cloud Storage
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
# View your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
# Manage your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
# Manage your data in the Google Prediction API
AUTH_PREDICTION = 'https://www.googleapis.com/auth/prediction'
end
end
end

View File

@ -1,237 +0,0 @@
# 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 PredictionV1_2
#
class Input
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `input`
# @return [Google::Apis::PredictionV1_2::Input::Input]
attr_accessor :input
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@input = args[:input] if args.key?(:input)
end
#
class Input
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
end
end
end
#
class Output
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `outputLabel`
# @return [String]
attr_accessor :output_label
#
# Corresponds to the JSON property `outputMulti`
# @return [Array<Google::Apis::PredictionV1_2::Output::OutputMulti>]
attr_accessor :output_multi
#
# Corresponds to the JSON property `outputValue`
# @return [Float]
attr_accessor :output_value
#
# 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)
@kind = args[:kind] if args.key?(:kind)
@output_label = args[:output_label] if args.key?(:output_label)
@output_multi = args[:output_multi] if args.key?(:output_multi)
@output_value = args[:output_value] if args.key?(:output_value)
@self_link = args[:self_link] if args.key?(:self_link)
end
#
class OutputMulti
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
#
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@score = args[:score] if args.key?(:score)
end
end
end
#
class Training
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `modelInfo`
# @return [Google::Apis::PredictionV1_2::Training::ModelInfo]
attr_accessor :model_info
#
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
#
# Corresponds to the JSON property `trainingStatus`
# @return [String]
attr_accessor :training_status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@model_info = args[:model_info] if args.key?(:model_info)
@self_link = args[:self_link] if args.key?(:self_link)
@training_status = args[:training_status] if args.key?(:training_status)
end
#
class ModelInfo
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `classificationAccuracy`
# @return [Float]
attr_accessor :classification_accuracy
#
# Corresponds to the JSON property `meanSquaredError`
# @return [Float]
attr_accessor :mean_squared_error
#
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@classification_accuracy = args[:classification_accuracy] if args.key?(:classification_accuracy)
@mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
@model_type = args[:model_type] if args.key?(:model_type)
end
end
end
#
class Update
include Google::Apis::Core::Hashable
# The true class label of this instance
# Corresponds to the JSON property `classLabel`
# @return [String]
attr_accessor :class_label
# The input features for this instance
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@class_label = args[:class_label] if args.key?(:class_label)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
end
end
end
end
end

View File

@ -1,133 +0,0 @@
# 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 PredictionV1_2
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Output
class Representation < Google::Apis::Core::JsonRepresentation; end
class OutputMulti
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Training
class Representation < Google::Apis::Core::JsonRepresentation; end
class ModelInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Update
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input, as: 'input', class: Google::Apis::PredictionV1_2::Input::Input, decorator: Google::Apis::PredictionV1_2::Input::Input::Representation
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
end
end
end
class Output
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :output_label, as: 'outputLabel'
collection :output_multi, as: 'outputMulti', class: Google::Apis::PredictionV1_2::Output::OutputMulti, decorator: Google::Apis::PredictionV1_2::Output::OutputMulti::Representation
property :output_value, as: 'outputValue'
property :self_link, as: 'selfLink'
end
class OutputMulti
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :score, as: 'score'
end
end
end
class Training
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :model_info, as: 'modelInfo', class: Google::Apis::PredictionV1_2::Training::ModelInfo, decorator: Google::Apis::PredictionV1_2::Training::ModelInfo::Representation
property :self_link, as: 'selfLink'
property :training_status, as: 'trainingStatus'
end
class ModelInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :classification_accuracy, as: 'classificationAccuracy'
property :mean_squared_error, as: 'meanSquaredError'
property :model_type, as: 'modelType'
end
end
end
class Update
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :class_label, as: 'classLabel'
collection :csv_instance, as: 'csvInstance'
end
end
end
end
end

View File

@ -1,287 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PredictionV1_2
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @example
# require 'google/apis/prediction_v1_2'
#
# Prediction = Google::Apis::PredictionV1_2 # Alias the module
# service = Prediction::PredictionService.new
#
# @see https://developers.google.com/prediction/docs/developer-guide
class PredictionService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'prediction/v1.2/')
@batch_path = 'batch/prediction/v1.2'
end
# Submit data and request a prediction
# @param [String] data
# mybucket%2Fmydata resource in Google Storage
# @param [Google::Apis::PredictionV1_2::Input] input_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::PredictionV1_2::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_2::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict(data, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'training/{data}/predict', options)
command.request_representation = Google::Apis::PredictionV1_2::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_2::Output::Representation
command.response_class = Google::Apis::PredictionV1_2::Output
command.params['data'] = data unless data.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
# Submit input and request an output against a hosted model
# @param [String] hosted_model_name
# The name of a hosted model
# @param [Google::Apis::PredictionV1_2::Input] input_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::PredictionV1_2::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_2::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_hostedmodel(hosted_model_name, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'hostedmodels/{hostedModelName}/predict', options)
command.request_representation = Google::Apis::PredictionV1_2::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_2::Output::Representation
command.response_class = Google::Apis::PredictionV1_2::Output
command.params['hostedModelName'] = hosted_model_name unless hosted_model_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?
execute_or_queue_command(command, &block)
end
# Delete a trained model
# @param [String] data
# mybucket/mydata resource in Google Storage
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_training(data, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'training/{data}', options)
command.params['data'] = data unless data.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
# Check training status of your model
# @param [String] data
# mybucket/mydata resource in Google Storage
# @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::PredictionV1_2::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_2::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_training(data, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'training/{data}', options)
command.response_representation = Google::Apis::PredictionV1_2::Training::Representation
command.response_class = Google::Apis::PredictionV1_2::Training
command.params['data'] = data unless data.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
# Begin training your model
# @param [Google::Apis::PredictionV1_2::Training] training_object
# @param [String] data
# mybucket/mydata resource in Google Storage
# @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::PredictionV1_2::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_2::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_training(training_object = nil, data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'training', options)
command.request_representation = Google::Apis::PredictionV1_2::Training::Representation
command.request_object = training_object
command.response_representation = Google::Apis::PredictionV1_2::Training::Representation
command.response_class = Google::Apis::PredictionV1_2::Training
command.query['data'] = data unless data.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
# Add new data to a trained model
# @param [String] data
# mybucket/mydata resource in Google Storage
# @param [Google::Apis::PredictionV1_2::Update] update_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::PredictionV1_2::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_2::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_training(data, update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'training/{data}', options)
command.request_representation = Google::Apis::PredictionV1_2::Update::Representation
command.request_object = update_object
command.response_representation = Google::Apis::PredictionV1_2::Training::Representation
command.response_class = Google::Apis::PredictionV1_2::Training
command.params['data'] = data unless data.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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -1,44 +0,0 @@
# 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/prediction_v1_3/service.rb'
require 'google/apis/prediction_v1_3/classes.rb'
require 'google/apis/prediction_v1_3/representations.rb'
module Google
module Apis
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @see https://developers.google.com/prediction/docs/developer-guide
module PredictionV1_3
VERSION = 'V1_3'
REVISION = '20160511'
# Manage your data and permissions in Google Cloud Storage
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
# View your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
# Manage your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
# Manage your data in the Google Prediction API
AUTH_PREDICTION = 'https://www.googleapis.com/auth/prediction'
end
end
end

View File

@ -1,286 +0,0 @@
# 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 PredictionV1_3
#
class Input
include Google::Apis::Core::Hashable
# Input to the model for a prediction
# Corresponds to the JSON property `input`
# @return [Google::Apis::PredictionV1_3::Input::Input]
attr_accessor :input
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@input = args[:input] if args.key?(:input)
end
# Input to the model for a prediction
class Input
include Google::Apis::Core::Hashable
# A list of input features, these can be strings or doubles.
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
end
end
end
#
class Output
include Google::Apis::Core::Hashable
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The most likely class [Categorical models only].
# Corresponds to the JSON property `outputLabel`
# @return [String]
attr_accessor :output_label
# A list of classes with their estimated probabilities [Categorical models only].
# Corresponds to the JSON property `outputMulti`
# @return [Array<Google::Apis::PredictionV1_3::Output::OutputMulti>]
attr_accessor :output_multi
# The estimated regression value [Regression models only].
# Corresponds to the JSON property `outputValue`
# @return [Float]
attr_accessor :output_value
# A URL to re-request 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)
@kind = args[:kind] if args.key?(:kind)
@output_label = args[:output_label] if args.key?(:output_label)
@output_multi = args[:output_multi] if args.key?(:output_multi)
@output_value = args[:output_value] if args.key?(:output_value)
@self_link = args[:self_link] if args.key?(:self_link)
end
#
class OutputMulti
include Google::Apis::Core::Hashable
# The class label.
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
# The probability of the class.
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@score = args[:score] if args.key?(:score)
end
end
end
#
class Training
include Google::Apis::Core::Hashable
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Model metadata.
# Corresponds to the JSON property `modelInfo`
# @return [Google::Apis::PredictionV1_3::Training::ModelInfo]
attr_accessor :model_info
# A URL to re-request this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# The current status of the training job. This can be one of following: RUNNING;
# DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
# Corresponds to the JSON property `trainingStatus`
# @return [String]
attr_accessor :training_status
# A class weighting function, which allows the importance weights for classes to
# be specified [Categorical models only].
# Corresponds to the JSON property `utility`
# @return [Array<Hash<String,Float>>]
attr_accessor :utility
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@model_info = args[:model_info] if args.key?(:model_info)
@self_link = args[:self_link] if args.key?(:self_link)
@training_status = args[:training_status] if args.key?(:training_status)
@utility = args[:utility] if args.key?(:utility)
end
# Model metadata.
class ModelInfo
include Google::Apis::Core::Hashable
# Estimated accuracy of model taking utility weights into account [Categorical
# models only].
# Corresponds to the JSON property `classWeightedAccuracy`
# @return [Float]
attr_accessor :class_weighted_accuracy
# A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate,
# based on the amount and quality of the training data, of the estimated
# prediction accuracy. You can use this is a guide to decide whether the results
# are accurate enough for your needs. This estimate will be more reliable if
# your real input data is similar to your training data [Categorical models only]
# .
# Corresponds to the JSON property `classificationAccuracy`
# @return [Float]
attr_accessor :classification_accuracy
# An output confusion matrix. This shows an estimate for how this model will do
# in predictions. This is first indexed by the true class label. For each true
# class label, this provides a pair `predicted_label, count`, where count is the
# estimated number of times the model will predict the predicted label given the
# true label. Will not output if more then 100 classes [Categorical models only].
# Corresponds to the JSON property `confusionMatrix`
# @return [Hash<String,Hash<String,Float>>]
attr_accessor :confusion_matrix
# A list of the confusion matrix row totals
# Corresponds to the JSON property `confusionMatrixRowTotals`
# @return [Hash<String,Float>]
attr_accessor :confusion_matrix_row_totals
# An estimated mean squared error. The can be used to measure the quality of the
# predicted model [Regression models only].
# Corresponds to the JSON property `meanSquaredError`
# @return [Float]
attr_accessor :mean_squared_error
# Type of predictive model (CLASSIFICATION or REGRESSION)
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
# Number of classes in the trained model [Categorical models only].
# Corresponds to the JSON property `numberClasses`
# @return [Fixnum]
attr_accessor :number_classes
# Number of valid data instances used in the trained model.
# Corresponds to the JSON property `numberInstances`
# @return [Fixnum]
attr_accessor :number_instances
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@class_weighted_accuracy = args[:class_weighted_accuracy] if args.key?(:class_weighted_accuracy)
@classification_accuracy = args[:classification_accuracy] if args.key?(:classification_accuracy)
@confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix)
@confusion_matrix_row_totals = args[:confusion_matrix_row_totals] if args.key?(:confusion_matrix_row_totals)
@mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
@model_type = args[:model_type] if args.key?(:model_type)
@number_classes = args[:number_classes] if args.key?(:number_classes)
@number_instances = args[:number_instances] if args.key?(:number_instances)
end
end
end
#
class Update
include Google::Apis::Core::Hashable
# The true class label of this instance
# Corresponds to the JSON property `classLabel`
# @return [String]
attr_accessor :class_label
# The input features for this instance
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@class_label = args[:class_label] if args.key?(:class_label)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
end
end
end
end
end

View File

@ -1,139 +0,0 @@
# 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 PredictionV1_3
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Output
class Representation < Google::Apis::Core::JsonRepresentation; end
class OutputMulti
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Training
class Representation < Google::Apis::Core::JsonRepresentation; end
class ModelInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Update
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input, as: 'input', class: Google::Apis::PredictionV1_3::Input::Input, decorator: Google::Apis::PredictionV1_3::Input::Input::Representation
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
end
end
end
class Output
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :output_label, as: 'outputLabel'
collection :output_multi, as: 'outputMulti', class: Google::Apis::PredictionV1_3::Output::OutputMulti, decorator: Google::Apis::PredictionV1_3::Output::OutputMulti::Representation
property :output_value, as: 'outputValue'
property :self_link, as: 'selfLink'
end
class OutputMulti
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :score, as: 'score'
end
end
end
class Training
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :model_info, as: 'modelInfo', class: Google::Apis::PredictionV1_3::Training::ModelInfo, decorator: Google::Apis::PredictionV1_3::Training::ModelInfo::Representation
property :self_link, as: 'selfLink'
property :training_status, as: 'trainingStatus'
collection :utility, as: 'utility'
end
class ModelInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :class_weighted_accuracy, as: 'classWeightedAccuracy'
property :classification_accuracy, as: 'classificationAccuracy'
hash :confusion_matrix, as: 'confusionMatrix'
hash :confusion_matrix_row_totals, as: 'confusionMatrixRowTotals'
property :mean_squared_error, as: 'meanSquaredError'
property :model_type, as: 'modelType'
property :number_classes, :numeric_string => true, as: 'numberClasses'
property :number_instances, :numeric_string => true, as: 'numberInstances'
end
end
end
class Update
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :class_label, as: 'classLabel'
collection :csv_instance, as: 'csvInstance'
end
end
end
end
end

View File

@ -1,284 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PredictionV1_3
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @example
# require 'google/apis/prediction_v1_3'
#
# Prediction = Google::Apis::PredictionV1_3 # Alias the module
# service = Prediction::PredictionService.new
#
# @see https://developers.google.com/prediction/docs/developer-guide
class PredictionService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'prediction/v1.3/')
@batch_path = 'batch/prediction/v1.3'
end
# Submit input and request an output against a hosted model
# @param [String] hosted_model_name
# The name of a hosted model
# @param [Google::Apis::PredictionV1_3::Input] input_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::PredictionV1_3::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_3::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_hostedmodel(hosted_model_name, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'hostedmodels/{hostedModelName}/predict', options)
command.request_representation = Google::Apis::PredictionV1_3::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_3::Output::Representation
command.response_class = Google::Apis::PredictionV1_3::Output
command.params['hostedModelName'] = hosted_model_name unless hosted_model_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?
execute_or_queue_command(command, &block)
end
# Delete a trained model
# @param [String] data
# mybucket/mydata resource in Google Storage
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_training(data, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'training/{data}', options)
command.params['data'] = data unless data.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
# Check training status of your model
# @param [String] data
# mybucket/mydata resource in Google Storage
# @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::PredictionV1_3::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_3::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_training(data, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'training/{data}', options)
command.response_representation = Google::Apis::PredictionV1_3::Training::Representation
command.response_class = Google::Apis::PredictionV1_3::Training
command.params['data'] = data unless data.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
# Begin training your model
# @param [Google::Apis::PredictionV1_3::Training] training_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::PredictionV1_3::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_3::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_training(training_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'training', options)
command.request_representation = Google::Apis::PredictionV1_3::Training::Representation
command.request_object = training_object
command.response_representation = Google::Apis::PredictionV1_3::Training::Representation
command.response_class = Google::Apis::PredictionV1_3::Training
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
# Submit data and request a prediction
# @param [String] data
# mybucket/mydata resource in Google Storage
# @param [Google::Apis::PredictionV1_3::Input] input_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::PredictionV1_3::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_3::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_training(data, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'training/{data}/predict', options)
command.request_representation = Google::Apis::PredictionV1_3::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_3::Output::Representation
command.response_class = Google::Apis::PredictionV1_3::Output
command.params['data'] = data unless data.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
# Add new data to a trained model
# @param [String] data
# mybucket/mydata resource in Google Storage
# @param [Google::Apis::PredictionV1_3::Update] update_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::PredictionV1_3::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_3::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_training(data, update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'training/{data}', options)
command.request_representation = Google::Apis::PredictionV1_3::Update::Representation
command.request_object = update_object
command.response_representation = Google::Apis::PredictionV1_3::Training::Representation
command.response_class = Google::Apis::PredictionV1_3::Training
command.params['data'] = data unless data.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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -1,44 +0,0 @@
# 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/prediction_v1_4/service.rb'
require 'google/apis/prediction_v1_4/classes.rb'
require 'google/apis/prediction_v1_4/representations.rb'
module Google
module Apis
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @see https://developers.google.com/prediction/docs/developer-guide
module PredictionV1_4
VERSION = 'V1_4'
REVISION = '20160511'
# Manage your data and permissions in Google Cloud Storage
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
# View your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
# Manage your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
# Manage your data in the Google Prediction API
AUTH_PREDICTION = 'https://www.googleapis.com/auth/prediction'
end
end
end

View File

@ -1,336 +0,0 @@
# 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 PredictionV1_4
#
class Input
include Google::Apis::Core::Hashable
# Input to the model for a prediction
# Corresponds to the JSON property `input`
# @return [Google::Apis::PredictionV1_4::Input::Input]
attr_accessor :input
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@input = args[:input] if args.key?(:input)
end
# Input to the model for a prediction
class Input
include Google::Apis::Core::Hashable
# A list of input features, these can be strings or doubles.
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
end
end
end
#
class Output
include Google::Apis::Core::Hashable
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The most likely class label [Categorical models only].
# Corresponds to the JSON property `outputLabel`
# @return [String]
attr_accessor :output_label
# A list of class labels with their estimated probabilities [Categorical models
# only].
# Corresponds to the JSON property `outputMulti`
# @return [Array<Google::Apis::PredictionV1_4::Output::OutputMulti>]
attr_accessor :output_multi
# The estimated regression value [Regression models only].
# Corresponds to the JSON property `outputValue`
# @return [Float]
attr_accessor :output_value
# A URL to re-request 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)
@kind = args[:kind] if args.key?(:kind)
@output_label = args[:output_label] if args.key?(:output_label)
@output_multi = args[:output_multi] if args.key?(:output_multi)
@output_value = args[:output_value] if args.key?(:output_value)
@self_link = args[:self_link] if args.key?(:self_link)
end
#
class OutputMulti
include Google::Apis::Core::Hashable
# The class label.
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
# The probability of the class label.
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@score = args[:score] if args.key?(:score)
end
end
end
#
class Training
include Google::Apis::Core::Hashable
# Data Analysis.
# Corresponds to the JSON property `dataAnalysis`
# @return [Google::Apis::PredictionV1_4::Training::DataAnalysis]
attr_accessor :data_analysis
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Model metadata.
# Corresponds to the JSON property `modelInfo`
# @return [Google::Apis::PredictionV1_4::Training::ModelInfo]
attr_accessor :model_info
# A URL to re-request this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# Google storage location of the training data file.
# Corresponds to the JSON property `storageDataLocation`
# @return [String]
attr_accessor :storage_data_location
# Google storage location of the preprocessing pmml file.
# Corresponds to the JSON property `storagePMMLLocation`
# @return [String]
attr_accessor :storage_pmml_location
# Google storage location of the pmml model file.
# Corresponds to the JSON property `storagePMMLModelLocation`
# @return [String]
attr_accessor :storage_pmml_model_location
# The current status of the training job. This can be one of following: RUNNING;
# DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
# Corresponds to the JSON property `trainingStatus`
# @return [String]
attr_accessor :training_status
# A class weighting function, which allows the importance weights for class
# labels to be specified [Categorical models only].
# Corresponds to the JSON property `utility`
# @return [Array<Hash<String,Float>>]
attr_accessor :utility
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data_analysis = args[:data_analysis] if args.key?(:data_analysis)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@model_info = args[:model_info] if args.key?(:model_info)
@self_link = args[:self_link] if args.key?(:self_link)
@storage_data_location = args[:storage_data_location] if args.key?(:storage_data_location)
@storage_pmml_location = args[:storage_pmml_location] if args.key?(:storage_pmml_location)
@storage_pmml_model_location = args[:storage_pmml_model_location] if args.key?(:storage_pmml_model_location)
@training_status = args[:training_status] if args.key?(:training_status)
@utility = args[:utility] if args.key?(:utility)
end
# Data Analysis.
class DataAnalysis
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `warnings`
# @return [Array<String>]
attr_accessor :warnings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@warnings = args[:warnings] if args.key?(:warnings)
end
end
# Model metadata.
class ModelInfo
include Google::Apis::Core::Hashable
# Estimated accuracy of model taking utility weights into account [Categorical
# models only].
# Corresponds to the JSON property `classWeightedAccuracy`
# @return [Float]
attr_accessor :class_weighted_accuracy
# A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate,
# based on the amount and quality of the training data, of the estimated
# prediction accuracy. You can use this is a guide to decide whether the results
# are accurate enough for your needs. This estimate will be more reliable if
# your real input data is similar to your training data [Categorical models only]
# .
# Corresponds to the JSON property `classificationAccuracy`
# @return [Float]
attr_accessor :classification_accuracy
# An output confusion matrix. This shows an estimate for how this model will do
# in predictions. This is first indexed by the true class label. For each true
# class label, this provides a pair `predicted_label, count`, where count is the
# estimated number of times the model will predict the predicted label given the
# true label. Will not output if more then 100 classes [Categorical models only].
# Corresponds to the JSON property `confusionMatrix`
# @return [Hash<String,Hash<String,Float>>]
attr_accessor :confusion_matrix
# A list of the confusion matrix row totals
# Corresponds to the JSON property `confusionMatrixRowTotals`
# @return [Hash<String,Float>]
attr_accessor :confusion_matrix_row_totals
# An estimated mean squared error. The can be used to measure the quality of the
# predicted model [Regression models only].
# Corresponds to the JSON property `meanSquaredError`
# @return [Float]
attr_accessor :mean_squared_error
# Type of predictive model (CLASSIFICATION or REGRESSION)
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
# Number of valid data instances used in the trained model.
# Corresponds to the JSON property `numberInstances`
# @return [Fixnum]
attr_accessor :number_instances
# Number of class labels in the trained model [Categorical models only].
# Corresponds to the JSON property `numberLabels`
# @return [Fixnum]
attr_accessor :number_labels
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@class_weighted_accuracy = args[:class_weighted_accuracy] if args.key?(:class_weighted_accuracy)
@classification_accuracy = args[:classification_accuracy] if args.key?(:classification_accuracy)
@confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix)
@confusion_matrix_row_totals = args[:confusion_matrix_row_totals] if args.key?(:confusion_matrix_row_totals)
@mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
@model_type = args[:model_type] if args.key?(:model_type)
@number_instances = args[:number_instances] if args.key?(:number_instances)
@number_labels = args[:number_labels] if args.key?(:number_labels)
end
end
end
#
class Update
include Google::Apis::Core::Hashable
# The input features for this instance
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
# The class label of this instance
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
# The generic output value - could be regression value or class label
# Corresponds to the JSON property `output`
# @return [String]
attr_accessor :output
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
@label = args[:label] if args.key?(:label)
@output = args[:output] if args.key?(:output)
end
end
end
end
end

View File

@ -1,158 +0,0 @@
# 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 PredictionV1_4
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Output
class Representation < Google::Apis::Core::JsonRepresentation; end
class OutputMulti
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Training
class Representation < Google::Apis::Core::JsonRepresentation; end
class DataAnalysis
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ModelInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Update
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input, as: 'input', class: Google::Apis::PredictionV1_4::Input::Input, decorator: Google::Apis::PredictionV1_4::Input::Input::Representation
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
end
end
end
class Output
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :output_label, as: 'outputLabel'
collection :output_multi, as: 'outputMulti', class: Google::Apis::PredictionV1_4::Output::OutputMulti, decorator: Google::Apis::PredictionV1_4::Output::OutputMulti::Representation
property :output_value, as: 'outputValue'
property :self_link, as: 'selfLink'
end
class OutputMulti
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :score, as: 'score'
end
end
end
class Training
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_analysis, as: 'dataAnalysis', class: Google::Apis::PredictionV1_4::Training::DataAnalysis, decorator: Google::Apis::PredictionV1_4::Training::DataAnalysis::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :model_info, as: 'modelInfo', class: Google::Apis::PredictionV1_4::Training::ModelInfo, decorator: Google::Apis::PredictionV1_4::Training::ModelInfo::Representation
property :self_link, as: 'selfLink'
property :storage_data_location, as: 'storageDataLocation'
property :storage_pmml_location, as: 'storagePMMLLocation'
property :storage_pmml_model_location, as: 'storagePMMLModelLocation'
property :training_status, as: 'trainingStatus'
collection :utility, as: 'utility'
end
class DataAnalysis
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :warnings, as: 'warnings'
end
end
class ModelInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :class_weighted_accuracy, as: 'classWeightedAccuracy'
property :classification_accuracy, as: 'classificationAccuracy'
hash :confusion_matrix, as: 'confusionMatrix'
hash :confusion_matrix_row_totals, as: 'confusionMatrixRowTotals'
property :mean_squared_error, as: 'meanSquaredError'
property :model_type, as: 'modelType'
property :number_instances, :numeric_string => true, as: 'numberInstances'
property :number_labels, :numeric_string => true, as: 'numberLabels'
end
end
end
class Update
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
property :label, as: 'label'
property :output, as: 'output'
end
end
end
end
end

View File

@ -1,284 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PredictionV1_4
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @example
# require 'google/apis/prediction_v1_4'
#
# Prediction = Google::Apis::PredictionV1_4 # Alias the module
# service = Prediction::PredictionService.new
#
# @see https://developers.google.com/prediction/docs/developer-guide
class PredictionService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'prediction/v1.4/')
@batch_path = 'batch/prediction/v1.4'
end
# Submit input and request an output against a hosted model.
# @param [String] hosted_model_name
# The name of a hosted model.
# @param [Google::Apis::PredictionV1_4::Input] input_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::PredictionV1_4::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_4::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_hostedmodel(hosted_model_name, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'hostedmodels/{hostedModelName}/predict', options)
command.request_representation = Google::Apis::PredictionV1_4::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_4::Output::Representation
command.response_class = Google::Apis::PredictionV1_4::Output
command.params['hostedModelName'] = hosted_model_name unless hosted_model_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?
execute_or_queue_command(command, &block)
end
# Delete a trained model.
# @param [String] id
# The unique name for the predictive model.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_trainedmodel(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'trainedmodels/{id}', options)
command.params['id'] = id unless id.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
# Check training status of your model.
# @param [String] id
# The unique name for the predictive model.
# @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::PredictionV1_4::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_4::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trainedmodel(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'trainedmodels/{id}', options)
command.response_representation = Google::Apis::PredictionV1_4::Training::Representation
command.response_class = Google::Apis::PredictionV1_4::Training
command.params['id'] = id unless id.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
# Begin training your model.
# @param [Google::Apis::PredictionV1_4::Training] training_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::PredictionV1_4::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_4::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trainedmodel(training_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'trainedmodels', options)
command.request_representation = Google::Apis::PredictionV1_4::Training::Representation
command.request_object = training_object
command.response_representation = Google::Apis::PredictionV1_4::Training::Representation
command.response_class = Google::Apis::PredictionV1_4::Training
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
# Submit model id and request a prediction
# @param [String] id
# The unique name for the predictive model.
# @param [Google::Apis::PredictionV1_4::Input] input_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::PredictionV1_4::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_4::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_trainedmodel(id, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'trainedmodels/{id}/predict', options)
command.request_representation = Google::Apis::PredictionV1_4::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_4::Output::Representation
command.response_class = Google::Apis::PredictionV1_4::Output
command.params['id'] = id unless id.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
# Add new data to a trained model.
# @param [String] id
# The unique name for the predictive model.
# @param [Google::Apis::PredictionV1_4::Update] update_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::PredictionV1_4::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_4::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trainedmodel(id, update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'trainedmodels/{id}', options)
command.request_representation = Google::Apis::PredictionV1_4::Update::Representation
command.request_object = update_object
command.response_representation = Google::Apis::PredictionV1_4::Training::Representation
command.response_class = Google::Apis::PredictionV1_4::Training
command.params['id'] = id unless id.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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -1,44 +0,0 @@
# 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/prediction_v1_5/service.rb'
require 'google/apis/prediction_v1_5/classes.rb'
require 'google/apis/prediction_v1_5/representations.rb'
module Google
module Apis
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @see https://developers.google.com/prediction/docs/developer-guide
module PredictionV1_5
VERSION = 'V1_5'
REVISION = '20160511'
# Manage your data and permissions in Google Cloud Storage
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
# View your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
# Manage your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
# Manage your data in the Google Prediction API
AUTH_PREDICTION = 'https://www.googleapis.com/auth/prediction'
end
end
end

View File

@ -1,708 +0,0 @@
# 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 PredictionV1_5
#
class Analyze
include Google::Apis::Core::Hashable
# Description of the data the model was trained on.
# Corresponds to the JSON property `dataDescription`
# @return [Google::Apis::PredictionV1_5::Analyze::DataDescription]
attr_accessor :data_description
# List of errors with the data.
# Corresponds to the JSON property `errors`
# @return [Array<Hash<String,String>>]
attr_accessor :errors
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Description of the model.
# Corresponds to the JSON property `modelDescription`
# @return [Google::Apis::PredictionV1_5::Analyze::ModelDescription]
attr_accessor :model_description
# A URL to re-request 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)
@data_description = args[:data_description] if args.key?(:data_description)
@errors = args[:errors] if args.key?(:errors)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@model_description = args[:model_description] if args.key?(:model_description)
@self_link = args[:self_link] if args.key?(:self_link)
end
# Description of the data the model was trained on.
class DataDescription
include Google::Apis::Core::Hashable
# Description of the input features in the data set.
# Corresponds to the JSON property `features`
# @return [Array<Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature>]
attr_accessor :features
# Description of the output value or label.
# Corresponds to the JSON property `outputFeature`
# @return [Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature]
attr_accessor :output_feature
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@features = args[:features] if args.key?(:features)
@output_feature = args[:output_feature] if args.key?(:output_feature)
end
#
class Feature
include Google::Apis::Core::Hashable
# Description of the categorical values of this feature.
# Corresponds to the JSON property `categorical`
# @return [Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical]
attr_accessor :categorical
# The feature index.
# Corresponds to the JSON property `index`
# @return [Fixnum]
attr_accessor :index
# Description of the numeric values of this feature.
# Corresponds to the JSON property `numeric`
# @return [Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Numeric]
attr_accessor :numeric
# Description of multiple-word text values of this feature.
# Corresponds to the JSON property `text`
# @return [Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Text]
attr_accessor :text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@categorical = args[:categorical] if args.key?(:categorical)
@index = args[:index] if args.key?(:index)
@numeric = args[:numeric] if args.key?(:numeric)
@text = args[:text] if args.key?(:text)
end
# Description of the categorical values of this feature.
class Categorical
include Google::Apis::Core::Hashable
# Number of categorical values for this feature in the data.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# List of all the categories for this feature in the data set.
# Corresponds to the JSON property `values`
# @return [Array<Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical::Value>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@values = args[:values] if args.key?(:values)
end
#
class Value
include Google::Apis::Core::Hashable
# Number of times this feature had this value.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# The category name.
# 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)
@count = args[:count] if args.key?(:count)
@value = args[:value] if args.key?(:value)
end
end
end
# Description of the numeric values of this feature.
class Numeric
include Google::Apis::Core::Hashable
# Number of numeric values for this feature in the data set.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Mean of the numeric values of this feature in the data set.
# Corresponds to the JSON property `mean`
# @return [Float]
attr_accessor :mean
# Variance of the numeric values of this feature in the data set.
# Corresponds to the JSON property `variance`
# @return [Float]
attr_accessor :variance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@mean = args[:mean] if args.key?(:mean)
@variance = args[:variance] if args.key?(:variance)
end
end
# Description of multiple-word text values of this feature.
class Text
include Google::Apis::Core::Hashable
# Number of multiple-word text values for this feature.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
end
end
end
# Description of the output value or label.
class OutputFeature
include Google::Apis::Core::Hashable
# Description of the output values in the data set.
# Corresponds to the JSON property `numeric`
# @return [Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature::Numeric]
attr_accessor :numeric
# Description of the output labels in the data set.
# Corresponds to the JSON property `text`
# @return [Array<Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature::Text>]
attr_accessor :text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@numeric = args[:numeric] if args.key?(:numeric)
@text = args[:text] if args.key?(:text)
end
# Description of the output values in the data set.
class Numeric
include Google::Apis::Core::Hashable
# Number of numeric output values in the data set.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Mean of the output values in the data set.
# Corresponds to the JSON property `mean`
# @return [Float]
attr_accessor :mean
# Variance of the output values in the data set.
# Corresponds to the JSON property `variance`
# @return [Float]
attr_accessor :variance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@mean = args[:mean] if args.key?(:mean)
@variance = args[:variance] if args.key?(:variance)
end
end
#
class Text
include Google::Apis::Core::Hashable
# Number of times the output label occurred in the data set.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# The output label.
# 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)
@count = args[:count] if args.key?(:count)
@value = args[:value] if args.key?(:value)
end
end
end
end
# Description of the model.
class ModelDescription
include Google::Apis::Core::Hashable
# An output confusion matrix. This shows an estimate for how this model will do
# in predictions. This is first indexed by the true class label. For each true
# class label, this provides a pair `predicted_label, count`, where count is the
# estimated number of times the model will predict the predicted label given the
# true label. Will not output if more then 100 classes [Categorical models only].
# Corresponds to the JSON property `confusionMatrix`
# @return [Hash<String,Hash<String,Float>>]
attr_accessor :confusion_matrix
# A list of the confusion matrix row totals
# Corresponds to the JSON property `confusionMatrixRowTotals`
# @return [Hash<String,Float>]
attr_accessor :confusion_matrix_row_totals
# Basic information about the model.
# Corresponds to the JSON property `modelinfo`
# @return [Google::Apis::PredictionV1_5::Training]
attr_accessor :modelinfo
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix)
@confusion_matrix_row_totals = args[:confusion_matrix_row_totals] if args.key?(:confusion_matrix_row_totals)
@modelinfo = args[:modelinfo] if args.key?(:modelinfo)
end
end
end
#
class Input
include Google::Apis::Core::Hashable
# Input to the model for a prediction
# Corresponds to the JSON property `input`
# @return [Google::Apis::PredictionV1_5::Input::Input]
attr_accessor :input
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@input = args[:input] if args.key?(:input)
end
# Input to the model for a prediction
class Input
include Google::Apis::Core::Hashable
# A list of input features, these can be strings or doubles.
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
end
end
end
#
class List
include Google::Apis::Core::Hashable
# List of models.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::PredictionV1_5::Training>]
attr_accessor :items
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Pagination token to fetch the next page, if one exists.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A URL to re-request 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)
@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 Output
include Google::Apis::Core::Hashable
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The most likely class label [Categorical models only].
# Corresponds to the JSON property `outputLabel`
# @return [String]
attr_accessor :output_label
# A list of class labels with their estimated probabilities [Categorical models
# only].
# Corresponds to the JSON property `outputMulti`
# @return [Array<Google::Apis::PredictionV1_5::Output::OutputMulti>]
attr_accessor :output_multi
# The estimated regression value [Regression models only].
# Corresponds to the JSON property `outputValue`
# @return [Float]
attr_accessor :output_value
# A URL to re-request 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)
@kind = args[:kind] if args.key?(:kind)
@output_label = args[:output_label] if args.key?(:output_label)
@output_multi = args[:output_multi] if args.key?(:output_multi)
@output_value = args[:output_value] if args.key?(:output_value)
@self_link = args[:self_link] if args.key?(:self_link)
end
#
class OutputMulti
include Google::Apis::Core::Hashable
# The class label.
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
# The probability of the class label.
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@score = args[:score] if args.key?(:score)
end
end
end
#
class Training
include Google::Apis::Core::Hashable
# Insert time of the model (as a RFC 3339 timestamp).
# Corresponds to the JSON property `created`
# @return [DateTime]
attr_accessor :created
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Model metadata.
# Corresponds to the JSON property `modelInfo`
# @return [Google::Apis::PredictionV1_5::Training::ModelInfo]
attr_accessor :model_info
# Type of predictive model (classification or regression)
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
# A URL to re-request this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# Google storage location of the training data file.
# Corresponds to the JSON property `storageDataLocation`
# @return [String]
attr_accessor :storage_data_location
# Google storage location of the preprocessing pmml file.
# Corresponds to the JSON property `storagePMMLLocation`
# @return [String]
attr_accessor :storage_pmml_location
# Google storage location of the pmml model file.
# Corresponds to the JSON property `storagePMMLModelLocation`
# @return [String]
attr_accessor :storage_pmml_model_location
# Training completion time (as a RFC 3339 timestamp).
# Corresponds to the JSON property `trainingComplete`
# @return [DateTime]
attr_accessor :training_complete
# Instances to train model on.
# Corresponds to the JSON property `trainingInstances`
# @return [Array<Google::Apis::PredictionV1_5::Training::TrainingInstance>]
attr_accessor :training_instances
# The current status of the training job. This can be one of following: RUNNING;
# DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
# Corresponds to the JSON property `trainingStatus`
# @return [String]
attr_accessor :training_status
# A class weighting function, which allows the importance weights for class
# labels to be specified [Categorical models only].
# Corresponds to the JSON property `utility`
# @return [Array<Hash<String,Float>>]
attr_accessor :utility
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@created = args[:created] if args.key?(:created)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@model_info = args[:model_info] if args.key?(:model_info)
@model_type = args[:model_type] if args.key?(:model_type)
@self_link = args[:self_link] if args.key?(:self_link)
@storage_data_location = args[:storage_data_location] if args.key?(:storage_data_location)
@storage_pmml_location = args[:storage_pmml_location] if args.key?(:storage_pmml_location)
@storage_pmml_model_location = args[:storage_pmml_model_location] if args.key?(:storage_pmml_model_location)
@training_complete = args[:training_complete] if args.key?(:training_complete)
@training_instances = args[:training_instances] if args.key?(:training_instances)
@training_status = args[:training_status] if args.key?(:training_status)
@utility = args[:utility] if args.key?(:utility)
end
# Model metadata.
class ModelInfo
include Google::Apis::Core::Hashable
# Estimated accuracy of model taking utility weights into account [Categorical
# models only].
# Corresponds to the JSON property `classWeightedAccuracy`
# @return [Float]
attr_accessor :class_weighted_accuracy
# A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate,
# based on the amount and quality of the training data, of the estimated
# prediction accuracy. You can use this is a guide to decide whether the results
# are accurate enough for your needs. This estimate will be more reliable if
# your real input data is similar to your training data [Categorical models only]
# .
# Corresponds to the JSON property `classificationAccuracy`
# @return [Float]
attr_accessor :classification_accuracy
# An estimated mean squared error. The can be used to measure the quality of the
# predicted model [Regression models only].
# Corresponds to the JSON property `meanSquaredError`
# @return [Float]
attr_accessor :mean_squared_error
# Type of predictive model (CLASSIFICATION or REGRESSION)
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
# Number of valid data instances used in the trained model.
# Corresponds to the JSON property `numberInstances`
# @return [Fixnum]
attr_accessor :number_instances
# Number of class labels in the trained model [Categorical models only].
# Corresponds to the JSON property `numberLabels`
# @return [Fixnum]
attr_accessor :number_labels
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@class_weighted_accuracy = args[:class_weighted_accuracy] if args.key?(:class_weighted_accuracy)
@classification_accuracy = args[:classification_accuracy] if args.key?(:classification_accuracy)
@mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
@model_type = args[:model_type] if args.key?(:model_type)
@number_instances = args[:number_instances] if args.key?(:number_instances)
@number_labels = args[:number_labels] if args.key?(:number_labels)
end
end
#
class TrainingInstance
include Google::Apis::Core::Hashable
# The input features for this instance
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
# The generic output value - could be regression or class label
# Corresponds to the JSON property `output`
# @return [String]
attr_accessor :output
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
@output = args[:output] if args.key?(:output)
end
end
end
#
class Update
include Google::Apis::Core::Hashable
# The input features for this instance
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
# The class label of this instance
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
# The generic output value - could be regression value or class label
# Corresponds to the JSON property `output`
# @return [String]
attr_accessor :output
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
@label = args[:label] if args.key?(:label)
@output = args[:output] if args.key?(:output)
end
end
end
end
end

View File

@ -1,352 +0,0 @@
# 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 PredictionV1_5
class Analyze
class Representation < Google::Apis::Core::JsonRepresentation; end
class DataDescription
class Representation < Google::Apis::Core::JsonRepresentation; end
class Feature
class Representation < Google::Apis::Core::JsonRepresentation; end
class Categorical
class Representation < Google::Apis::Core::JsonRepresentation; end
class Value
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Numeric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Text
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class OutputFeature
class Representation < Google::Apis::Core::JsonRepresentation; end
class Numeric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Text
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 ModelDescription
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class List
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Output
class Representation < Google::Apis::Core::JsonRepresentation; end
class OutputMulti
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Training
class Representation < Google::Apis::Core::JsonRepresentation; end
class ModelInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TrainingInstance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Update
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Analyze
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_description, as: 'dataDescription', class: Google::Apis::PredictionV1_5::Analyze::DataDescription, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::Representation
collection :errors, as: 'errors'
property :id, as: 'id'
property :kind, as: 'kind'
property :model_description, as: 'modelDescription', class: Google::Apis::PredictionV1_5::Analyze::ModelDescription, decorator: Google::Apis::PredictionV1_5::Analyze::ModelDescription::Representation
property :self_link, as: 'selfLink'
end
class DataDescription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :features, as: 'features', class: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Representation
property :output_feature, as: 'outputFeature', class: Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature::Representation
end
class Feature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :categorical, as: 'categorical', class: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical::Representation
property :index, :numeric_string => true, as: 'index'
property :numeric, as: 'numeric', class: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Numeric, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Numeric::Representation
property :text, as: 'text', class: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Text, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Text::Representation
end
class Categorical
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
collection :values, as: 'values', class: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical::Value, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature::Categorical::Value::Representation
end
class Value
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :value, as: 'value'
end
end
end
class Numeric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :mean, as: 'mean'
property :variance, as: 'variance'
end
end
class Text
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
end
end
end
class OutputFeature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :numeric, as: 'numeric', class: Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature::Numeric, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature::Numeric::Representation
collection :text, as: 'text', class: Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature::Text, decorator: Google::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature::Text::Representation
end
class Numeric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :mean, as: 'mean'
property :variance, as: 'variance'
end
end
class Text
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :value, as: 'value'
end
end
end
end
class ModelDescription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :confusion_matrix, as: 'confusionMatrix'
hash :confusion_matrix_row_totals, as: 'confusionMatrixRowTotals'
property :modelinfo, as: 'modelinfo', class: Google::Apis::PredictionV1_5::Training, decorator: Google::Apis::PredictionV1_5::Training::Representation
end
end
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input, as: 'input', class: Google::Apis::PredictionV1_5::Input::Input, decorator: Google::Apis::PredictionV1_5::Input::Input::Representation
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
end
end
end
class List
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::PredictionV1_5::Training, decorator: Google::Apis::PredictionV1_5::Training::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class Output
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :output_label, as: 'outputLabel'
collection :output_multi, as: 'outputMulti', class: Google::Apis::PredictionV1_5::Output::OutputMulti, decorator: Google::Apis::PredictionV1_5::Output::OutputMulti::Representation
property :output_value, as: 'outputValue'
property :self_link, as: 'selfLink'
end
class OutputMulti
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :score, as: 'score'
end
end
end
class Training
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :created, as: 'created', type: DateTime
property :id, as: 'id'
property :kind, as: 'kind'
property :model_info, as: 'modelInfo', class: Google::Apis::PredictionV1_5::Training::ModelInfo, decorator: Google::Apis::PredictionV1_5::Training::ModelInfo::Representation
property :model_type, as: 'modelType'
property :self_link, as: 'selfLink'
property :storage_data_location, as: 'storageDataLocation'
property :storage_pmml_location, as: 'storagePMMLLocation'
property :storage_pmml_model_location, as: 'storagePMMLModelLocation'
property :training_complete, as: 'trainingComplete', type: DateTime
collection :training_instances, as: 'trainingInstances', class: Google::Apis::PredictionV1_5::Training::TrainingInstance, decorator: Google::Apis::PredictionV1_5::Training::TrainingInstance::Representation
property :training_status, as: 'trainingStatus'
collection :utility, as: 'utility'
end
class ModelInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :class_weighted_accuracy, as: 'classWeightedAccuracy'
property :classification_accuracy, as: 'classificationAccuracy'
property :mean_squared_error, as: 'meanSquaredError'
property :model_type, as: 'modelType'
property :number_instances, :numeric_string => true, as: 'numberInstances'
property :number_labels, :numeric_string => true, as: 'numberLabels'
end
end
class TrainingInstance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
property :output, as: 'output'
end
end
end
class Update
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
property :label, as: 'label'
property :output, as: 'output'
end
end
end
end
end

View File

@ -1,357 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PredictionV1_5
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @example
# require 'google/apis/prediction_v1_5'
#
# Prediction = Google::Apis::PredictionV1_5 # Alias the module
# service = Prediction::PredictionService.new
#
# @see https://developers.google.com/prediction/docs/developer-guide
class PredictionService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'prediction/v1.5/')
@batch_path = 'batch/prediction/v1.5'
end
# Submit input and request an output against a hosted model.
# @param [String] hosted_model_name
# The name of a hosted model.
# @param [Google::Apis::PredictionV1_5::Input] input_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::PredictionV1_5::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_5::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_hostedmodel(hosted_model_name, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'hostedmodels/{hostedModelName}/predict', options)
command.request_representation = Google::Apis::PredictionV1_5::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_5::Output::Representation
command.response_class = Google::Apis::PredictionV1_5::Output
command.params['hostedModelName'] = hosted_model_name unless hosted_model_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?
execute_or_queue_command(command, &block)
end
# Get analysis of the model and the data the model was trained on.
# @param [String] id
# The unique name for the predictive model.
# @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::PredictionV1_5::Analyze] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_5::Analyze]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def analyze_trainedmodel(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'trainedmodels/{id}/analyze', options)
command.response_representation = Google::Apis::PredictionV1_5::Analyze::Representation
command.response_class = Google::Apis::PredictionV1_5::Analyze
command.params['id'] = id unless id.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
# Delete a trained model.
# @param [String] id
# The unique name for the predictive model.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_trainedmodel(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'trainedmodels/{id}', options)
command.params['id'] = id unless id.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
# Check training status of your model.
# @param [String] id
# The unique name for the predictive model.
# @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::PredictionV1_5::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_5::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trainedmodel(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'trainedmodels/{id}', options)
command.response_representation = Google::Apis::PredictionV1_5::Training::Representation
command.response_class = Google::Apis::PredictionV1_5::Training
command.params['id'] = id unless id.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
# Begin training your model.
# @param [Google::Apis::PredictionV1_5::Training] training_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::PredictionV1_5::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_5::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trainedmodel(training_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'trainedmodels', options)
command.request_representation = Google::Apis::PredictionV1_5::Training::Representation
command.request_object = training_object
command.response_representation = Google::Apis::PredictionV1_5::Training::Representation
command.response_class = Google::Apis::PredictionV1_5::Training
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
# List available models.
# @param [Fixnum] max_results
# Maximum number of results to return
# @param [String] page_token
# Pagination token
# @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::PredictionV1_5::List] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_5::List]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trainedmodels(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'trainedmodels/list', options)
command.response_representation = Google::Apis::PredictionV1_5::List::Representation
command.response_class = Google::Apis::PredictionV1_5::List
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
# Submit model id and request a prediction.
# @param [String] id
# The unique name for the predictive model.
# @param [Google::Apis::PredictionV1_5::Input] input_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::PredictionV1_5::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_5::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_trainedmodel(id, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'trainedmodels/{id}/predict', options)
command.request_representation = Google::Apis::PredictionV1_5::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_5::Output::Representation
command.response_class = Google::Apis::PredictionV1_5::Output
command.params['id'] = id unless id.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
# Add new data to a trained model.
# @param [String] id
# The unique name for the predictive model.
# @param [Google::Apis::PredictionV1_5::Update] update_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::PredictionV1_5::Training] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_5::Training]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trainedmodel(id, update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'trainedmodels/{id}', options)
command.request_representation = Google::Apis::PredictionV1_5::Update::Representation
command.request_object = update_object
command.response_representation = Google::Apis::PredictionV1_5::Training::Representation
command.response_class = Google::Apis::PredictionV1_5::Training
command.params['id'] = id unless id.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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -1,47 +0,0 @@
# 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/prediction_v1_6/service.rb'
require 'google/apis/prediction_v1_6/classes.rb'
require 'google/apis/prediction_v1_6/representations.rb'
module Google
module Apis
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @see https://developers.google.com/prediction/docs/developer-guide
module PredictionV1_6
VERSION = 'V1_6'
REVISION = '20160511'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Manage your data and permissions in Google Cloud Storage
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
# View your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
# Manage your data in Google Cloud Storage
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
# Manage your data in the Google Prediction API
AUTH_PREDICTION = 'https://www.googleapis.com/auth/prediction'
end
end
end

View File

@ -1,751 +0,0 @@
# 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 PredictionV1_6
#
class Analyze
include Google::Apis::Core::Hashable
# Description of the data the model was trained on.
# Corresponds to the JSON property `dataDescription`
# @return [Google::Apis::PredictionV1_6::Analyze::DataDescription]
attr_accessor :data_description
# List of errors with the data.
# Corresponds to the JSON property `errors`
# @return [Array<Hash<String,String>>]
attr_accessor :errors
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Description of the model.
# Corresponds to the JSON property `modelDescription`
# @return [Google::Apis::PredictionV1_6::Analyze::ModelDescription]
attr_accessor :model_description
# A URL to re-request 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)
@data_description = args[:data_description] if args.key?(:data_description)
@errors = args[:errors] if args.key?(:errors)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@model_description = args[:model_description] if args.key?(:model_description)
@self_link = args[:self_link] if args.key?(:self_link)
end
# Description of the data the model was trained on.
class DataDescription
include Google::Apis::Core::Hashable
# Description of the input features in the data set.
# Corresponds to the JSON property `features`
# @return [Array<Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature>]
attr_accessor :features
# Description of the output value or label.
# Corresponds to the JSON property `outputFeature`
# @return [Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature]
attr_accessor :output_feature
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@features = args[:features] if args.key?(:features)
@output_feature = args[:output_feature] if args.key?(:output_feature)
end
#
class Feature
include Google::Apis::Core::Hashable
# Description of the categorical values of this feature.
# Corresponds to the JSON property `categorical`
# @return [Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical]
attr_accessor :categorical
# The feature index.
# Corresponds to the JSON property `index`
# @return [Fixnum]
attr_accessor :index
# Description of the numeric values of this feature.
# Corresponds to the JSON property `numeric`
# @return [Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Numeric]
attr_accessor :numeric
# Description of multiple-word text values of this feature.
# Corresponds to the JSON property `text`
# @return [Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Text]
attr_accessor :text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@categorical = args[:categorical] if args.key?(:categorical)
@index = args[:index] if args.key?(:index)
@numeric = args[:numeric] if args.key?(:numeric)
@text = args[:text] if args.key?(:text)
end
# Description of the categorical values of this feature.
class Categorical
include Google::Apis::Core::Hashable
# Number of categorical values for this feature in the data.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# List of all the categories for this feature in the data set.
# Corresponds to the JSON property `values`
# @return [Array<Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical::Value>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@values = args[:values] if args.key?(:values)
end
#
class Value
include Google::Apis::Core::Hashable
# Number of times this feature had this value.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# The category name.
# 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)
@count = args[:count] if args.key?(:count)
@value = args[:value] if args.key?(:value)
end
end
end
# Description of the numeric values of this feature.
class Numeric
include Google::Apis::Core::Hashable
# Number of numeric values for this feature in the data set.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Mean of the numeric values of this feature in the data set.
# Corresponds to the JSON property `mean`
# @return [String]
attr_accessor :mean
# Variance of the numeric values of this feature in the data set.
# Corresponds to the JSON property `variance`
# @return [String]
attr_accessor :variance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@mean = args[:mean] if args.key?(:mean)
@variance = args[:variance] if args.key?(:variance)
end
end
# Description of multiple-word text values of this feature.
class Text
include Google::Apis::Core::Hashable
# Number of multiple-word text values for this feature.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
end
end
end
# Description of the output value or label.
class OutputFeature
include Google::Apis::Core::Hashable
# Description of the output values in the data set.
# Corresponds to the JSON property `numeric`
# @return [Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Numeric]
attr_accessor :numeric
# Description of the output labels in the data set.
# Corresponds to the JSON property `text`
# @return [Array<Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text>]
attr_accessor :text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@numeric = args[:numeric] if args.key?(:numeric)
@text = args[:text] if args.key?(:text)
end
# Description of the output values in the data set.
class Numeric
include Google::Apis::Core::Hashable
# Number of numeric output values in the data set.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Mean of the output values in the data set.
# Corresponds to the JSON property `mean`
# @return [String]
attr_accessor :mean
# Variance of the output values in the data set.
# Corresponds to the JSON property `variance`
# @return [String]
attr_accessor :variance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@mean = args[:mean] if args.key?(:mean)
@variance = args[:variance] if args.key?(:variance)
end
end
#
class Text
include Google::Apis::Core::Hashable
# Number of times the output label occurred in the data set.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# The output label.
# 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)
@count = args[:count] if args.key?(:count)
@value = args[:value] if args.key?(:value)
end
end
end
end
# Description of the model.
class ModelDescription
include Google::Apis::Core::Hashable
# An output confusion matrix. This shows an estimate for how this model will do
# in predictions. This is first indexed by the true class label. For each true
# class label, this provides a pair `predicted_label, count`, where count is the
# estimated number of times the model will predict the predicted label given the
# true label. Will not output if more then 100 classes (Categorical models only).
# Corresponds to the JSON property `confusionMatrix`
# @return [Hash<String,Hash<String,String>>]
attr_accessor :confusion_matrix
# A list of the confusion matrix row totals.
# Corresponds to the JSON property `confusionMatrixRowTotals`
# @return [Hash<String,String>]
attr_accessor :confusion_matrix_row_totals
# Basic information about the model.
# Corresponds to the JSON property `modelinfo`
# @return [Google::Apis::PredictionV1_6::Insert2]
attr_accessor :modelinfo
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix)
@confusion_matrix_row_totals = args[:confusion_matrix_row_totals] if args.key?(:confusion_matrix_row_totals)
@modelinfo = args[:modelinfo] if args.key?(:modelinfo)
end
end
end
#
class Input
include Google::Apis::Core::Hashable
# Input to the model for a prediction.
# Corresponds to the JSON property `input`
# @return [Google::Apis::PredictionV1_6::Input::Input]
attr_accessor :input
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@input = args[:input] if args.key?(:input)
end
# Input to the model for a prediction.
class Input
include Google::Apis::Core::Hashable
# A list of input features, these can be strings or doubles.
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
end
end
end
#
class Insert
include Google::Apis::Core::Hashable
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Type of predictive model (classification or regression).
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
# The Id of the model to be copied over.
# Corresponds to the JSON property `sourceModel`
# @return [String]
attr_accessor :source_model
# Google storage location of the training data file.
# Corresponds to the JSON property `storageDataLocation`
# @return [String]
attr_accessor :storage_data_location
# Google storage location of the preprocessing pmml file.
# Corresponds to the JSON property `storagePMMLLocation`
# @return [String]
attr_accessor :storage_pmml_location
# Google storage location of the pmml model file.
# Corresponds to the JSON property `storagePMMLModelLocation`
# @return [String]
attr_accessor :storage_pmml_model_location
# Instances to train model on.
# Corresponds to the JSON property `trainingInstances`
# @return [Array<Google::Apis::PredictionV1_6::Insert::TrainingInstance>]
attr_accessor :training_instances
# A class weighting function, which allows the importance weights for class
# labels to be specified (Categorical models only).
# Corresponds to the JSON property `utility`
# @return [Array<Hash<String,Float>>]
attr_accessor :utility
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@model_type = args[:model_type] if args.key?(:model_type)
@source_model = args[:source_model] if args.key?(:source_model)
@storage_data_location = args[:storage_data_location] if args.key?(:storage_data_location)
@storage_pmml_location = args[:storage_pmml_location] if args.key?(:storage_pmml_location)
@storage_pmml_model_location = args[:storage_pmml_model_location] if args.key?(:storage_pmml_model_location)
@training_instances = args[:training_instances] if args.key?(:training_instances)
@utility = args[:utility] if args.key?(:utility)
end
#
class TrainingInstance
include Google::Apis::Core::Hashable
# The input features for this instance.
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
# The generic output value - could be regression or class label.
# Corresponds to the JSON property `output`
# @return [String]
attr_accessor :output
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
@output = args[:output] if args.key?(:output)
end
end
end
#
class Insert2
include Google::Apis::Core::Hashable
# Insert time of the model (as a RFC 3339 timestamp).
# Corresponds to the JSON property `created`
# @return [DateTime]
attr_accessor :created
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Model metadata.
# Corresponds to the JSON property `modelInfo`
# @return [Google::Apis::PredictionV1_6::Insert2::ModelInfo]
attr_accessor :model_info
# Type of predictive model (CLASSIFICATION or REGRESSION).
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
# A URL to re-request this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# Google storage location of the training data file.
# Corresponds to the JSON property `storageDataLocation`
# @return [String]
attr_accessor :storage_data_location
# Google storage location of the preprocessing pmml file.
# Corresponds to the JSON property `storagePMMLLocation`
# @return [String]
attr_accessor :storage_pmml_location
# Google storage location of the pmml model file.
# Corresponds to the JSON property `storagePMMLModelLocation`
# @return [String]
attr_accessor :storage_pmml_model_location
# Training completion time (as a RFC 3339 timestamp).
# Corresponds to the JSON property `trainingComplete`
# @return [DateTime]
attr_accessor :training_complete
# The current status of the training job. This can be one of following: RUNNING;
# DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
# Corresponds to the JSON property `trainingStatus`
# @return [String]
attr_accessor :training_status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@created = args[:created] if args.key?(:created)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@model_info = args[:model_info] if args.key?(:model_info)
@model_type = args[:model_type] if args.key?(:model_type)
@self_link = args[:self_link] if args.key?(:self_link)
@storage_data_location = args[:storage_data_location] if args.key?(:storage_data_location)
@storage_pmml_location = args[:storage_pmml_location] if args.key?(:storage_pmml_location)
@storage_pmml_model_location = args[:storage_pmml_model_location] if args.key?(:storage_pmml_model_location)
@training_complete = args[:training_complete] if args.key?(:training_complete)
@training_status = args[:training_status] if args.key?(:training_status)
end
# Model metadata.
class ModelInfo
include Google::Apis::Core::Hashable
# Estimated accuracy of model taking utility weights into account (Categorical
# models only).
# Corresponds to the JSON property `classWeightedAccuracy`
# @return [String]
attr_accessor :class_weighted_accuracy
# A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate,
# based on the amount and quality of the training data, of the estimated
# prediction accuracy. You can use this is a guide to decide whether the results
# are accurate enough for your needs. This estimate will be more reliable if
# your real input data is similar to your training data (Categorical models only)
# .
# Corresponds to the JSON property `classificationAccuracy`
# @return [String]
attr_accessor :classification_accuracy
# An estimated mean squared error. The can be used to measure the quality of the
# predicted model (Regression models only).
# Corresponds to the JSON property `meanSquaredError`
# @return [String]
attr_accessor :mean_squared_error
# Type of predictive model (CLASSIFICATION or REGRESSION).
# Corresponds to the JSON property `modelType`
# @return [String]
attr_accessor :model_type
# Number of valid data instances used in the trained model.
# Corresponds to the JSON property `numberInstances`
# @return [Fixnum]
attr_accessor :number_instances
# Number of class labels in the trained model (Categorical models only).
# Corresponds to the JSON property `numberLabels`
# @return [Fixnum]
attr_accessor :number_labels
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@class_weighted_accuracy = args[:class_weighted_accuracy] if args.key?(:class_weighted_accuracy)
@classification_accuracy = args[:classification_accuracy] if args.key?(:classification_accuracy)
@mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
@model_type = args[:model_type] if args.key?(:model_type)
@number_instances = args[:number_instances] if args.key?(:number_instances)
@number_labels = args[:number_labels] if args.key?(:number_labels)
end
end
end
#
class List
include Google::Apis::Core::Hashable
# List of models.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::PredictionV1_6::Insert2>]
attr_accessor :items
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Pagination token to fetch the next page, if one exists.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A URL to re-request 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)
@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 Output
include Google::Apis::Core::Hashable
# The unique name for the predictive model.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# What kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The most likely class label (Categorical models only).
# Corresponds to the JSON property `outputLabel`
# @return [String]
attr_accessor :output_label
# A list of class labels with their estimated probabilities (Categorical models
# only).
# Corresponds to the JSON property `outputMulti`
# @return [Array<Google::Apis::PredictionV1_6::Output::OutputMulti>]
attr_accessor :output_multi
# The estimated regression value (Regression models only).
# Corresponds to the JSON property `outputValue`
# @return [String]
attr_accessor :output_value
# A URL to re-request 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)
@kind = args[:kind] if args.key?(:kind)
@output_label = args[:output_label] if args.key?(:output_label)
@output_multi = args[:output_multi] if args.key?(:output_multi)
@output_value = args[:output_value] if args.key?(:output_value)
@self_link = args[:self_link] if args.key?(:self_link)
end
#
class OutputMulti
include Google::Apis::Core::Hashable
# The class label.
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
# The probability of the class label.
# Corresponds to the JSON property `score`
# @return [String]
attr_accessor :score
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@score = args[:score] if args.key?(:score)
end
end
end
#
class Update
include Google::Apis::Core::Hashable
# The input features for this instance.
# Corresponds to the JSON property `csvInstance`
# @return [Array<Object>]
attr_accessor :csv_instance
# The generic output value - could be regression or class label.
# Corresponds to the JSON property `output`
# @return [String]
attr_accessor :output
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@csv_instance = args[:csv_instance] if args.key?(:csv_instance)
@output = args[:output] if args.key?(:output)
end
end
end
end
end

View File

@ -1,369 +0,0 @@
# 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 PredictionV1_6
class Analyze
class Representation < Google::Apis::Core::JsonRepresentation; end
class DataDescription
class Representation < Google::Apis::Core::JsonRepresentation; end
class Feature
class Representation < Google::Apis::Core::JsonRepresentation; end
class Categorical
class Representation < Google::Apis::Core::JsonRepresentation; end
class Value
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Numeric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Text
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class OutputFeature
class Representation < Google::Apis::Core::JsonRepresentation; end
class Numeric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Text
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 ModelDescription
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
class Input
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Insert
class Representation < Google::Apis::Core::JsonRepresentation; end
class TrainingInstance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Insert2
class Representation < Google::Apis::Core::JsonRepresentation; end
class ModelInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class List
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Output
class Representation < Google::Apis::Core::JsonRepresentation; end
class OutputMulti
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Update
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Analyze
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_description, as: 'dataDescription', class: Google::Apis::PredictionV1_6::Analyze::DataDescription, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::Representation
collection :errors, as: 'errors'
property :id, as: 'id'
property :kind, as: 'kind'
property :model_description, as: 'modelDescription', class: Google::Apis::PredictionV1_6::Analyze::ModelDescription, decorator: Google::Apis::PredictionV1_6::Analyze::ModelDescription::Representation
property :self_link, as: 'selfLink'
end
class DataDescription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :features, as: 'features', class: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Representation
property :output_feature, as: 'outputFeature', class: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Representation
end
class Feature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :categorical, as: 'categorical', class: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical::Representation
property :index, :numeric_string => true, as: 'index'
property :numeric, as: 'numeric', class: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Numeric, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Numeric::Representation
property :text, as: 'text', class: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Text, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Text::Representation
end
class Categorical
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
collection :values, as: 'values', class: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical::Value, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical::Value::Representation
end
class Value
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :value, as: 'value'
end
end
end
class Numeric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :mean, as: 'mean'
property :variance, as: 'variance'
end
end
class Text
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
end
end
end
class OutputFeature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :numeric, as: 'numeric', class: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Numeric, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Numeric::Representation
collection :text, as: 'text', class: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text, decorator: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text::Representation
end
class Numeric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :mean, as: 'mean'
property :variance, as: 'variance'
end
end
class Text
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :value, as: 'value'
end
end
end
end
class ModelDescription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :confusion_matrix, as: 'confusionMatrix'
hash :confusion_matrix_row_totals, as: 'confusionMatrixRowTotals'
property :modelinfo, as: 'modelinfo', class: Google::Apis::PredictionV1_6::Insert2, decorator: Google::Apis::PredictionV1_6::Insert2::Representation
end
end
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input, as: 'input', class: Google::Apis::PredictionV1_6::Input::Input, decorator: Google::Apis::PredictionV1_6::Input::Input::Representation
end
class Input
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
end
end
end
class Insert
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :model_type, as: 'modelType'
property :source_model, as: 'sourceModel'
property :storage_data_location, as: 'storageDataLocation'
property :storage_pmml_location, as: 'storagePMMLLocation'
property :storage_pmml_model_location, as: 'storagePMMLModelLocation'
collection :training_instances, as: 'trainingInstances', class: Google::Apis::PredictionV1_6::Insert::TrainingInstance, decorator: Google::Apis::PredictionV1_6::Insert::TrainingInstance::Representation
collection :utility, as: 'utility'
end
class TrainingInstance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
property :output, as: 'output'
end
end
end
class Insert2
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :created, as: 'created', type: DateTime
property :id, as: 'id'
property :kind, as: 'kind'
property :model_info, as: 'modelInfo', class: Google::Apis::PredictionV1_6::Insert2::ModelInfo, decorator: Google::Apis::PredictionV1_6::Insert2::ModelInfo::Representation
property :model_type, as: 'modelType'
property :self_link, as: 'selfLink'
property :storage_data_location, as: 'storageDataLocation'
property :storage_pmml_location, as: 'storagePMMLLocation'
property :storage_pmml_model_location, as: 'storagePMMLModelLocation'
property :training_complete, as: 'trainingComplete', type: DateTime
property :training_status, as: 'trainingStatus'
end
class ModelInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :class_weighted_accuracy, as: 'classWeightedAccuracy'
property :classification_accuracy, as: 'classificationAccuracy'
property :mean_squared_error, as: 'meanSquaredError'
property :model_type, as: 'modelType'
property :number_instances, :numeric_string => true, as: 'numberInstances'
property :number_labels, :numeric_string => true, as: 'numberLabels'
end
end
end
class List
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::PredictionV1_6::Insert2, decorator: Google::Apis::PredictionV1_6::Insert2::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class Output
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :output_label, as: 'outputLabel'
collection :output_multi, as: 'outputMulti', class: Google::Apis::PredictionV1_6::Output::OutputMulti, decorator: Google::Apis::PredictionV1_6::Output::OutputMulti::Representation
property :output_value, as: 'outputValue'
property :self_link, as: 'selfLink'
end
class OutputMulti
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :score, as: 'score'
end
end
end
class Update
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :csv_instance, as: 'csvInstance'
property :output, as: 'output'
end
end
end
end
end

View File

@ -1,381 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PredictionV1_6
# Prediction API
#
# Lets you access a cloud hosted machine learning service that makes it easy to
# build smart apps
#
# @example
# require 'google/apis/prediction_v1_6'
#
# Prediction = Google::Apis::PredictionV1_6 # Alias the module
# service = Prediction::PredictionService.new
#
# @see https://developers.google.com/prediction/docs/developer-guide
class PredictionService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'prediction/v1.6/projects/')
@batch_path = 'batch/prediction/v1.6'
end
# Submit input and request an output against a hosted model.
# @param [String] project
# The project associated with the model.
# @param [String] hosted_model_name
# The name of a hosted model.
# @param [Google::Apis::PredictionV1_6::Input] input_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::PredictionV1_6::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_6::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_hosted_model(project, hosted_model_name, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/hostedmodels/{hostedModelName}/predict', options)
command.request_representation = Google::Apis::PredictionV1_6::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_6::Output::Representation
command.response_class = Google::Apis::PredictionV1_6::Output
command.params['project'] = project unless project.nil?
command.params['hostedModelName'] = hosted_model_name unless hosted_model_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?
execute_or_queue_command(command, &block)
end
# Get analysis of the model and the data the model was trained on.
# @param [String] project
# The project associated with the model.
# @param [String] id
# The unique name for the predictive model.
# @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::PredictionV1_6::Analyze] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_6::Analyze]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def analyze_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/trainedmodels/{id}/analyze', options)
command.response_representation = Google::Apis::PredictionV1_6::Analyze::Representation
command.response_class = Google::Apis::PredictionV1_6::Analyze
command.params['project'] = project unless project.nil?
command.params['id'] = id unless id.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
# Delete a trained model.
# @param [String] project
# The project associated with the model.
# @param [String] id
# The unique name for the predictive model.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/trainedmodels/{id}', options)
command.params['project'] = project unless project.nil?
command.params['id'] = id unless id.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
# Check training status of your model.
# @param [String] project
# The project associated with the model.
# @param [String] id
# The unique name for the predictive model.
# @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::PredictionV1_6::Insert2] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_6::Insert2]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trained_model(project, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/trainedmodels/{id}', options)
command.response_representation = Google::Apis::PredictionV1_6::Insert2::Representation
command.response_class = Google::Apis::PredictionV1_6::Insert2
command.params['project'] = project unless project.nil?
command.params['id'] = id unless id.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
# Train a Prediction API model.
# @param [String] project
# The project associated with the model.
# @param [Google::Apis::PredictionV1_6::Insert] insert_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::PredictionV1_6::Insert2] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_6::Insert2]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trained_model(project, insert_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/trainedmodels', options)
command.request_representation = Google::Apis::PredictionV1_6::Insert::Representation
command.request_object = insert_object
command.response_representation = Google::Apis::PredictionV1_6::Insert2::Representation
command.response_class = Google::Apis::PredictionV1_6::Insert2
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
# List available models.
# @param [String] project
# The project associated with the model.
# @param [Fixnum] max_results
# Maximum number of results to return.
# @param [String] page_token
# Pagination token.
# @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::PredictionV1_6::List] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_6::List]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trained_models(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/trainedmodels/list', options)
command.response_representation = Google::Apis::PredictionV1_6::List::Representation
command.response_class = Google::Apis::PredictionV1_6::List
command.params['project'] = project unless project.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
# Submit model id and request a prediction.
# @param [String] project
# The project associated with the model.
# @param [String] id
# The unique name for the predictive model.
# @param [Google::Apis::PredictionV1_6::Input] input_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::PredictionV1_6::Output] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_6::Output]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def predict_trained_model(project, id, input_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/trainedmodels/{id}/predict', options)
command.request_representation = Google::Apis::PredictionV1_6::Input::Representation
command.request_object = input_object
command.response_representation = Google::Apis::PredictionV1_6::Output::Representation
command.response_class = Google::Apis::PredictionV1_6::Output
command.params['project'] = project unless project.nil?
command.params['id'] = id unless id.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
# Add new data to a trained model.
# @param [String] project
# The project associated with the model.
# @param [String] id
# The unique name for the predictive model.
# @param [Google::Apis::PredictionV1_6::Update] update_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::PredictionV1_6::Insert2] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PredictionV1_6::Insert2]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_trained_model(project, id, update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/trainedmodels/{id}', options)
command.request_representation = Google::Apis::PredictionV1_6::Update::Representation
command.request_object = update_object
command.response_representation = Google::Apis::PredictionV1_6::Insert2::Representation
command.response_class = Google::Apis::PredictionV1_6::Insert2
command.params['project'] = project unless project.nil?
command.params['id'] = id unless id.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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

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

View File

@ -314,11 +314,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# **JSON Example**
# `
# "bindings": [
# `
@ -327,7 +327,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@ -336,6 +336,17 @@ module Google
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
@ -639,11 +650,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# **JSON Example**
# `
# "bindings": [
# `
@ -652,7 +663,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@ -661,6 +672,17 @@ module Google
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`

View File

@ -39,14 +39,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -65,12 +63,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -106,12 +102,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -146,12 +140,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -192,12 +184,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -240,12 +230,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -283,12 +271,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -327,12 +313,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -373,12 +357,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -421,12 +403,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -466,12 +446,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -0,0 +1,36 @@
# 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/servicebroker_v1/service.rb'
require 'google/apis/servicebroker_v1/classes.rb'
require 'google/apis/servicebroker_v1/representations.rb'
module Google
module Apis
# Service Broker API
#
# The Google Cloud Platform Service Broker API provides Google hosted
# implementation of the Open Service Broker API
# (https://www.openservicebrokerapi.org/).
#
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
module ServicebrokerV1
VERSION = 'V1'
REVISION = '20180427'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

@ -0,0 +1,240 @@
# 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 ServicebrokerV1
# Associates `members` with a `role`.
class GoogleIamV1Binding
include Google::Apis::Core::Hashable
# Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is
# on the internet; with or without a Google account.
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
# account. For example, `alice@gmail.com` .
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`.
# * `domain:`domain``: A Google Apps domain name that represents all the
# users of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
# Required
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class GoogleIamV1Policy
include Google::Apis::Core::Hashable
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::ServicebrokerV1::GoogleIamV1Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Deprecated.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
end
end
# Request message for `SetIamPolicy` method.
class GoogleIamV1SetIamPolicyRequest
include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::ServicebrokerV1::GoogleIamV1Policy]
attr_accessor :policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy = args[:policy] if args.key?(:policy)
end
end
# Request message for `TestIamPermissions` method.
class GoogleIamV1TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with
# wildcards (such as '*' or 'storage.*') are not allowed. For more
# information see
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# Response message for `TestIamPermissions` method.
class GoogleIamV1TestIamPermissionsResponse
include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is
# allowed.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
end
end
end

View File

@ -0,0 +1,96 @@
# 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 ServicebrokerV1
class GoogleIamV1Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GoogleIamV1Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ServicebrokerV1::GoogleIamV1Binding, decorator: Google::Apis::ServicebrokerV1::GoogleIamV1Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class GoogleIamV1SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::ServicebrokerV1::GoogleIamV1Policy, decorator: Google::Apis::ServicebrokerV1::GoogleIamV1Policy::Representation
end
end
class GoogleIamV1TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GoogleIamV1TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
end
end
end

View File

@ -0,0 +1,168 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ServicebrokerV1
# Service Broker API
#
# The Google Cloud Platform Service Broker API provides Google hosted
# implementation of the Open Service Broker API
# (https://www.openservicebrokerapi.org/).
#
# @example
# require 'google/apis/servicebroker_v1'
#
# Servicebroker = Google::Apis::ServicebrokerV1 # Alias the module
# service = Servicebroker::ServiceBrokerService.new
#
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
class ServiceBrokerService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://servicebroker.googleapis.com/', '')
@batch_path = 'batch'
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1::GoogleIamV1Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::ServicebrokerV1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::ServicebrokerV1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicebrokerV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1::GoogleIamV1Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_iam_policy(resource, google_iam_v1__set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::ServicebrokerV1::GoogleIamV1SetIamPolicyRequest::Representation
command.request_object = google_iam_v1__set_iam_policy_request_object
command.response_representation = Google::Apis::ServicebrokerV1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::ServicebrokerV1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicebrokerV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1::GoogleIamV1TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_iam_permissions(resource, google_iam_v1__test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::ServicebrokerV1::GoogleIamV1TestIamPermissionsRequest::Representation
command.request_object = google_iam_v1__test_iam_permissions_request_object
command.response_representation = Google::Apis::ServicebrokerV1::GoogleIamV1TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1::GoogleIamV1TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -0,0 +1,36 @@
# 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/servicebroker_v1alpha1/service.rb'
require 'google/apis/servicebroker_v1alpha1/classes.rb'
require 'google/apis/servicebroker_v1alpha1/representations.rb'
module Google
module Apis
# Service Broker API
#
# The Google Cloud Platform Service Broker API provides Google hosted
# implementation of the Open Service Broker API
# (https://www.openservicebrokerapi.org/).
#
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
module ServicebrokerV1alpha1
VERSION = 'V1alpha1'
REVISION = '20180427'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

@ -0,0 +1,939 @@
# 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 ServicebrokerV1alpha1
# Describes the binding.
class GoogleCloudServicebrokerV1alpha1Binding
include Google::Apis::Core::Hashable
# A JSON object that contains data for platform resources associated with
# the binding to be created.
# Corresponds to the JSON property `bind_resource`
# @return [Hash<String,Object>]
attr_accessor :bind_resource
# The id of the binding. Must be unique within GCP project.
# Maximum length is 64, GUID recommended.
# Required.
# Corresponds to the JSON property `binding_id`
# @return [String]
attr_accessor :binding_id
# Output only.
# Timestamp for when the binding was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Configuration options for the service binding.
# Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>]
attr_accessor :parameters
# The ID of the plan. See `Service` and `Plan` resources for details.
# Maximum length is 64, GUID recommended.
# Required.
# Corresponds to the JSON property `plan_id`
# @return [String]
attr_accessor :plan_id
# The id of the service. Must be a valid identifier of a service
# contained in the list from a `ListServices()` call.
# Maximum length is 64, GUID recommended.
# Required.
# Corresponds to the JSON property `service_id`
# @return [String]
attr_accessor :service_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bind_resource = args[:bind_resource] if args.key?(:bind_resource)
@binding_id = args[:binding_id] if args.key?(:binding_id)
@create_time = args[:create_time] if args.key?(:create_time)
@parameters = args[:parameters] if args.key?(:parameters)
@plan_id = args[:plan_id] if args.key?(:plan_id)
@service_id = args[:service_id] if args.key?(:service_id)
end
end
# Response for the `CreateBinding()` method.
class GoogleCloudServicebrokerV1alpha1CreateBindingResponse
include Google::Apis::Core::Hashable
# Credentials to use the binding.
# Corresponds to the JSON property `credentials`
# @return [Hash<String,Object>]
attr_accessor :credentials
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If broker executes operation asynchronously, this is the operation ID that
# can be polled to check the completion status of said operation.
# This broker always executes all create/delete operations asynchronously.
# Corresponds to the JSON property `operation`
# @return [String]
attr_accessor :operation
# A URL to which the platform may proxy requests for the address sent with
# bind_resource.route
# Corresponds to the JSON property `route_service_url`
# @return [String]
attr_accessor :route_service_url
# From where to read system logs.
# Corresponds to the JSON property `syslog_drain_url`
# @return [String]
attr_accessor :syslog_drain_url
# An array of configuration for mounting volumes.
# Corresponds to the JSON property `volume_mounts`
# @return [Array<Hash<String,Object>>]
attr_accessor :volume_mounts
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@credentials = args[:credentials] if args.key?(:credentials)
@description = args[:description] if args.key?(:description)
@operation = args[:operation] if args.key?(:operation)
@route_service_url = args[:route_service_url] if args.key?(:route_service_url)
@syslog_drain_url = args[:syslog_drain_url] if args.key?(:syslog_drain_url)
@volume_mounts = args[:volume_mounts] if args.key?(:volume_mounts)
end
end
# Response for the `CreateServiceInstance()` method.
class GoogleCloudServicebrokerV1alpha1CreateServiceInstanceResponse
include Google::Apis::Core::Hashable
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If broker executes operation asynchronously, this is the operation ID that
# can be polled to check the completion status of said operation.
# This broker always will return a non-empty operation on success.
# Corresponds to the JSON property `operation`
# @return [String]
attr_accessor :operation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@operation = args[:operation] if args.key?(:operation)
end
end
# Message containing information required to activate Dashboard SSO feature.
class GoogleCloudServicebrokerV1alpha1DashboardClient
include Google::Apis::Core::Hashable
# The id of the Oauth client that the dashboard will use.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A URI for the service dashboard.
# Validated by the OAuth token server when the dashboard requests a token.
# Corresponds to the JSON property `redirect_uri`
# @return [String]
attr_accessor :redirect_uri
# A secret for the dashboard client.
# Corresponds to the JSON property `secret`
# @return [String]
attr_accessor :secret
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
@secret = args[:secret] if args.key?(:secret)
end
end
# Response for the `DeleteBinding()` method.
class GoogleCloudServicebrokerV1alpha1DeleteBindingResponse
include Google::Apis::Core::Hashable
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If broker executes operation asynchronously, this is the operation ID that
# can be polled to check the completion status of said operation.
# Corresponds to the JSON property `operation`
# @return [String]
attr_accessor :operation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@operation = args[:operation] if args.key?(:operation)
end
end
# Response for the `DeleteServiceInstance()` method.
class GoogleCloudServicebrokerV1alpha1DeleteServiceInstanceResponse
include Google::Apis::Core::Hashable
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If broker executes operation asynchronously, this is the operation ID that
# can be polled to check the completion status of said operation.
# Corresponds to the JSON property `operation`
# @return [String]
attr_accessor :operation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@operation = args[:operation] if args.key?(:operation)
end
end
# Response for the `GetBinding()` method.
class GoogleCloudServicebrokerV1alpha1GetBindingResponse
include Google::Apis::Core::Hashable
# Credentials to use the binding.
# Corresponds to the JSON property `credentials`
# @return [Hash<String,Object>]
attr_accessor :credentials
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# A URL to which the platform may proxy requests for the address sent with
# bind_resource.route
# Corresponds to the JSON property `route_service_url`
# @return [String]
attr_accessor :route_service_url
# From where to read system logs.
# Corresponds to the JSON property `syslog_drain_url`
# @return [String]
attr_accessor :syslog_drain_url
# An array of configuration for mounting volumes.
# Corresponds to the JSON property `volume_mounts`
# @return [Array<Hash<String,Object>>]
attr_accessor :volume_mounts
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@credentials = args[:credentials] if args.key?(:credentials)
@description = args[:description] if args.key?(:description)
@route_service_url = args[:route_service_url] if args.key?(:route_service_url)
@syslog_drain_url = args[:syslog_drain_url] if args.key?(:syslog_drain_url)
@volume_mounts = args[:volume_mounts] if args.key?(:volume_mounts)
end
end
# The response for the `ListBindings()` method.
class GoogleCloudServicebrokerV1alpha1ListBindingsResponse
include Google::Apis::Core::Hashable
# The list of the bindings in the instance.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Binding>]
attr_accessor :bindings
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# This token allows you to get the next page of results for list requests.
# If the number of results is larger than `pageSize`, 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
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bindings = args[:bindings] if args.key?(:bindings)
@description = args[:description] if args.key?(:description)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for the `ListCatalog()` method.
class GoogleCloudServicebrokerV1alpha1ListCatalogResponse
include Google::Apis::Core::Hashable
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# This token allows you to get the next page of results for list requests.
# If the number of results is larger than `pageSize`, 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
# The services available for the requested GCP project.
# Corresponds to the JSON property `services`
# @return [Array<Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Service>]
attr_accessor :services
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@services = args[:services] if args.key?(:services)
end
end
# The response for the `ListServiceInstances()` method.
class GoogleCloudServicebrokerV1alpha1ListServiceInstancesResponse
include Google::Apis::Core::Hashable
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The list of the instances in the broker.
# Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance>]
attr_accessor :instances
# This token allows you to get the next page of results for list requests.
# If the number of results is larger than `pageSize`, 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
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@instances = args[:instances] if args.key?(:instances)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Describes a long running operation, which conforms to OpenService API.
class GoogleCloudServicebrokerV1alpha1Operation
include Google::Apis::Core::Hashable
# Optional description of the Operation state.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The state of the operation.
# Valid values are: "in progress", "succeeded", and "failed".
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@state = args[:state] if args.key?(:state)
end
end
# Plan message describes a Service Plan.
class GoogleCloudServicebrokerV1alpha1Plan
include Google::Apis::Core::Hashable
# Specifies whether instances of the service can be bound to applications.
# If not specified, `Service.bindable` will be presumed.
# Corresponds to the JSON property `bindable`
# @return [Boolean]
attr_accessor :bindable
alias_method :bindable?, :bindable
# Textual description of the plan. Optional.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Whether the service is free.
# Corresponds to the JSON property `free`
# @return [Boolean]
attr_accessor :free
alias_method :free?, :free
# ID is a globally unique identifier used to uniquely identify the plan.
# User must make no presumption about the format of this field.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of metadata for a service offering.
# Metadata is an arbitrary JSON object.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# User friendly name of the plan.
# The name must be globally unique within GCP project.
# Note, which is different from ("This must be globally unique within a
# platform marketplace").
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Schema definitions for service instances and bindings for the plan.
# Corresponds to the JSON property `schemas`
# @return [Hash<String,Object>]
attr_accessor :schemas
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bindable = args[:bindable] if args.key?(:bindable)
@description = args[:description] if args.key?(:description)
@free = args[:free] if args.key?(:free)
@id = args[:id] if args.key?(:id)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@schemas = args[:schemas] if args.key?(:schemas)
end
end
# The resource model mostly follows the Open Service Broker API, as
# described here:
# https://github.com/openservicebrokerapi/servicebroker/blob/master/_spec.md
# Though due to Google Specifics it has additional optional fields.
class GoogleCloudServicebrokerV1alpha1Service
include Google::Apis::Core::Hashable
# Specifies whether instances of the service can be bound to applications.
# Required.
# Corresponds to the JSON property `bindable`
# @return [Boolean]
attr_accessor :bindable
alias_method :bindable?, :bindable
# Whether the service provides an endpoint to get service bindings.
# Corresponds to the JSON property `binding_retrievable`
# @return [Boolean]
attr_accessor :binding_retrievable
alias_method :binding_retrievable?, :binding_retrievable
# Message containing information required to activate Dashboard SSO feature.
# Corresponds to the JSON property `dashboard_client`
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DashboardClient]
attr_accessor :dashboard_client
# Textual description of the service. Required.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# ID is a globally unique identifier used to uniquely identify the service.
# ID is an opaque string.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Whether the service provides an endpoint to get service instances.
# Corresponds to the JSON property `instance_retrievable`
# @return [Boolean]
attr_accessor :instance_retrievable
alias_method :instance_retrievable?, :instance_retrievable
# A list of metadata for a service offering.
# Metadata is an arbitrary JSON object.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# User friendly service name.
# Name must match [a-z0-9]+ regexp.
# The name must be globally unique within GCP project.
# Note, which is different from ("This must be globally unique within a
# platform marketplace").
# Required.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Whether the service supports upgrade/downgrade for some plans.
# Corresponds to the JSON property `plan_updateable`
# @return [Boolean]
attr_accessor :plan_updateable
alias_method :plan_updateable?, :plan_updateable
# A list of plans for this service.
# At least one plan is required.
# Corresponds to the JSON property `plans`
# @return [Array<Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Plan>]
attr_accessor :plans
# Tags provide a flexible mechanism to expose a classification, attribute, or
# base technology of a service.
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bindable = args[:bindable] if args.key?(:bindable)
@binding_retrievable = args[:binding_retrievable] if args.key?(:binding_retrievable)
@dashboard_client = args[:dashboard_client] if args.key?(:dashboard_client)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@instance_retrievable = args[:instance_retrievable] if args.key?(:instance_retrievable)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@plan_updateable = args[:plan_updateable] if args.key?(:plan_updateable)
@plans = args[:plans] if args.key?(:plans)
@tags = args[:tags] if args.key?(:tags)
end
end
# Message describing inputs to Provision and Update Service instance requests.
class GoogleCloudServicebrokerV1alpha1ServiceInstance
include Google::Apis::Core::Hashable
# Platform specific contextual information under which the service instance
# is to be provisioned. This replaces organization_guid and space_guid.
# But can also contain anything.
# Currently only used for logging context information.
# Corresponds to the JSON property `context`
# @return [Hash<String,Object>]
attr_accessor :context
# Output only.
# Timestamp for when the instance was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The id of the service instance. Must be unique within GCP project.
# Maximum length is 64, GUID recommended.
# Required.
# Corresponds to the JSON property `instance_id`
# @return [String]
attr_accessor :instance_id
# The platform GUID for the organization under which the service is to be
# provisioned.
# Required.
# Corresponds to the JSON property `organization_guid`
# @return [String]
attr_accessor :organization_guid
# Configuration options for the service instance.
# Parameters is JSON object serialized to string.
# Corresponds to the JSON property `parameters`
# @return [Hash<String,Object>]
attr_accessor :parameters
# The ID of the plan. See `Service` and `Plan` resources for details.
# Maximum length is 64, GUID recommended.
# Required.
# Corresponds to the JSON property `plan_id`
# @return [String]
attr_accessor :plan_id
# Used only in UpdateServiceInstance request to optionally specify previous
# fields.
# Corresponds to the JSON property `previous_values`
# @return [Hash<String,Object>]
attr_accessor :previous_values
# Output only.
# The resource name of the instance, e.g.
# projects/project_id/brokers/broker_id/service_instances/instance_id
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# The id of the service. Must be a valid identifier of a service
# contained in the list from a `ListServices()` call.
# Maximum length is 64, GUID recommended.
# Required.
# Corresponds to the JSON property `service_id`
# @return [String]
attr_accessor :service_id
# The identifier for the project space within the platform organization.
# Required.
# Corresponds to the JSON property `space_guid`
# @return [String]
attr_accessor :space_guid
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context = args[:context] if args.key?(:context)
@create_time = args[:create_time] if args.key?(:create_time)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@organization_guid = args[:organization_guid] if args.key?(:organization_guid)
@parameters = args[:parameters] if args.key?(:parameters)
@plan_id = args[:plan_id] if args.key?(:plan_id)
@previous_values = args[:previous_values] if args.key?(:previous_values)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@service_id = args[:service_id] if args.key?(:service_id)
@space_guid = args[:space_guid] if args.key?(:space_guid)
end
end
# Response for the `UpdateServiceInstance()` method.
class GoogleCloudServicebrokerV1alpha1UpdateServiceInstanceResponse
include Google::Apis::Core::Hashable
# Used to communicate description of the response. Usually for non-standard
# error codes.
# https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#
# service-broker-errors
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If broker executes operation asynchronously, this is the operation ID that
# can be polled to check the completion status of said operation.
# Corresponds to the JSON property `operation`
# @return [String]
attr_accessor :operation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@operation = args[:operation] if args.key?(:operation)
end
end
# Associates `members` with a `role`.
class GoogleIamV1Binding
include Google::Apis::Core::Hashable
# Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is
# on the internet; with or without a Google account.
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
# account. For example, `alice@gmail.com` .
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`.
# * `domain:`domain``: A Google Apps domain name that represents all the
# users of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
# Required
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class GoogleIamV1Policy
include Google::Apis::Core::Hashable
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Deprecated.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
end
end
# Request message for `SetIamPolicy` method.
class GoogleIamV1SetIamPolicyRequest
include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy]
attr_accessor :policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy = args[:policy] if args.key?(:policy)
end
end
# Request message for `TestIamPermissions` method.
class GoogleIamV1TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with
# wildcards (such as '*' or 'storage.*') are not allowed. For more
# information see
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# Response message for `TestIamPermissions` method.
class GoogleIamV1TestIamPermissionsResponse
include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is
# allowed.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
end
end
end

View File

@ -0,0 +1,348 @@
# 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 ServicebrokerV1alpha1
class GoogleCloudServicebrokerV1alpha1Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1CreateBindingResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1CreateServiceInstanceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1DashboardClient
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1DeleteBindingResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1DeleteServiceInstanceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1GetBindingResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1ListBindingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1ListCatalogResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1ListServiceInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1Plan
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1Service
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1ServiceInstance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1UpdateServiceInstanceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1alpha1Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :bind_resource, as: 'bind_resource'
property :binding_id, as: 'binding_id'
property :create_time, as: 'createTime'
hash :parameters, as: 'parameters'
property :plan_id, as: 'plan_id'
property :service_id, as: 'service_id'
end
end
class GoogleCloudServicebrokerV1alpha1CreateBindingResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :credentials, as: 'credentials'
property :description, as: 'description'
property :operation, as: 'operation'
property :route_service_url, as: 'route_service_url'
property :syslog_drain_url, as: 'syslog_drain_url'
collection :volume_mounts, as: 'volume_mounts'
end
end
class GoogleCloudServicebrokerV1alpha1CreateServiceInstanceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :operation, as: 'operation'
end
end
class GoogleCloudServicebrokerV1alpha1DashboardClient
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :redirect_uri, as: 'redirect_uri'
property :secret, as: 'secret'
end
end
class GoogleCloudServicebrokerV1alpha1DeleteBindingResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :operation, as: 'operation'
end
end
class GoogleCloudServicebrokerV1alpha1DeleteServiceInstanceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :operation, as: 'operation'
end
end
class GoogleCloudServicebrokerV1alpha1GetBindingResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :credentials, as: 'credentials'
property :description, as: 'description'
property :route_service_url, as: 'route_service_url'
property :syslog_drain_url, as: 'syslog_drain_url'
collection :volume_mounts, as: 'volume_mounts'
end
end
class GoogleCloudServicebrokerV1alpha1ListBindingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Binding, decorator: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Binding::Representation
property :description, as: 'description'
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudServicebrokerV1alpha1ListCatalogResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :next_page_token, as: 'nextPageToken'
collection :services, as: 'services', class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Service, decorator: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Service::Representation
end
end
class GoogleCloudServicebrokerV1alpha1ListServiceInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
collection :instances, as: 'instances', class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance, decorator: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudServicebrokerV1alpha1Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :state, as: 'state'
end
end
class GoogleCloudServicebrokerV1alpha1Plan
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bindable, as: 'bindable'
property :description, as: 'description'
property :free, as: 'free'
property :id, as: 'id'
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :schemas, as: 'schemas'
end
end
class GoogleCloudServicebrokerV1alpha1Service
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bindable, as: 'bindable'
property :binding_retrievable, as: 'binding_retrievable'
property :dashboard_client, as: 'dashboard_client', class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DashboardClient, decorator: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DashboardClient::Representation
property :description, as: 'description'
property :id, as: 'id'
property :instance_retrievable, as: 'instance_retrievable'
hash :metadata, as: 'metadata'
property :name, as: 'name'
property :plan_updateable, as: 'plan_updateable'
collection :plans, as: 'plans', class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Plan, decorator: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Plan::Representation
collection :tags, as: 'tags'
end
end
class GoogleCloudServicebrokerV1alpha1ServiceInstance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :context, as: 'context'
property :create_time, as: 'createTime'
property :instance_id, as: 'instance_id'
property :organization_guid, as: 'organization_guid'
hash :parameters, as: 'parameters'
property :plan_id, as: 'plan_id'
hash :previous_values, as: 'previous_values'
property :resource_name, as: 'resourceName'
property :service_id, as: 'service_id'
property :space_guid, as: 'space_guid'
end
end
class GoogleCloudServicebrokerV1alpha1UpdateServiceInstanceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :operation, as: 'operation'
end
end
class GoogleIamV1Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GoogleIamV1Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Binding, decorator: Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class GoogleIamV1SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy, decorator: Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy::Representation
end
end
class GoogleIamV1TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GoogleIamV1TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
end
end
end

View File

@ -0,0 +1,728 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ServicebrokerV1alpha1
# Service Broker API
#
# The Google Cloud Platform Service Broker API provides Google hosted
# implementation of the Open Service Broker API
# (https://www.openservicebrokerapi.org/).
#
# @example
# require 'google/apis/servicebroker_v1alpha1'
#
# Servicebroker = Google::Apis::ServicebrokerV1alpha1 # Alias the module
# service = Servicebroker::ServiceBrokerService.new
#
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
class ServiceBrokerService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://servicebroker.googleapis.com/', '')
@batch_path = 'batch'
end
# Gets the given service instance from the system.
# This API is an extension and not part of the OSB spec.
# Hence the path is a standard Google API URL.
# @param [String] name
# The resource name of the instance 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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the bindings in the instance
# @param [String] parent
# Parent must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.
# @param [Fixnum] page_size
# Specifies the number of results to return per page. If there are fewer
# elements than the specified number, returns all elements.
# Optional. If unset or 0, all the results will be returned.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to a `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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListBindingsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListBindingsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_broker_instance_service_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/service_bindings', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListBindingsResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListBindingsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the instances in the brokers
# This API is an extension and not part of the OSB spec.
# Hence the path is a standard Google API URL.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [Fixnum] page_size
# Specifies the number of results to return per page. If there are fewer
# elements than the specified number, returns all elements.
# Optional. If unset or 0, all the results will be returned.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to a `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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListServiceInstancesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListServiceInstancesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_broker_service_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/service_instances', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListServiceInstancesResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListServiceInstancesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the Services registered with this broker for consumption for
# given service registry broker, which contains an set of services.
# Note, that Service producer API is separate from Broker API.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [Fixnum] page_size
# Specifies the number of results to return per page. If there are fewer
# elements than the specified number, returns all elements.
# Optional. If unset or 0, all the results will be returned.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to a `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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListCatalogResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListCatalogResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_broker_v2_catalogs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/v2/catalog', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListCatalogResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ListCatalogResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Provisions a service instance.
# If `request.accepts_incomplete` is false and Broker cannot execute request
# synchronously HTTP 422 error will be returned along with
# FAILED_PRECONDITION status.
# If `request.accepts_incomplete` is true and the Broker decides to execute
# resource asynchronously then HTTP 202 response code will be returned and a
# valid polling operation in the response will be included.
# If Broker executes the request synchronously and it succeeds HTTP 201
# response will be furnished.
# If identical instance exists, then HTTP 200 response will be returned.
# If an instance with identical ID but mismatching parameters exists, then
# HTTP 409 status code will be returned.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# The id of the service instance. Must be unique within GCP project.
# Maximum length is 64, GUID recommended.
# Required.
# @param [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance] google_cloud_servicebroker_v1alpha1__service_instance_object
# @param [Boolean] accepts_incomplete
# Value indicating that API client supports asynchronous operations. If
# Broker cannot execute the request synchronously HTTP 422 code will be
# returned to HTTP clients along with FAILED_PRECONDITION error.
# If true and broker will execute request asynchronously 202 HTTP code will
# be returned.
# This broker always requires this to be true as all mutator operations are
# asynchronous.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1CreateServiceInstanceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1CreateServiceInstanceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_broker_v2_service_instance(parent, instance_id, google_cloud_servicebroker_v1alpha1__service_instance_object = nil, accepts_incomplete: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1alpha1/{+parent}/v2/service_instances/{+instance_id}', options)
command.request_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance::Representation
command.request_object = google_cloud_servicebroker_v1alpha1__service_instance_object
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1CreateServiceInstanceResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1CreateServiceInstanceResponse
command.params['parent'] = parent unless parent.nil?
command.params['instance_id'] = instance_id unless instance_id.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deprovisions a service instance.
# For synchronous/asynchronous request details see CreateServiceInstance
# method.
# If service instance does not exist HTTP 410 status will be returned.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# The instance id to deprovision.
# @param [Boolean] accepts_incomplete
# See CreateServiceInstanceRequest for details.
# @param [String] plan_id
# The plan id of the service instance.
# @param [String] service_id
# The service id of the service instance.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DeleteServiceInstanceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DeleteServiceInstanceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_broker_v2_service_instance(parent, instance_id, accepts_incomplete: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1alpha1/{+parent}/v2/service_instances/{+instanceId}', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DeleteServiceInstanceResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DeleteServiceInstanceResponse
command.params['parent'] = parent unless parent.nil?
command.params['instanceId'] = instance_id unless instance_id.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the given service instance from the system.
# This API is an extension and not part of the OSB spec.
# Hence the path is a standard Google API URL.
# @param [String] name
# The resource name of the instance 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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_v2_service_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the state of the last operation for the service instance.
# Only last (or current) operation can be polled.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# The instance id for which to return the last operation status.
# @param [String] operation
# If `operation` was returned during mutation operation, this field must be
# populated with the provided value.
# @param [String] plan_id
# Plan id.
# @param [String] service_id
# Service id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_v2_service_instance_last_operation(parent, instance_id, operation: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/v2/service_instances/{+instanceId}/last_operation', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation
command.params['parent'] = parent unless parent.nil?
command.params['instanceId'] = instance_id unless instance_id.nil?
command.query['operation'] = operation unless operation.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing service instance.
# See CreateServiceInstance for possible response codes.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# The id of the service instance. Must be unique within GCP project.
# Maximum length is 64, GUID recommended.
# Required.
# @param [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance] google_cloud_servicebroker_v1alpha1__service_instance_object
# @param [Boolean] accepts_incomplete
# See CreateServiceInstanceRequest for details.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1UpdateServiceInstanceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1UpdateServiceInstanceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_project_broker_v2_service_instance(parent, instance_id, google_cloud_servicebroker_v1alpha1__service_instance_object = nil, accepts_incomplete: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1alpha1/{+parent}/v2/service_instances/{+instance_id}', options)
command.request_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1ServiceInstance::Representation
command.request_object = google_cloud_servicebroker_v1alpha1__service_instance_object
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1UpdateServiceInstanceResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1UpdateServiceInstanceResponse
command.params['parent'] = parent unless parent.nil?
command.params['instance_id'] = instance_id unless instance_id.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# CreateBinding generates a service binding to an existing service instance.
# See ProviServiceInstance for async operation details.
# @param [String] parent
# The GCP container.
# Must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# The service instance to which to bind.
# @param [String] binding_id
# The id of the binding. Must be unique within GCP project.
# Maximum length is 64, GUID recommended.
# Required.
# @param [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Binding] google_cloud_servicebroker_v1alpha1__binding_object
# @param [Boolean] accepts_incomplete
# See CreateServiceInstanceRequest for details.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1CreateBindingResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1CreateBindingResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_broker_v2_service_instance_service_binding(parent, instance_id, binding_id, google_cloud_servicebroker_v1alpha1__binding_object = nil, accepts_incomplete: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+binding_id}', options)
command.request_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Binding::Representation
command.request_object = google_cloud_servicebroker_v1alpha1__binding_object
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1CreateBindingResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1CreateBindingResponse
command.params['parent'] = parent unless parent.nil?
command.params['instanceId'] = instance_id unless instance_id.nil?
command.params['binding_id'] = binding_id unless binding_id.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Unbinds from a service instance.
# For synchronous/asynchronous request details see CreateServiceInstance
# method.
# If binding does not exist HTTP 410 status will be returned.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# The service instance id that deleted binding is bound to.
# @param [String] binding_id
# The id of the binding to delete.
# @param [Boolean] accepts_incomplete
# See CreateServiceInstanceRequest for details.
# @param [String] plan_id
# The plan id of the service instance.
# @param [String] service_id
# Additional query parameter hints.
# The service id of the service instance.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DeleteBindingResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DeleteBindingResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_broker_v2_service_instance_service_binding(parent, instance_id, binding_id, accepts_incomplete: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1alpha1/{+parent}/v2/service_instances/{instanceId}/service_bindings/{bindingId}', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DeleteBindingResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1DeleteBindingResponse
command.params['parent'] = parent unless parent.nil?
command.params['instanceId'] = instance_id unless instance_id.nil?
command.params['bindingId'] = binding_id unless binding_id.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# GetBinding returns the binding information.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# Instance id to which the binding is bound.
# @param [String] binding_id
# The binding id.
# @param [String] plan_id
# Plan id.
# @param [String] service_id
# Service id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1GetBindingResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1GetBindingResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_v2_service_instance_service_binding(parent, instance_id, binding_id, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+bindingId}', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1GetBindingResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1GetBindingResponse
command.params['parent'] = parent unless parent.nil?
command.params['instanceId'] = instance_id unless instance_id.nil?
command.params['bindingId'] = binding_id unless binding_id.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the state of the last operation for the binding.
# Only last (or current) operation can be polled.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# The instance id that the binding is bound to.
# @param [String] binding_id
# The binding id for which to return the last operation
# @param [String] operation
# If `operation` was returned during mutation operation, this field must be
# populated with the provided value.
# @param [String] plan_id
# Plan id.
# @param [String] service_id
# Service id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_v2_service_instance_service_binding_last_operation(parent, instance_id, binding_id, operation: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+bindingId}/last_operation', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation
command.params['parent'] = parent unless parent.nil?
command.params['instanceId'] = instance_id unless instance_id.nil?
command.params['bindingId'] = binding_id unless binding_id.nil?
command.query['operation'] = operation unless operation.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_iam_policy(resource, google_iam_v1__set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::ServicebrokerV1alpha1::GoogleIamV1SetIamPolicyRequest::Representation
command.request_object = google_iam_v1__set_iam_policy_request_object
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_iam_permissions(resource, google_iam_v1__test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::ServicebrokerV1alpha1::GoogleIamV1TestIamPermissionsRequest::Representation
command.request_object = google_iam_v1__test_iam_permissions_request_object
command.response_representation = Google::Apis::ServicebrokerV1alpha1::GoogleIamV1TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1alpha1::GoogleIamV1TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -0,0 +1,36 @@
# 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/servicebroker_v1beta1/service.rb'
require 'google/apis/servicebroker_v1beta1/classes.rb'
require 'google/apis/servicebroker_v1beta1/representations.rb'
module Google
module Apis
# Service Broker API
#
# The Google Cloud Platform Service Broker API provides Google hosted
# implementation of the Open Service Broker API
# (https://www.openservicebrokerapi.org/).
#
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
module ServicebrokerV1beta1
VERSION = 'V1beta1'
REVISION = '20180427'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,393 @@
# 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 ServicebrokerV1beta1
class GoogleCloudServicebrokerV1beta1Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1Broker
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1CreateBindingResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1CreateServiceInstanceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1DashboardClient
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1DeleteBindingResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1DeleteServiceInstanceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1GetBindingResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1ListBindingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1ListBrokersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1ListCatalogResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1ListServiceInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1Plan
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1Service
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1ServiceInstance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1UpdateServiceInstanceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleProtobufEmpty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudServicebrokerV1beta1Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :bind_resource, as: 'bind_resource'
property :binding_id, as: 'binding_id'
property :create_time, as: 'createTime'
hash :parameters, as: 'parameters'
property :plan_id, as: 'plan_id'
property :service_id, as: 'service_id'
end
end
class GoogleCloudServicebrokerV1beta1Broker
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :name, as: 'name'
property :title, as: 'title'
property :url, as: 'url'
end
end
class GoogleCloudServicebrokerV1beta1CreateBindingResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :credentials, as: 'credentials'
property :description, as: 'description'
property :operation, as: 'operation'
property :route_service_url, as: 'route_service_url'
property :syslog_drain_url, as: 'syslog_drain_url'
collection :volume_mounts, as: 'volume_mounts'
end
end
class GoogleCloudServicebrokerV1beta1CreateServiceInstanceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :operation, as: 'operation'
end
end
class GoogleCloudServicebrokerV1beta1DashboardClient
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :redirect_uri, as: 'redirect_uri'
property :secret, as: 'secret'
end
end
class GoogleCloudServicebrokerV1beta1DeleteBindingResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :operation, as: 'operation'
end
end
class GoogleCloudServicebrokerV1beta1DeleteServiceInstanceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :operation, as: 'operation'
end
end
class GoogleCloudServicebrokerV1beta1GetBindingResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :credentials, as: 'credentials'
property :description, as: 'description'
property :route_service_url, as: 'route_service_url'
property :syslog_drain_url, as: 'syslog_drain_url'
collection :volume_mounts, as: 'volume_mounts'
end
end
class GoogleCloudServicebrokerV1beta1ListBindingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Binding, decorator: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Binding::Representation
property :description, as: 'description'
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudServicebrokerV1beta1ListBrokersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :brokers, as: 'brokers', class: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Broker, decorator: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Broker::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudServicebrokerV1beta1ListCatalogResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :next_page_token, as: 'nextPageToken'
collection :services, as: 'services', class: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Service, decorator: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Service::Representation
end
end
class GoogleCloudServicebrokerV1beta1ListServiceInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
collection :instances, as: 'instances', class: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance, decorator: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudServicebrokerV1beta1Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :state, as: 'state'
end
end
class GoogleCloudServicebrokerV1beta1Plan
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bindable, as: 'bindable'
property :description, as: 'description'
property :free, as: 'free'
property :id, as: 'id'
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :schemas, as: 'schemas'
end
end
class GoogleCloudServicebrokerV1beta1Service
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bindable, as: 'bindable'
property :binding_retrievable, as: 'binding_retrievable'
property :bindings_retrievable, as: 'bindings_retrievable'
property :dashboard_client, as: 'dashboard_client', class: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DashboardClient, decorator: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DashboardClient::Representation
property :description, as: 'description'
property :id, as: 'id'
property :instances_retrievable, as: 'instances_retrievable'
hash :metadata, as: 'metadata'
property :name, as: 'name'
property :plan_updateable, as: 'plan_updateable'
collection :plans, as: 'plans', class: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Plan, decorator: Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Plan::Representation
collection :tags, as: 'tags'
end
end
class GoogleCloudServicebrokerV1beta1ServiceInstance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :context, as: 'context'
property :create_time, as: 'createTime'
property :description, as: 'description'
property :instance_id, as: 'instance_id'
property :organization_guid, as: 'organization_guid'
hash :parameters, as: 'parameters'
property :plan_id, as: 'plan_id'
hash :previous_values, as: 'previous_values'
property :resource_name, as: 'resourceName'
property :service_id, as: 'service_id'
property :space_guid, as: 'space_guid'
end
end
class GoogleCloudServicebrokerV1beta1UpdateServiceInstanceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :operation, as: 'operation'
end
end
class GoogleIamV1Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GoogleIamV1Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ServicebrokerV1beta1::GoogleIamV1Binding, decorator: Google::Apis::ServicebrokerV1beta1::GoogleIamV1Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class GoogleIamV1SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy, decorator: Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy::Representation
end
end
class GoogleIamV1TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GoogleIamV1TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GoogleProtobufEmpty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
end
end
end

View File

@ -0,0 +1,917 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ServicebrokerV1beta1
# Service Broker API
#
# The Google Cloud Platform Service Broker API provides Google hosted
# implementation of the Open Service Broker API
# (https://www.openservicebrokerapi.org/).
#
# @example
# require 'google/apis/servicebroker_v1beta1'
#
# Servicebroker = Google::Apis::ServicebrokerV1beta1 # Alias the module
# service = Servicebroker::ServiceBrokerService.new
#
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
class ServiceBrokerService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://servicebroker.googleapis.com/', '')
@batch_path = 'batch'
end
# CreateBroker creates a Broker.
# @param [String] parent
# The project in which to create broker.
# @param [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Broker] google_cloud_servicebroker_v1beta1__broker_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Broker] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Broker]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_broker(parent, google_cloud_servicebroker_v1beta1__broker_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/brokers', options)
command.request_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Broker::Representation
command.request_object = google_cloud_servicebroker_v1beta1__broker_object
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Broker::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Broker
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# DeleteBroker deletes a Broker.
# @param [String] name
# The broker to delete.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleProtobufEmpty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_broker(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleProtobufEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# ListBrokers lists brokers.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers`.
# @param [Fixnum] page_size
# Specifies the number of results to return per page. If there are fewer
# elements than the specified number, returns all elements.
# Optional. Acceptable values are 0 to 200, inclusive. (Default: 100)
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to a `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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListBrokersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListBrokersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_brokers(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/brokers', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListBrokersResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListBrokersResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the given service instance from the system.
# The API call accepts both OSB style API and standard google style API
# resource path.
# i.e. both `projects/*/brokers/*/instances/*`
# and `projects/*/brokers/*/v2/service_instances/*` are acceptable paths.
# @param [String] name
# The resource name of the instance to return.
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +
# `v2/service_instances/[INSTANCE_ID]`
# or
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the state of the last operation for the service instance.
# Only last (or current) operation can be polled.
# @param [String] name
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+
# `service_instances/[INSTANCE_ID]`.
# @param [String] operation
# If `operation` was returned during mutation operation, this field must be
# populated with the provided value.
# @param [String] plan_id
# Plan id.
# @param [String] service_id
# Service id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_instance_last_operation(name, operation: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/last_operation', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation
command.params['name'] = name unless name.nil?
command.query['operation'] = operation unless operation.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the instances in the brokers
# This API is an extension and not part of the OSB spec.
# Hence the path is a standard Google API URL.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [Fixnum] page_size
# Specifies the number of results to return per page. If there are fewer
# elements than the specified number, returns all elements.
# Optional. Acceptable values are 0 to 200, inclusive. (Default: 100)
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to a `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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListServiceInstancesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListServiceInstancesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_broker_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/instances', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListServiceInstancesResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListServiceInstancesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the state of the last operation for the binding.
# Only last (or current) operation can be polled.
# @param [String] name
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/
# service_binding/[BINDING_ID]`.
# @param [String] operation
# If `operation` was returned during mutation operation, this field must be
# populated with the provided value.
# @param [String] plan_id
# Plan id.
# @param [String] service_id
# Service id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_instance_binding_last_operation(name, operation: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/last_operation', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation
command.params['name'] = name unless name.nil?
command.query['operation'] = operation unless operation.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the bindings in the instance.
# @param [String] parent
# Parent must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +
# `v2/service_instances/[INSTANCE_ID]`
# or
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.
# @param [Fixnum] page_size
# Specifies the number of results to return per page. If there are fewer
# elements than the specified number, returns all elements.
# Optional. Acceptable values are 0 to 200, inclusive. (Default: 100)
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to a `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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListBindingsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListBindingsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_broker_instance_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/bindings', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListBindingsResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListBindingsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the Services registered with this broker for consumption for
# given service registry broker, which contains an set of services.
# Note, that Service producer API is separate from Broker API.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [Fixnum] page_size
# Specifies the number of results to return per page. If there are fewer
# elements than the specified number, returns all elements.
# Optional. If unset or 0, all the results will be returned.
# @param [String] page_token
# Specifies a page token to use. Set `pageToken` to a `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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListCatalogResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListCatalogResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_broker_v2_catalogs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/v2/catalog', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListCatalogResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ListCatalogResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Provisions a service instance.
# If `request.accepts_incomplete` is false and Broker cannot execute request
# synchronously HTTP 422 error will be returned along with
# FAILED_PRECONDITION status.
# If `request.accepts_incomplete` is true and the Broker decides to execute
# resource asynchronously then HTTP 202 response code will be returned and a
# valid polling operation in the response will be included.
# If Broker executes the request synchronously and it succeeds HTTP 201
# response will be furnished.
# If identical instance exists, then HTTP 200 response will be returned.
# If an instance with identical ID but mismatching parameters exists, then
# HTTP 409 status code will be returned.
# @param [String] parent
# Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`.
# @param [String] instance_id
# The id of the service instance. Must be unique within GCP project.
# Maximum length is 64, GUID recommended.
# Required.
# @param [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance] google_cloud_servicebroker_v1beta1__service_instance_object
# @param [Boolean] accepts_incomplete
# Value indicating that API client supports asynchronous operations. If
# Broker cannot execute the request synchronously HTTP 422 code will be
# returned to HTTP clients along with FAILED_PRECONDITION error.
# If true and broker will execute request asynchronously 202 HTTP code will
# be returned.
# This broker always requires this to be true as all mutator operations are
# asynchronous.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1CreateServiceInstanceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1CreateServiceInstanceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_broker_v2_service_instance(parent, instance_id, google_cloud_servicebroker_v1beta1__service_instance_object = nil, accepts_incomplete: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+parent}/v2/service_instances/{+instance_id}', options)
command.request_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance::Representation
command.request_object = google_cloud_servicebroker_v1beta1__service_instance_object
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1CreateServiceInstanceResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1CreateServiceInstanceResponse
command.params['parent'] = parent unless parent.nil?
command.params['instance_id'] = instance_id unless instance_id.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deprovisions a service instance.
# For synchronous/asynchronous request details see CreateServiceInstance
# method.
# If service instance does not exist HTTP 410 status will be returned.
# @param [String] name
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +
# `v2/service_instances/[INSTANCE_ID]`
# or
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.
# @param [Boolean] accepts_incomplete
# See CreateServiceInstanceRequest for details.
# @param [String] plan_id
# The plan id of the service instance.
# @param [String] service_id
# The service id of the service instance.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DeleteServiceInstanceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DeleteServiceInstanceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_broker_v2_service_instance(name, accepts_incomplete: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DeleteServiceInstanceResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DeleteServiceInstanceResponse
command.params['name'] = name unless name.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the given service instance from the system.
# The API call accepts both OSB style API and standard google style API
# resource path.
# i.e. both `projects/*/brokers/*/instances/*`
# and `projects/*/brokers/*/v2/service_instances/*` are acceptable paths.
# @param [String] name
# The resource name of the instance to return.
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` +
# `v2/service_instances/[INSTANCE_ID]`
# or
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_v2_service_instance(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the state of the last operation for the service instance.
# Only last (or current) operation can be polled.
# @param [String] name
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+
# `service_instances/[INSTANCE_ID]`.
# @param [String] operation
# If `operation` was returned during mutation operation, this field must be
# populated with the provided value.
# @param [String] plan_id
# Plan id.
# @param [String] service_id
# Service id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_v2_service_instance_last_operation(name, operation: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/last_operation', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation
command.params['name'] = name unless name.nil?
command.query['operation'] = operation unless operation.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing service instance.
# See CreateServiceInstance for possible response codes.
# @param [String] name
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`.
# @param [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance] google_cloud_servicebroker_v1beta1__service_instance_object
# @param [Boolean] accepts_incomplete
# See CreateServiceInstanceRequest for details.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1UpdateServiceInstanceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1UpdateServiceInstanceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_project_broker_v2_service_instance(name, google_cloud_servicebroker_v1beta1__service_instance_object = nil, accepts_incomplete: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1ServiceInstance::Representation
command.request_object = google_cloud_servicebroker_v1beta1__service_instance_object
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1UpdateServiceInstanceResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1UpdateServiceInstanceResponse
command.params['name'] = name unless name.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# CreateBinding generates a service binding to an existing service instance.
# See ProviServiceInstance for async operation details.
# @param [String] parent
# The GCP container.
# Must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`.
# @param [String] binding_id
# The id of the binding. Must be unique within GCP project.
# Maximum length is 64, GUID recommended.
# Required.
# @param [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Binding] google_cloud_servicebroker_v1beta1__binding_object
# @param [Boolean] accepts_incomplete
# See CreateServiceInstanceRequest for details.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1CreateBindingResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1CreateBindingResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_broker_v2_service_instance_service_binding(parent, binding_id, google_cloud_servicebroker_v1beta1__binding_object = nil, accepts_incomplete: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+parent}/service_bindings/{+binding_id}', options)
command.request_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Binding::Representation
command.request_object = google_cloud_servicebroker_v1beta1__binding_object
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1CreateBindingResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1CreateBindingResponse
command.params['parent'] = parent unless parent.nil?
command.params['binding_id'] = binding_id unless binding_id.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Unbinds from a service instance.
# For synchronous/asynchronous request details see CreateServiceInstance
# method.
# If binding does not exist HTTP 410 status will be returned.
# @param [String] name
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/`
# `v2/service_instances/[INSTANCE_ID]/service_bindings/[BINDING_ID]`
# or
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/`
# `/instances/[INSTANCE_ID]/bindings/[BINDING_ID]`.
# @param [Boolean] accepts_incomplete
# See CreateServiceInstanceRequest for details.
# @param [String] plan_id
# The plan id of the service instance.
# @param [String] service_id
# Additional query parameter hints.
# The service id of the service instance.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DeleteBindingResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DeleteBindingResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_broker_v2_service_instance_service_binding(name, accepts_incomplete: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DeleteBindingResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1DeleteBindingResponse
command.params['name'] = name unless name.nil?
command.query['acceptsIncomplete'] = accepts_incomplete unless accepts_incomplete.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# GetBinding returns the binding information.
# @param [String] name
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/
# service_bindings`.
# @param [String] plan_id
# Plan id.
# @param [String] service_id
# Service id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1GetBindingResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1GetBindingResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_v2_service_instance_service_binding(name, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1GetBindingResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1GetBindingResponse
command.params['name'] = name unless name.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the state of the last operation for the binding.
# Only last (or current) operation can be polled.
# @param [String] name
# Name must match
# `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/
# service_binding/[BINDING_ID]`.
# @param [String] operation
# If `operation` was returned during mutation operation, this field must be
# populated with the provided value.
# @param [String] plan_id
# Plan id.
# @param [String] service_id
# Service id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_broker_v2_service_instance_service_binding_last_operation(name, operation: nil, plan_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/last_operation', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleCloudServicebrokerV1beta1Operation
command.params['name'] = name unless name.nil?
command.query['operation'] = operation unless operation.nil?
command.query['planId'] = plan_id unless plan_id.nil?
command.query['serviceId'] = service_id unless service_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicebrokerV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_iam_policy(resource, google_iam_v1__set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::ServicebrokerV1beta1::GoogleIamV1SetIamPolicyRequest::Representation
command.request_object = google_iam_v1__set_iam_policy_request_object
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::ServicebrokerV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicebrokerV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicebrokerV1beta1::GoogleIamV1TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_iam_permissions(resource, google_iam_v1__test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::ServicebrokerV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation
command.request_object = google_iam_v1__test_iam_permissions_request_object
command.response_representation = Google::Apis::ServicebrokerV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::ServicebrokerV1beta1::GoogleIamV1TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -59,12 +57,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -92,12 +88,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -126,12 +120,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -163,12 +155,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -198,12 +188,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -234,12 +222,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -272,12 +258,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -25,7 +25,7 @@ module Google
# @see http://developers.google.com/spectrum
module SpectrumV1explorer
VERSION = 'V1explorer'
REVISION = '20170306'
REVISION = '20180313'
end
end
end

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -60,12 +58,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -96,12 +92,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -131,12 +125,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -169,12 +161,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -205,12 +195,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -242,12 +230,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -59,12 +57,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -92,12 +88,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -130,12 +124,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -169,12 +161,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -208,12 +198,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -244,12 +232,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -280,12 +266,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -321,12 +305,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -363,12 +345,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -405,12 +385,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -444,12 +422,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -483,12 +459,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -527,12 +501,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -575,12 +547,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -618,12 +588,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -660,12 +628,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -699,12 +665,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -738,12 +702,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -782,12 +744,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -826,12 +786,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -874,12 +832,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -919,12 +875,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -961,12 +915,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1003,12 +955,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1042,12 +992,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1081,12 +1029,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1125,12 +1071,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1168,12 +1112,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1210,12 +1152,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1249,12 +1189,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1288,12 +1226,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1332,12 +1268,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1375,12 +1309,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1417,12 +1349,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1456,12 +1386,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1495,12 +1423,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1539,12 +1465,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1582,12 +1506,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1624,12 +1546,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1664,12 +1584,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1707,12 +1625,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1752,12 +1668,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1797,12 +1711,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1838,12 +1750,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1883,12 +1793,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1924,12 +1832,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1964,12 +1870,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2000,12 +1904,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2037,12 +1939,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2075,12 +1975,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/test-lab/
module ToolresultsV1beta3
VERSION = 'V1beta3'
REVISION = '20180416'
REVISION = '20180426'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -38,14 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
@ -62,12 +60,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -116,12 +112,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -162,12 +156,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -208,12 +200,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -263,12 +253,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -315,12 +303,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -365,12 +351,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -421,12 +405,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -473,12 +455,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -523,12 +503,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -574,12 +552,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -629,12 +605,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -683,12 +657,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -729,12 +701,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -790,12 +760,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -850,12 +818,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -907,12 +873,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -957,12 +921,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1007,12 +969,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1057,12 +1017,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1109,12 +1067,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1164,12 +1120,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1226,12 +1180,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1289,12 +1241,10 @@ module Google
# @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.
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#

File diff suppressed because it is too large Load Diff