Autogenerated update (2018-01-25)

Update:
- androiddeviceprovisioning_v1
- cloudresourcemanager_v1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2beta1
- dlp_v2beta2
- firebaseremoteconfig_v1
- iam_v1
- ml_v1
- safebrowsing_v4
- speech_v1
- tpu_v1alpha1
This commit is contained in:
Google APIs 2018-01-25 00:35:00 +00:00
parent 74d4292732
commit f98c7fa96a
31 changed files with 541 additions and 52 deletions

View File

@ -50938,6 +50938,8 @@
"/groupssettings:v1?force_alt_json": true
"/iam:v1/AuditData": audit_data
"/iam:v1/AuditData/policyDelta": policy_delta
"/iam:v1/AuditableService": auditable_service
"/iam:v1/AuditableService/name": name
"/iam:v1/Binding": binding
"/iam:v1/Binding/members": members
"/iam:v1/Binding/members/member": member
@ -50975,6 +50977,7 @@
"/iam:v1/ListServiceAccountsResponse/accounts/account": account
"/iam:v1/ListServiceAccountsResponse/nextPageToken": next_page_token
"/iam:v1/Permission": permission
"/iam:v1/Permission/apiDisabled": api_disabled
"/iam:v1/Permission/customRolesSupportLevel": custom_roles_support_level
"/iam:v1/Permission/description": description
"/iam:v1/Permission/name": name
@ -50989,6 +50992,11 @@
"/iam:v1/PolicyDelta": policy_delta
"/iam:v1/PolicyDelta/bindingDeltas": binding_deltas
"/iam:v1/PolicyDelta/bindingDeltas/binding_delta": binding_delta
"/iam:v1/QueryAuditableServicesRequest": query_auditable_services_request
"/iam:v1/QueryAuditableServicesRequest/fullResourceName": full_resource_name
"/iam:v1/QueryAuditableServicesResponse": query_auditable_services_response
"/iam:v1/QueryAuditableServicesResponse/services": services
"/iam:v1/QueryAuditableServicesResponse/services/service": service
"/iam:v1/QueryGrantableRolesRequest": query_grantable_roles_request
"/iam:v1/QueryGrantableRolesRequest/fullResourceName": full_resource_name
"/iam:v1/QueryGrantableRolesRequest/pageSize": page_size
@ -51052,6 +51060,7 @@
"/iam:v1/UndeleteRoleRequest": undelete_role_request
"/iam:v1/UndeleteRoleRequest/etag": etag
"/iam:v1/fields": fields
"/iam:v1/iam.iamPolicies.queryAuditableServices": query_iam_policy_auditable_services
"/iam:v1/iam.organizations.roles.create": create_organization_role
"/iam:v1/iam.organizations.roles.create/parent": parent
"/iam:v1/iam.organizations.roles.delete": delete_organization_role
@ -52958,6 +52967,7 @@
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/finalMetric": final_metric
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/hyperparameters": hyperparameters
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/hyperparameters/hyperparameter": hyperparameter
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/isTrialStoppedEarly": is_trial_stopped_early
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput/trialId": trial_id
"/ml:v1/GoogleCloudMlV1__HyperparameterSpec": google_cloud_ml_v1__hyperparameter_spec
"/ml:v1/GoogleCloudMlV1__HyperparameterSpec/goal": goal
@ -58407,6 +58417,7 @@
"/safebrowsing:v4/ClientInfo/clientId": client_id
"/safebrowsing:v4/ClientInfo/clientVersion": client_version
"/safebrowsing:v4/Constraints": constraints
"/safebrowsing:v4/Constraints/language": language
"/safebrowsing:v4/Constraints/maxDatabaseEntries": max_database_entries
"/safebrowsing:v4/Constraints/maxUpdateEntries": max_update_entries
"/safebrowsing:v4/Constraints/region": region
@ -62666,6 +62677,7 @@
"/speech:v1/RecognitionAudio/content": content
"/speech:v1/RecognitionAudio/uri": uri
"/speech:v1/RecognitionConfig": recognition_config
"/speech:v1/RecognitionConfig/enableWordConfidence": enable_word_confidence
"/speech:v1/RecognitionConfig/enableWordTimeOffsets": enable_word_time_offsets
"/speech:v1/RecognitionConfig/encoding": encoding
"/speech:v1/RecognitionConfig/languageCode": language_code
@ -67099,6 +67111,10 @@
"/tpu:v1alpha1/ListOperationsResponse/nextPageToken": next_page_token
"/tpu:v1alpha1/ListOperationsResponse/operations": operations
"/tpu:v1alpha1/ListOperationsResponse/operations/operation": operation
"/tpu:v1alpha1/ListTensorFlowVersionsResponse": list_tensor_flow_versions_response
"/tpu:v1alpha1/ListTensorFlowVersionsResponse/nextPageToken": next_page_token
"/tpu:v1alpha1/ListTensorFlowVersionsResponse/tensorflowVersions": tensorflow_versions
"/tpu:v1alpha1/ListTensorFlowVersionsResponse/tensorflowVersions/tensorflow_version": tensorflow_version
"/tpu:v1alpha1/Location": location
"/tpu:v1alpha1/Location/labels": labels
"/tpu:v1alpha1/Location/labels/label": label
@ -67117,6 +67133,8 @@
"/tpu:v1alpha1/Node/health": health
"/tpu:v1alpha1/Node/healthDescription": health_description
"/tpu:v1alpha1/Node/ipAddress": ip_address
"/tpu:v1alpha1/Node/labels": labels
"/tpu:v1alpha1/Node/labels/label": label
"/tpu:v1alpha1/Node/name": name
"/tpu:v1alpha1/Node/network": network
"/tpu:v1alpha1/Node/networkEndpoints": network_endpoints
@ -67144,12 +67162,17 @@
"/tpu:v1alpha1/ReimageNodeRequest": reimage_node_request
"/tpu:v1alpha1/ReimageNodeRequest/tensorflowVersion": tensorflow_version
"/tpu:v1alpha1/ResetNodeRequest": reset_node_request
"/tpu:v1alpha1/StartNodeRequest": start_node_request
"/tpu:v1alpha1/Status": status
"/tpu:v1alpha1/Status/code": code
"/tpu:v1alpha1/Status/details": details
"/tpu:v1alpha1/Status/details/detail": detail
"/tpu:v1alpha1/Status/details/detail/detail": detail
"/tpu:v1alpha1/Status/message": message
"/tpu:v1alpha1/StopNodeRequest": stop_node_request
"/tpu:v1alpha1/TensorFlowVersion": tensor_flow_version
"/tpu:v1alpha1/TensorFlowVersion/name": name
"/tpu:v1alpha1/TensorFlowVersion/version": version
"/tpu:v1alpha1/fields": fields
"/tpu:v1alpha1/key": key
"/tpu:v1alpha1/quotaUser": quota_user
@ -67176,6 +67199,10 @@
"/tpu:v1alpha1/tpu.projects.locations.nodes.reimage/tensorflowVersion": tensorflow_version
"/tpu:v1alpha1/tpu.projects.locations.nodes.reset": reset_project_location_node
"/tpu:v1alpha1/tpu.projects.locations.nodes.reset/name": name
"/tpu:v1alpha1/tpu.projects.locations.nodes.start": start_node
"/tpu:v1alpha1/tpu.projects.locations.nodes.start/name": name
"/tpu:v1alpha1/tpu.projects.locations.nodes.stop": stop_node
"/tpu:v1alpha1/tpu.projects.locations.nodes.stop/name": name
"/tpu:v1alpha1/tpu.projects.locations.operations.cancel": cancel_project_location_operation
"/tpu:v1alpha1/tpu.projects.locations.operations.cancel/name": name
"/tpu:v1alpha1/tpu.projects.locations.operations.delete": delete_project_location_operation
@ -67187,6 +67214,14 @@
"/tpu:v1alpha1/tpu.projects.locations.operations.list/name": name
"/tpu:v1alpha1/tpu.projects.locations.operations.list/pageSize": page_size
"/tpu:v1alpha1/tpu.projects.locations.operations.list/pageToken": page_token
"/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.get": get_project_location_tensorflow_version
"/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.get/name": name
"/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list": list_project_location_tensorflow_versions
"/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list/filter": filter
"/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list/orderBy": order_by
"/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list/pageSize": page_size
"/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list/pageToken": page_token
"/tpu:v1alpha1/tpu.projects.locations.tensorflowVersions.list/parent": parent
"/translate:v2/DetectLanguageRequest": detect_language_request
"/translate:v2/DetectLanguageRequest/q": q
"/translate:v2/DetectLanguageRequest/q/q": q

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/zero-touch/
module AndroiddeviceprovisioningV1
VERSION = 'V1'
REVISION = '20180114'
REVISION = '20180120'
end
end
end

View File

@ -324,13 +324,13 @@ module Google
class CustomerListCustomersResponse
include Google::Apis::Core::Hashable
# Customers the current user can act as.
# The customer accounts the calling user is a member of.
# Corresponds to the JSON property `customers`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
attr_accessor :customers
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# A token used to access the next page of results. Omitted if no further
# results are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token

View File

@ -48,11 +48,12 @@ module Google
@batch_path = 'batch'
end
# List the user's customer accounts.
# Lists the user's customer accounts.
# @param [Fixnum] page_size
# The maximum number of items to return.
# The maximum number of customers to show in a page of results.
# A number between 1 and 1000 (inclusive).
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# A token specifying which result page to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
REVISION = '20180103'
REVISION = '20180122'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -51,7 +51,7 @@ module Google
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1
VERSION = 'V1beta1'
REVISION = '20180103'
REVISION = '20180122'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -51,7 +51,7 @@ module Google
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2beta1
VERSION = 'V2beta1'
REVISION = '20180103'
REVISION = '20180122'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -29,7 +29,7 @@ module Google
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# AuditLogConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/
module DlpV2beta2
VERSION = 'V2beta2'
REVISION = '20180109'
REVISION = '20180123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -123,7 +123,8 @@ module Google
# Deletes inspect templates.
# @param [String] name
# Resource name of the organization and deidentify template to be deleted,
# for example `organizations/433245324/deidentifyTemplates/432452342`.
# for example `organizations/433245324/deidentifyTemplates/432452342` or
# projects/project-id/deidentifyTemplates/432452342.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -154,7 +155,8 @@ module Google
# Gets an inspect template.
# @param [String] name
# Resource name of the organization and deidentify template to be read, for
# example `organizations/433245324/deidentifyTemplates/432452342`.
# example `organizations/433245324/deidentifyTemplates/432452342` or
# projects/project-id/deidentifyTemplates/432452342.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -224,7 +226,8 @@ module Google
# Updates the inspect template.
# @param [String] name
# Resource name of organization and deidentify template to be updated, for
# example `organizations/433245324/deidentifyTemplates/432452342`.
# example `organizations/433245324/deidentifyTemplates/432452342` or
# projects/project-id/deidentifyTemplates/432452342.
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_update_deidentify_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -293,7 +296,8 @@ module Google
# Deletes inspect templates.
# @param [String] name
# Resource name of the organization and inspectTemplate to be deleted, for
# example `organizations/433245324/inspectTemplates/432452342`.
# example `organizations/433245324/inspectTemplates/432452342` or
# projects/project-id/inspectTemplates/432452342.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -324,7 +328,8 @@ module Google
# Gets an inspect template.
# @param [String] name
# Resource name of the organization and inspectTemplate to be read, for
# example `organizations/433245324/inspectTemplates/432452342`.
# example `organizations/433245324/inspectTemplates/432452342` or
# projects/project-id/inspectTemplates/432452342.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -394,7 +399,8 @@ module Google
# Updates the inspect template.
# @param [String] name
# Resource name of organization and inspectTemplate to be updated, for
# example `organizations/433245324/inspectTemplates/432452342`.
# example `organizations/433245324/inspectTemplates/432452342` or
# projects/project-id/inspectTemplates/432452342.
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest] google_privacy_dlp_v2beta2_update_inspect_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -530,7 +536,7 @@ module Google
end
# Schedules a job to compute risk analysis metrics over content in a Google
# Cloud Platform repository. [How-to guide`(/dlp/docs/compute-risk-analysis)
# Cloud Platform repository. [How-to guide](/dlp/docs/compute-risk-analysis)
# @param [String] parent
# The parent resource name, for example projects/my-project-id.
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest] google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object
@ -635,7 +641,8 @@ module Google
# Deletes inspect templates.
# @param [String] name
# Resource name of the organization and deidentify template to be deleted,
# for example `organizations/433245324/deidentifyTemplates/432452342`.
# for example `organizations/433245324/deidentifyTemplates/432452342` or
# projects/project-id/deidentifyTemplates/432452342.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -666,7 +673,8 @@ module Google
# Gets an inspect template.
# @param [String] name
# Resource name of the organization and deidentify template to be read, for
# example `organizations/433245324/deidentifyTemplates/432452342`.
# example `organizations/433245324/deidentifyTemplates/432452342` or
# projects/project-id/deidentifyTemplates/432452342.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -736,7 +744,8 @@ module Google
# Updates the inspect template.
# @param [String] name
# Resource name of organization and deidentify template to be updated, for
# example `organizations/433245324/deidentifyTemplates/432452342`.
# example `organizations/433245324/deidentifyTemplates/432452342` or
# projects/project-id/deidentifyTemplates/432452342.
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_update_deidentify_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -995,7 +1004,8 @@ module Google
# Deletes inspect templates.
# @param [String] name
# Resource name of the organization and inspectTemplate to be deleted, for
# example `organizations/433245324/inspectTemplates/432452342`.
# example `organizations/433245324/inspectTemplates/432452342` or
# projects/project-id/inspectTemplates/432452342.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1026,7 +1036,8 @@ module Google
# Gets an inspect template.
# @param [String] name
# Resource name of the organization and inspectTemplate to be read, for
# example `organizations/433245324/inspectTemplates/432452342`.
# example `organizations/433245324/inspectTemplates/432452342` or
# projects/project-id/inspectTemplates/432452342.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1096,7 +1107,8 @@ module Google
# Updates the inspect template.
# @param [String] name
# Resource name of organization and inspectTemplate to be updated, for
# example `organizations/433245324/inspectTemplates/432452342`.
# example `organizations/433245324/inspectTemplates/432452342` or
# projects/project-id/inspectTemplates/432452342.
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest] google_privacy_dlp_v2beta2_update_inspect_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com/docs/remote-config/
module FirebaseremoteconfigV1
VERSION = 'V1'
REVISION = '20171016'
REVISION = '20180122'
end
end
end

View File

@ -74,7 +74,7 @@ module Google
class RemoteConfigCondition
include Google::Apis::Core::Hashable
# Optional.
# DO NOT USE. Implementation removed and will not be added unless requested.
# A description for this Condition. Length must be less than or equal to
# 100 characters (or more precisely, unicode code points, which is defined in
# java/com/google/wireless/android/config/ConstsExporter.java).

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/
module IamV1
VERSION = 'V1'
REVISION = '20180105'
REVISION = '20180118'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -43,6 +43,26 @@ module Google
end
end
# Contains information about an auditable service.
class AuditableService
include Google::Apis::Core::Hashable
# Public name of the service.
# For example, the service name for Cloud IAM is 'iam.googleapis.com'.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
@ -309,6 +329,12 @@ module Google
class Permission
include Google::Apis::Core::Hashable
# The service API associated with the permission is not enabled.
# Corresponds to the JSON property `apiDisabled`
# @return [Boolean]
attr_accessor :api_disabled
alias_method :api_disabled?, :api_disabled
# The current custom role support level.
# Corresponds to the JSON property `customRolesSupportLevel`
# @return [String]
@ -346,6 +372,7 @@ module Google
# Update properties of this object
def update!(**args)
@api_disabled = args[:api_disabled] if args.key?(:api_disabled)
@custom_roles_support_level = args[:custom_roles_support_level] if args.key?(:custom_roles_support_level)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@ -440,6 +467,48 @@ module Google
end
end
# A request to get the list of auditable services for a resource.
class QueryAuditableServicesRequest
include Google::Apis::Core::Hashable
# Required. The full resource name to query from the list of auditable
# services.
# The name follows the Google Cloud Platform resource format.
# For example, a Cloud Platform project with id `my-project` will be named
# `//cloudresourcemanager.googleapis.com/projects/my-project`.
# Corresponds to the JSON property `fullResourceName`
# @return [String]
attr_accessor :full_resource_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
end
end
# A response containing a list of auditable services for a resource.
class QueryAuditableServicesResponse
include Google::Apis::Core::Hashable
# The auditable services for a resource.
# Corresponds to the JSON property `services`
# @return [Array<Google::Apis::IamV1::AuditableService>]
attr_accessor :services
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@services = args[:services] if args.key?(:services)
end
end
# The grantable role query request.
class QueryGrantableRolesRequest
include Google::Apis::Core::Hashable

View File

@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AuditableService
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -100,6 +106,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class QueryAuditableServicesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryAuditableServicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryGrantableRolesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -198,6 +216,13 @@ module Google
end
end
class AuditableService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -276,6 +301,7 @@ module Google
class Permission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_disabled, as: 'apiDisabled'
property :custom_roles_support_level, as: 'customRolesSupportLevel'
property :description, as: 'description'
property :name, as: 'name'
@ -303,6 +329,21 @@ module Google
end
end
class QueryAuditableServicesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :full_resource_name, as: 'fullResourceName'
end
end
class QueryAuditableServicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :services, as: 'services', class: Google::Apis::IamV1::AuditableService, decorator: Google::Apis::IamV1::AuditableService::Representation
end
end
class QueryGrantableRolesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -49,6 +49,37 @@ module Google
@batch_path = 'batch'
end
# Returns a list of services that support service level audit logging
# configuration for the given resource.
# @param [Google::Apis::IamV1::QueryAuditableServicesRequest] query_auditable_services_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::IamV1::QueryAuditableServicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::IamV1::QueryAuditableServicesResponse]
#
# @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 query_iam_policy_auditable_services(query_auditable_services_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/iamPolicies:queryAuditableServices', options)
command.request_representation = Google::Apis::IamV1::QueryAuditableServicesRequest::Representation
command.request_object = query_auditable_services_request_object
command.response_representation = Google::Apis::IamV1::QueryAuditableServicesResponse::Representation
command.response_class = Google::Apis::IamV1::QueryAuditableServicesResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new Role.
# @param [String] parent
# The resource name of the parent resource in one of the following formats:

View File

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

View File

@ -227,6 +227,12 @@ module Google
# @return [Hash<String,String>]
attr_accessor :hyperparameters
# True if the trial is stopped early.
# Corresponds to the JSON property `isTrialStoppedEarly`
# @return [Boolean]
attr_accessor :is_trial_stopped_early
alias_method :is_trial_stopped_early?, :is_trial_stopped_early
# The trial id for these results.
# Corresponds to the JSON property `trialId`
# @return [String]
@ -241,6 +247,7 @@ module Google
@all_metrics = args[:all_metrics] if args.key?(:all_metrics)
@final_metric = args[:final_metric] if args.key?(:final_metric)
@hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
@is_trial_stopped_early = args[:is_trial_stopped_early] if args.key?(:is_trial_stopped_early)
@trial_id = args[:trial_id] if args.key?(:trial_id)
end
end

View File

@ -286,6 +286,7 @@ module Google
property :final_metric, as: 'finalMetric', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::Representation
hash :hyperparameters, as: 'hyperparameters'
property :is_trial_stopped_early, as: 'isTrialStoppedEarly'
property :trial_id, as: 'trialId'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/safe-browsing/
module SafebrowsingV4
VERSION = 'V4'
REVISION = '20171203'
REVISION = '20180123'
end
end
end

View File

@ -73,6 +73,12 @@ module Google
class Constraints
include Google::Apis::Core::Hashable
# Requests the lists for a specific language. Expects ISO 639 alpha-2
# format.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# Sets the maximum number of entries that the client is willing to have
# in the local database. This should be a power of 2 between 2**10 and
# 2**20. If zero, no database size limit is set.
@ -105,6 +111,7 @@ module Google
# Update properties of this object
def update!(**args)
@language = args[:language] if args.key?(:language)
@max_database_entries = args[:max_database_entries] if args.key?(:max_database_entries)
@max_update_entries = args[:max_update_entries] if args.key?(:max_update_entries)
@region = args[:region] if args.key?(:region)

View File

@ -196,6 +196,7 @@ module Google
class Constraints
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :language, as: 'language'
property :max_database_entries, as: 'maxDatabaseEntries'
property :max_update_entries, as: 'maxUpdateEntries'
property :region, as: 'region'

View File

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

View File

@ -190,6 +190,14 @@ module Google
class RecognitionConfig
include Google::Apis::Core::Hashable
# *Optional* If `true`, the top result includes a list of words and the
# confidence for those words. If `false`, no word-level confidence
# information is returned. The default is `false`.
# Corresponds to the JSON property `enableWordConfidence`
# @return [Boolean]
attr_accessor :enable_word_confidence
alias_method :enable_word_confidence?, :enable_word_confidence
# *Optional* If `true`, the top result includes a list of words and
# the start and end time offsets (timestamps) for those words. If
# `false`, no word-level time offset information is returned. The default is
@ -252,6 +260,7 @@ module Google
# Update properties of this object
def update!(**args)
@enable_word_confidence = args[:enable_word_confidence] if args.key?(:enable_word_confidence)
@enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
@encoding = args[:encoding] if args.key?(:encoding)
@language_code = args[:language_code] if args.key?(:language_code)
@ -344,10 +353,10 @@ module Google
# *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
# correct. This field is typically provided only for the top hypothesis, and
# only for `is_final=true` results. Clients should not rely on the
# `confidence` field as it is not guaranteed to be accurate, or even set, in
# any of the results.
# correct. This field is set only for the top alternative of a non-streaming
# result or, of a streaming result where `is_final=true`.
# This field is not guaranteed to be accurate and users should not rely on it
# to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
@ -469,9 +478,7 @@ module Google
end
end
# Word-specific information for recognized words. Word information is only
# included in the response when certain request parameters are set, such
# as `enable_word_time_offsets`.
# Word-specific information for recognized words.
class WordInfo
include Google::Apis::Core::Hashable

View File

@ -121,6 +121,7 @@ module Google
class RecognitionConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_word_confidence, as: 'enableWordConfidence'
property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
property :encoding, as: 'encoding'
property :language_code, as: 'languageCode'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tpu/
module TpuV1alpha1
VERSION = 'V1alpha1'
REVISION = '20171218'
REVISION = '20180123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -116,6 +116,31 @@ module Google
end
end
# Response for ListTensorFlowVersions.
class ListTensorFlowVersionsResponse
include Google::Apis::Core::Hashable
# The next page token or empty if none.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The listed nodes.
# Corresponds to the JSON property `tensorflowVersions`
# @return [Array<Google::Apis::TpuV1alpha1::TensorFlowVersion>]
attr_accessor :tensorflow_versions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@tensorflow_versions = args[:tensorflow_versions] if args.key?(:tensorflow_versions)
end
end
# A resource that represents Google Cloud Platform location.
class Location
include Google::Apis::Core::Hashable
@ -191,13 +216,14 @@ module Google
# @return [String]
attr_accessor :accelerator_type
# The CIDR block that the TPU node will use when selecting //an IP address.
# This CIDR block must be a /29 block; the GCE networks API forbids a smaller
# block, and using a larger block would be wasteful (a node can only consume
# one IP address). Errors will occur if the CIDR block has already been used
# for a currently existing TPU node, the CIDR block conflicts with any
# subnetworks in the user's provided network, or the provided network is
# peered with another network that is using that CIDR block.
# The CIDR block that the TPU node will use when selecting an IP address.
# This CIDR block must be a /29 block; the Compute Engine networks API
# forbids a smaller block, and using a larger block would be wasteful (a
# node can only consume one IP address). Errors will occur if the CIDR block
# has already been used for a currently existing TPU node, the CIDR block
# conflicts with any subnetworks in the user's provided network, or the
# provided network is peered with another network that is using that CIDR
# block.
# Required.
# Corresponds to the JSON property `cidrBlock`
# @return [String]
@ -228,11 +254,17 @@ module Google
# Output only.
# DEPRECATED! Use network_endpoints instead.
# The network address for the TPU Node as visible to GCE instances.
# The network address for the TPU Node as visible to Compute Engine
# instances.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
# Resource labels to represent user-provided metadata.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Output only.
# The immutable name of the TPU
# Corresponds to the JSON property `name`
@ -240,8 +272,8 @@ module Google
attr_accessor :name
# The name of a network they wish to peer the TPU node to. It must be a
# preexisting GCE network inside of the project on which this API has been
# activated. If none is provided, "default" will be used.
# preexisting Compute Engine network inside of the project on which this API
# has been activated. If none is provided, "default" will be used.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
@ -256,7 +288,7 @@ module Google
# Output only.
# DEPRECATED! Use network_endpoints instead.
# The network port for the TPU Node as visible to GCE instances.
# The network port for the TPU Node as visible to Compute Engine instances.
# Corresponds to the JSON property `port`
# @return [String]
attr_accessor :port
@ -295,6 +327,7 @@ module Google
@health = args[:health] if args.key?(:health)
@health_description = args[:health_description] if args.key?(:health_description)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
@ -493,6 +526,19 @@ module Google
end
end
# Request for StartNode.
class StartNodeRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
@ -564,6 +610,44 @@ module Google
@message = args[:message] if args.key?(:message)
end
end
# Request for StopNode.
class StopNodeRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A tensorflow version that a Node can be configured with.
class TensorFlowVersion
include Google::Apis::Core::Hashable
# The resource name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# the tensorflow version.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@version = args[:version] if args.key?(:version)
end
end
end
end
end

View File

@ -46,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListTensorFlowVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,12 +94,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class StartNodeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StopNodeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TensorFlowVersion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -127,6 +151,15 @@ module Google
end
end
class ListTensorFlowVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :tensorflow_versions, as: 'tensorflowVersions', class: Google::Apis::TpuV1alpha1::TensorFlowVersion, decorator: Google::Apis::TpuV1alpha1::TensorFlowVersion::Representation
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -155,6 +188,7 @@ module Google
property :health, as: 'health'
property :health_description, as: 'healthDescription'
property :ip_address, as: 'ipAddress'
hash :labels, as: 'labels'
property :name, as: 'name'
property :network, as: 'network'
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV1alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV1alpha1::NetworkEndpoint::Representation
@ -204,6 +238,12 @@ module Google
end
end
class StartNodeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -212,6 +252,20 @@ module Google
property :message, as: 'message'
end
end
class StopNodeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class TensorFlowVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :version, as: 'version'
end
end
end
end
end

View File

@ -314,6 +314,72 @@ module Google
execute_or_queue_command(command, &block)
end
# Start a node.
# @param [String] name
# The resource name.
# @param [Google::Apis::TpuV1alpha1::StartNodeRequest] start_node_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::TpuV1alpha1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TpuV1alpha1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def start_node(name, start_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+name}:start', options)
command.request_representation = Google::Apis::TpuV1alpha1::StartNodeRequest::Representation
command.request_object = start_node_request_object
command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
command.response_class = Google::Apis::TpuV1alpha1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Stops a node.
# @param [String] name
# The resource name.
# @param [Google::Apis::TpuV1alpha1::StopNodeRequest] stop_node_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::TpuV1alpha1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TpuV1alpha1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def stop_node(name, stop_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha1/{+name}:stop', options)
command.request_representation = Google::Apis::TpuV1alpha1::StopNodeRequest::Representation
command.request_object = stop_node_request_object
command.response_representation = Google::Apis::TpuV1alpha1::Operation::Representation
command.response_class = Google::Apis::TpuV1alpha1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
@ -464,6 +530,78 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets TensorFlow Version.
# @param [String] name
# The resource name.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::TpuV1alpha1::TensorFlowVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TpuV1alpha1::TensorFlowVersion]
#
# @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_location_tensorflow_version(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
command.response_representation = Google::Apis::TpuV1alpha1::TensorFlowVersion::Representation
command.response_class = Google::Apis::TpuV1alpha1::TensorFlowVersion
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
# List TensorFlow versions.
# @param [String] parent
# The parent resource name.
# @param [String] filter
# List filter.
# @param [String] order_by
# Sort results.
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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::TpuV1alpha1::ListTensorFlowVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TpuV1alpha1::ListTensorFlowVersionsResponse]
#
# @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_location_tensorflow_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1alpha1/{+parent}/tensorflowVersions', options)
command.response_representation = Google::Apis::TpuV1alpha1::ListTensorFlowVersionsResponse::Representation
command.response_class = Google::Apis::TpuV1alpha1::ListTensorFlowVersionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.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
protected