diff --git a/api_names_out.yaml b/api_names_out.yaml
index decd69c64..848d84ac7 100644
--- a/api_names_out.yaml
+++ b/api_names_out.yaml
@@ -11924,6 +11924,10 @@
"/classroom:v1/ListTeachersResponse/nextPageToken": next_page_token
"/classroom:v1/ListTeachersResponse/teachers": teachers
"/classroom:v1/ListTeachersResponse/teachers/teacher": teacher
+"/classroom:v1/ListTopicResponse": list_topic_response
+"/classroom:v1/ListTopicResponse/nextPageToken": next_page_token
+"/classroom:v1/ListTopicResponse/topic": topic
+"/classroom:v1/ListTopicResponse/topic/topic": topic
"/classroom:v1/Material": material
"/classroom:v1/Material/driveFile": drive_file
"/classroom:v1/Material/form": form
@@ -12004,6 +12008,11 @@
"/classroom:v1/TimeOfDay/minutes": minutes
"/classroom:v1/TimeOfDay/nanos": nanos
"/classroom:v1/TimeOfDay/seconds": seconds
+"/classroom:v1/Topic": topic
+"/classroom:v1/Topic/courseId": course_id
+"/classroom:v1/Topic/name": name
+"/classroom:v1/Topic/topicId": topic_id
+"/classroom:v1/Topic/updateTime": update_time
"/classroom:v1/TurnInStudentSubmissionRequest": turn_in_student_submission_request
"/classroom:v1/UserProfile": user_profile
"/classroom:v1/UserProfile/emailAddress": email_address
@@ -12141,6 +12150,13 @@
"/classroom:v1/classroom.courses.teachers.list/courseId": course_id
"/classroom:v1/classroom.courses.teachers.list/pageSize": page_size
"/classroom:v1/classroom.courses.teachers.list/pageToken": page_token
+"/classroom:v1/classroom.courses.topics.get": get_course_topic
+"/classroom:v1/classroom.courses.topics.get/courseId": course_id
+"/classroom:v1/classroom.courses.topics.get/id": id
+"/classroom:v1/classroom.courses.topics.list": list_course_topics
+"/classroom:v1/classroom.courses.topics.list/courseId": course_id
+"/classroom:v1/classroom.courses.topics.list/pageSize": page_size
+"/classroom:v1/classroom.courses.topics.list/pageToken": page_token
"/classroom:v1/classroom.courses.update": update_course
"/classroom:v1/classroom.courses.update/id": id
"/classroom:v1/classroom.invitations.accept": accept_invitation
@@ -14547,6 +14563,8 @@
"/cloudtrace:v2/cloudtrace.projects.traces.listSpans/parent": parent
"/cloudtrace:v2/cloudtrace.projects.traces.spans.create": create_project_trace_span
"/cloudtrace:v2/cloudtrace.projects.traces.spans.create/name": name
+"/cloudtrace:v2/cloudtrace.projects.traces.spans.createSpan": create_project_trace_span_span
+"/cloudtrace:v2/cloudtrace.projects.traces.spans.createSpan/name": name
"/cloudtrace:v2/fields": fields
"/cloudtrace:v2/key": key
"/cloudtrace:v2/quotaUser": quota_user
@@ -43287,6 +43305,49 @@
"/dialogflow:v2beta1/fields": fields
"/dialogflow:v2beta1/key": key
"/dialogflow:v2beta1/quotaUser": quota_user
+"/digitalassetlinks:v1/AndroidAppAsset": android_app_asset
+"/digitalassetlinks:v1/AndroidAppAsset/certificate": certificate
+"/digitalassetlinks:v1/AndroidAppAsset/packageName": package_name
+"/digitalassetlinks:v1/Asset": asset
+"/digitalassetlinks:v1/Asset/androidApp": android_app
+"/digitalassetlinks:v1/Asset/web": web
+"/digitalassetlinks:v1/CertificateInfo": certificate_info
+"/digitalassetlinks:v1/CertificateInfo/sha256Fingerprint": sha256_fingerprint
+"/digitalassetlinks:v1/CheckResponse": check_response
+"/digitalassetlinks:v1/CheckResponse/debugString": debug_string
+"/digitalassetlinks:v1/CheckResponse/errorCode": error_code
+"/digitalassetlinks:v1/CheckResponse/errorCode/error_code": error_code
+"/digitalassetlinks:v1/CheckResponse/linked": linked
+"/digitalassetlinks:v1/CheckResponse/maxAge": max_age
+"/digitalassetlinks:v1/ListResponse": list_response
+"/digitalassetlinks:v1/ListResponse/debugString": debug_string
+"/digitalassetlinks:v1/ListResponse/errorCode": error_code
+"/digitalassetlinks:v1/ListResponse/errorCode/error_code": error_code
+"/digitalassetlinks:v1/ListResponse/maxAge": max_age
+"/digitalassetlinks:v1/ListResponse/statements": statements
+"/digitalassetlinks:v1/ListResponse/statements/statement": statement
+"/digitalassetlinks:v1/Statement": statement
+"/digitalassetlinks:v1/Statement/relation": relation
+"/digitalassetlinks:v1/Statement/source": source
+"/digitalassetlinks:v1/Statement/target": target
+"/digitalassetlinks:v1/WebAsset": web_asset
+"/digitalassetlinks:v1/WebAsset/site": site
+"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check": check_assetlink
+"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/relation": relation
+"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/source.androidApp.certificate.sha256Fingerprint": source_android_app_certificate_sha256_fingerprint
+"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/source.androidApp.packageName": source_android_app_package_name
+"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/source.web.site": source_web_site
+"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/target.androidApp.certificate.sha256Fingerprint": target_android_app_certificate_sha256_fingerprint
+"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/target.androidApp.packageName": target_android_app_package_name
+"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/target.web.site": target_web_site
+"/digitalassetlinks:v1/digitalassetlinks.statements.list": list_statements
+"/digitalassetlinks:v1/digitalassetlinks.statements.list/relation": relation
+"/digitalassetlinks:v1/digitalassetlinks.statements.list/source.androidApp.certificate.sha256Fingerprint": source_android_app_certificate_sha256_fingerprint
+"/digitalassetlinks:v1/digitalassetlinks.statements.list/source.androidApp.packageName": source_android_app_package_name
+"/digitalassetlinks:v1/digitalassetlinks.statements.list/source.web.site": source_web_site
+"/digitalassetlinks:v1/fields": fields
+"/digitalassetlinks:v1/key": key
+"/digitalassetlinks:v1/quotaUser": quota_user
"/discovery:v1/DirectoryList": directory_list
"/discovery:v1/DirectoryList/discoveryVersion": discovery_version
"/discovery:v1/DirectoryList/items": items
@@ -65253,6 +65314,8 @@
"/testing:v1/AndroidRoboTest/maxSteps": max_steps
"/testing:v1/AndroidRoboTest/roboDirectives": robo_directives
"/testing:v1/AndroidRoboTest/roboDirectives/robo_directive": robo_directive
+"/testing:v1/AndroidRoboTest/startingIntents": starting_intents
+"/testing:v1/AndroidRoboTest/startingIntents/starting_intent": starting_intent
"/testing:v1/AndroidRuntimeConfiguration": android_runtime_configuration
"/testing:v1/AndroidRuntimeConfiguration/locales": locales
"/testing:v1/AndroidRuntimeConfiguration/locales/locale": locale
@@ -65305,6 +65368,7 @@
"/testing:v1/GoogleAuto": google_auto
"/testing:v1/GoogleCloudStorage": google_cloud_storage
"/testing:v1/GoogleCloudStorage/gcsPath": gcs_path
+"/testing:v1/LauncherActivityIntent": launcher_activity_intent
"/testing:v1/Locale": locale
"/testing:v1/Locale/id": id
"/testing:v1/Locale/name": name
@@ -65334,6 +65398,14 @@
"/testing:v1/RoboDirective/actionType": action_type
"/testing:v1/RoboDirective/inputText": input_text
"/testing:v1/RoboDirective/resourceName": resource_name
+"/testing:v1/RoboStartingIntent": robo_starting_intent
+"/testing:v1/RoboStartingIntent/launcherActivity": launcher_activity
+"/testing:v1/RoboStartingIntent/startActivity": start_activity
+"/testing:v1/StartActivityIntent": start_activity_intent
+"/testing:v1/StartActivityIntent/action": action
+"/testing:v1/StartActivityIntent/categories": categories
+"/testing:v1/StartActivityIntent/categories/category": category
+"/testing:v1/StartActivityIntent/uri": uri
"/testing:v1/TestDetails": test_details
"/testing:v1/TestDetails/errorMessage": error_message
"/testing:v1/TestDetails/progressMessages": progress_messages
diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb
index 6b45fd012..6bb9e0deb 100644
--- a/generated/google/apis/adexchangebuyer2_v2beta1.rb
+++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
- REVISION = '20171208'
+ REVISION = '20171212'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb
index 01cca5091..54e29d7a3 100644
--- a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb
+++ b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb
@@ -552,7 +552,7 @@ module Google
# not_checked`
#
attribute: `a numeric attribute from the list of attributes`
# disapprovalReason: `a reason from
- # DisapprovalReason
+ # DisapprovalReason`
#
# Example: 'accountId=12345 AND (dealsStatus:disapproved AND
# disapprovalReason:unacceptable_content) OR attribute:47'
diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb
index c7d2d5e72..f303b1cf4 100644
--- a/generated/google/apis/appengine_v1.rb
+++ b/generated/google/apis/appengine_v1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
- REVISION = '20171109'
+ REVISION = '20171213'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
diff --git a/generated/google/apis/appengine_v1/classes.rb b/generated/google/apis/appengine_v1/classes.rb
index 94046586d..3ed7d8039 100644
--- a/generated/google/apis/appengine_v1/classes.rb
+++ b/generated/google/apis/appengine_v1/classes.rb
@@ -306,7 +306,7 @@ module Google
# Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
# autoscaler/) should wait between changes to the number of virtual machines.
- # Only applicable for VM runtimes.
+ # Only applicable in the App Engine flexible environment.
# Corresponds to the JSON property `coolDownPeriod`
# @return [String]
attr_accessor :cool_down_period
@@ -316,7 +316,8 @@ module Google
# @return [Google::Apis::AppengineV1::CpuUtilization]
attr_accessor :cpu_utilization
- # Target scaling by disk usage. Only applicable for VM runtimes.
+ # Target scaling by disk usage. Only applicable in the App Engine flexible
+ # environment.
# Corresponds to the JSON property `diskUtilization`
# @return [Google::Apis::AppengineV1::DiskUtilization]
attr_accessor :disk_utilization
@@ -360,12 +361,14 @@ module Google
# @return [Fixnum]
attr_accessor :min_total_instances
- # Target scaling by network usage. Only applicable for VM runtimes.
+ # Target scaling by network usage. Only applicable in the App Engine flexible
+ # environment.
# Corresponds to the JSON property `networkUtilization`
# @return [Google::Apis::AppengineV1::NetworkUtilization]
attr_accessor :network_utilization
- # Target scaling by request utilization. Only applicable for VM runtimes.
+ # Target scaling by request utilization. Only applicable in the App Engine
+ # flexible environment.
# Corresponds to the JSON property `requestUtilization`
# @return [Google::Apis::AppengineV1::RequestUtilization]
attr_accessor :request_utilization
@@ -600,7 +603,8 @@ module Google
end
end
- # Target scaling by disk usage. Only applicable for VM runtimes.
+ # Target scaling by disk usage. Only applicable in the App Engine flexible
+ # environment.
class DiskUtilization
include Google::Apis::Core::Hashable
@@ -1484,20 +1488,18 @@ module Google
end
end
- # Extra network settings. Only applicable for App Engine flexible environment
- # versions
+ # Extra network settings. Only applicable in the App Engine flexible environment.
class Network
include Google::Apis::Core::Hashable
# List of ports, or port pairs, to forward from the virtual machine to the
- # application container. Only applicable for App Engine flexible environment
- # versions.
+ # application container. Only applicable in the App Engine flexible environment.
# Corresponds to the JSON property `forwardedPorts`
# @return [Array]
attr_accessor :forwarded_ports
- # Tag to apply to the VM instance during creation. Only applicable for for App
- # Engine flexible environment versions.
+ # Tag to apply to the VM instance during creation. for Only applicable in the
+ # App Engine flexible environment.
# Corresponds to the JSON property `instanceTag`
# @return [String]
attr_accessor :instance_tag
@@ -1540,7 +1542,8 @@ module Google
end
end
- # Target scaling by network usage. Only applicable for VM runtimes.
+ # Target scaling by network usage. Only applicable in the App Engine flexible
+ # environment.
class NetworkUtilization
include Google::Apis::Core::Hashable
@@ -2010,7 +2013,8 @@ module Google
end
end
- # Target scaling by request utilization. Only applicable for VM runtimes.
+ # Target scaling by request utilization. Only applicable in the App Engine
+ # flexible environment.
class RequestUtilization
include Google::Apis::Core::Hashable
@@ -2551,7 +2555,7 @@ module Google
attr_accessor :deployment
# Total size in bytes of all the files that are included in this version and
- # curerntly hosted on the App Engine disk.@OutputOnly
+ # currently hosted on the App Engine disk.@OutputOnly
# Corresponds to the JSON property `diskUsageBytes`
# @return [Fixnum]
attr_accessor :disk_usage_bytes
@@ -2641,8 +2645,7 @@ module Google
# @return [String]
attr_accessor :name
- # Extra network settings. Only applicable for App Engine flexible environment
- # versions
+ # Extra network settings. Only applicable in the App Engine flexible environment.
# Corresponds to the JSON property `network`
# @return [Google::Apis::AppengineV1::Network]
attr_accessor :network
@@ -2742,7 +2745,8 @@ module Google
end
end
- # Volumes mounted within the app container. Only applicable for VM runtimes.
+ # Volumes mounted within the app container. Only applicable in the App Engine
+ # flexible environment.
class Volume
include Google::Apis::Core::Hashable
diff --git a/generated/google/apis/appengine_v1beta.rb b/generated/google/apis/appengine_v1beta.rb
index f4e0d5b85..d27792ccf 100644
--- a/generated/google/apis/appengine_v1beta.rb
+++ b/generated/google/apis/appengine_v1beta.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta
VERSION = 'V1beta'
- REVISION = '20171109'
+ REVISION = '20171213'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
diff --git a/generated/google/apis/appengine_v1beta/classes.rb b/generated/google/apis/appengine_v1beta/classes.rb
index cc03c3faf..8407bf888 100644
--- a/generated/google/apis/appengine_v1beta/classes.rb
+++ b/generated/google/apis/appengine_v1beta/classes.rb
@@ -312,7 +312,7 @@ module Google
# Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
# autoscaler/) should wait between changes to the number of virtual machines.
- # Only applicable for VM runtimes.
+ # Only applicable in the App Engine flexible environment.
# Corresponds to the JSON property `coolDownPeriod`
# @return [String]
attr_accessor :cool_down_period
@@ -322,7 +322,8 @@ module Google
# @return [Google::Apis::AppengineV1beta::CpuUtilization]
attr_accessor :cpu_utilization
- # Target scaling by disk usage. Only applicable for VM runtimes.
+ # Target scaling by disk usage. Only applicable in the App Engine flexible
+ # environment.
# Corresponds to the JSON property `diskUtilization`
# @return [Google::Apis::AppengineV1beta::DiskUtilization]
attr_accessor :disk_utilization
@@ -366,12 +367,14 @@ module Google
# @return [Fixnum]
attr_accessor :min_total_instances
- # Target scaling by network usage. Only applicable for VM runtimes.
+ # Target scaling by network usage. Only applicable in the App Engine flexible
+ # environment.
# Corresponds to the JSON property `networkUtilization`
# @return [Google::Apis::AppengineV1beta::NetworkUtilization]
attr_accessor :network_utilization
- # Target scaling by request utilization. Only applicable for VM runtimes.
+ # Target scaling by request utilization. Only applicable in the App Engine
+ # flexible environment.
# Corresponds to the JSON property `requestUtilization`
# @return [Google::Apis::AppengineV1beta::RequestUtilization]
attr_accessor :request_utilization
@@ -632,7 +635,8 @@ module Google
end
end
- # Target scaling by disk usage. Only applicable for VM runtimes.
+ # Target scaling by disk usage. Only applicable in the App Engine flexible
+ # environment.
class DiskUtilization
include Google::Apis::Core::Hashable
@@ -1555,20 +1559,18 @@ module Google
end
end
- # Extra network settings. Only applicable for App Engine flexible environment
- # versions
+ # Extra network settings. Only applicable in the App Engine flexible environment.
class Network
include Google::Apis::Core::Hashable
# List of ports, or port pairs, to forward from the virtual machine to the
- # application container. Only applicable for App Engine flexible environment
- # versions.
+ # application container. Only applicable in the App Engine flexible environment.
# Corresponds to the JSON property `forwardedPorts`
# @return [Array]
attr_accessor :forwarded_ports
- # Tag to apply to the VM instance during creation. Only applicable for for App
- # Engine flexible environment versions.
+ # Tag to apply to the VM instance during creation. for Only applicable in the
+ # App Engine flexible environment.
# Corresponds to the JSON property `instanceTag`
# @return [String]
attr_accessor :instance_tag
@@ -1611,7 +1613,8 @@ module Google
end
end
- # Target scaling by network usage. Only applicable for VM runtimes.
+ # Target scaling by network usage. Only applicable in the App Engine flexible
+ # environment.
class NetworkUtilization
include Google::Apis::Core::Hashable
@@ -2081,7 +2084,8 @@ module Google
end
end
- # Target scaling by request utilization. Only applicable for VM runtimes.
+ # Target scaling by request utilization. Only applicable in the App Engine
+ # flexible environment.
class RequestUtilization
include Google::Apis::Core::Hashable
@@ -2646,7 +2650,7 @@ module Google
attr_accessor :deployment
# Total size in bytes of all the files that are included in this version and
- # curerntly hosted on the App Engine disk.@OutputOnly
+ # currently hosted on the App Engine disk.@OutputOnly
# Corresponds to the JSON property `diskUsageBytes`
# @return [Fixnum]
attr_accessor :disk_usage_bytes
@@ -2736,8 +2740,7 @@ module Google
# @return [String]
attr_accessor :name
- # Extra network settings. Only applicable for App Engine flexible environment
- # versions
+ # Extra network settings. Only applicable in the App Engine flexible environment.
# Corresponds to the JSON property `network`
# @return [Google::Apis::AppengineV1beta::Network]
attr_accessor :network
@@ -2837,7 +2840,8 @@ module Google
end
end
- # Volumes mounted within the app container. Only applicable for VM runtimes.
+ # Volumes mounted within the app container. Only applicable in the App Engine
+ # flexible environment.
class Volume
include Google::Apis::Core::Hashable
diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb
index 98acbd180..95a0980a1 100644
--- a/generated/google/apis/classroom_v1.rb
+++ b/generated/google/apis/classroom_v1.rb
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
- REVISION = '20171028'
+ REVISION = '20171213'
# View and manage announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb
index d2b36fa51..1b7c7cb19 100644
--- a/generated/google/apis/classroom_v1/classes.rb
+++ b/generated/google/apis/classroom_v1/classes.rb
@@ -1395,6 +1395,32 @@ module Google
end
end
+ # Response when listing topics.
+ class ListTopicResponse
+ include Google::Apis::Core::Hashable
+
+ # Token identifying the next page of results to return. If empty, no further
+ # results are available.
+ # Corresponds to the JSON property `nextPageToken`
+ # @return [String]
+ attr_accessor :next_page_token
+
+ # Topic items that match the request.
+ # Corresponds to the JSON property `topic`
+ # @return [Array]
+ attr_accessor :topic
+
+ 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)
+ @topic = args[:topic] if args.key?(:topic)
+ end
+ end
+
# Material attached to course work.
# When creating attachments, setting the `form` field is not supported.
class Material
@@ -2045,6 +2071,49 @@ module Google
end
end
+ # Topic created by a teacher for the course
+ class Topic
+ include Google::Apis::Core::Hashable
+
+ # Identifier of the course.
+ # Read-only.
+ # Corresponds to the JSON property `courseId`
+ # @return [String]
+ attr_accessor :course_id
+
+ # The name of the topic, generated by the user.
+ # Leading and trailing whitespaces, if any, will be trimmed. Also, multiple
+ # consecutive whitespaces will be collapsed into one inside the name.
+ # Topic names are case sensitive, and must be no longer than 100 characters.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # Unique identifier for the topic.
+ # Read-only.
+ # Corresponds to the JSON property `topicId`
+ # @return [String]
+ attr_accessor :topic_id
+
+ # The time the topic was last updated by the system.
+ # Read-only.
+ # Corresponds to the JSON property `updateTime`
+ # @return [String]
+ attr_accessor :update_time
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @course_id = args[:course_id] if args.key?(:course_id)
+ @name = args[:name] if args.key?(:name)
+ @topic_id = args[:topic_id] if args.key?(:topic_id)
+ @update_time = args[:update_time] if args.key?(:update_time)
+ end
+ end
+
# Request to turn in a student submission.
class TurnInStudentSubmissionRequest
include Google::Apis::Core::Hashable
diff --git a/generated/google/apis/classroom_v1/representations.rb b/generated/google/apis/classroom_v1/representations.rb
index 88fd940a9..82d2e8c22 100644
--- a/generated/google/apis/classroom_v1/representations.rb
+++ b/generated/google/apis/classroom_v1/representations.rb
@@ -226,6 +226,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class ListTopicResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class Material
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -340,6 +346,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class Topic
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class TurnInStudentSubmissionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -720,6 +732,15 @@ module Google
end
end
+ class ListTopicResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :next_page_token, as: 'nextPageToken'
+ collection :topic, as: 'topic', class: Google::Apis::ClassroomV1::Topic, decorator: Google::Apis::ClassroomV1::Topic::Representation
+
+ end
+ end
+
class Material
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -909,6 +930,16 @@ module Google
end
end
+ class Topic
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :course_id, as: 'courseId'
+ property :name, as: 'name'
+ property :topic_id, as: 'topicId'
+ property :update_time, as: 'updateTime'
+ end
+ end
+
class TurnInStudentSubmissionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
diff --git a/generated/google/apis/classroom_v1/service.rb b/generated/google/apis/classroom_v1/service.rb
index 573a13904..5e545dde8 100644
--- a/generated/google/apis/classroom_v1/service.rb
+++ b/generated/google/apis/classroom_v1/service.rb
@@ -1848,6 +1848,94 @@ module Google
execute_or_queue_command(command, &block)
end
+ # Returns a topic.
+ # This method returns the following error codes:
+ # * `PERMISSION_DENIED` if the requesting user is not permitted to access the
+ # requested course or topic, or for access errors.
+ # * `INVALID_ARGUMENT` if the request is malformed.
+ # * `NOT_FOUND` if the requested course or topic does not exist.
+ # @param [String] course_id
+ # Identifier of the course.
+ # @param [String] id
+ # Identifier of the topic.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available 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::ClassroomV1::Topic] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ClassroomV1::Topic]
+ #
+ # @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_course_topic(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/courses/{courseId}/topics/{id}', options)
+ command.response_representation = Google::Apis::ClassroomV1::Topic::Representation
+ command.response_class = Google::Apis::ClassroomV1::Topic
+ command.params['courseId'] = course_id unless course_id.nil?
+ command.params['id'] = id unless 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 list of topics that the requester is permitted to view.
+ # This method returns the following error codes:
+ # * `PERMISSION_DENIED` if the requesting user is not permitted to access
+ # the requested course or for access errors.
+ # * `INVALID_ARGUMENT` if the request is malformed.
+ # * `NOT_FOUND` if the requested course does not exist.
+ # @param [String] course_id
+ # Identifier of the course.
+ # This identifier can be either the Classroom-assigned identifier or an
+ # alias.
+ # @param [Fixnum] page_size
+ # Maximum number of items to return. Zero or unspecified indicates that the
+ # server may assign a maximum.
+ # The server may return fewer than the specified number of results.
+ # @param [String] page_token
+ # nextPageToken
+ # value returned from a previous
+ # list call,
+ # indicating that the subsequent page of results should be returned.
+ # The list request
+ # must be otherwise identical to the one that resulted in this 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.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::ClassroomV1::ListTopicResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::ClassroomV1::ListTopicResponse]
+ #
+ # @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_course_topics(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/courses/{courseId}/topics', options)
+ command.response_representation = Google::Apis::ClassroomV1::ListTopicResponse::Representation
+ command.response_class = Google::Apis::ClassroomV1::ListTopicResponse
+ command.params['courseId'] = course_id unless course_id.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
+
# Accepts an invitation, removing it and adding the invited user to the
# teachers or students (as appropriate) of the specified course. Only the
# invited user may accept an invitation.
diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb
index cc46b6a23..3b09879c9 100644
--- a/generated/google/apis/cloudresourcemanager_v1.rb
+++ b/generated/google/apis/cloudresourcemanager_v1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
- REVISION = '20171206'
+ REVISION = '20171211'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
diff --git a/generated/google/apis/cloudresourcemanager_v1/classes.rb b/generated/google/apis/cloudresourcemanager_v1/classes.rb
index 96e25243f..a89eb3bef 100644
--- a/generated/google/apis/cloudresourcemanager_v1/classes.rb
+++ b/generated/google/apis/cloudresourcemanager_v1/classes.rb
@@ -318,6 +318,14 @@ module Google
class Constraint
include Google::Apis::Core::Hashable
+ # A `Constraint` that is either enforced or not.
+ # For example a constraint `constraints/compute.disableSerialPortAccess`.
+ # If it is enforced on a VM instance, serial port connections will not be
+ # opened to that instance.
+ # Corresponds to the JSON property `booleanConstraint`
+ # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint]
+ attr_accessor :boolean_constraint
+
# The evaluation behavior of this constraint in the absense of 'Policy'.
# Corresponds to the JSON property `constraintDefault`
# @return [String]
@@ -359,6 +367,7 @@ module Google
# Update properties of this object
def update!(**args)
+ @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
@constraint_default = args[:constraint_default] if args.key?(:constraint_default)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@@ -1066,6 +1075,21 @@ module Google
# @return [Google::Apis::CloudresourcemanagerV1::ListPolicy]
attr_accessor :list_policy
+ # Ignores policies set above this resource and restores the
+ # `constraint_default` enforcement behavior of the specific `Constraint` at
+ # this resource.
+ # Suppose that `constraint_default` is set to `ALLOW` for the
+ # `Constraint` `constraints/serviceuser.services`. Suppose that organization
+ # foo.com sets a `Policy` at their Organization resource node that restricts
+ # the allowed service activations to deny all service activations. They
+ # could then set a `Policy` with the `policy_type` `restore_default` on
+ # several experimental projects, restoring the `constraint_default`
+ # enforcement of the `Constraint` for only those projects, allowing those
+ # projects to have all services activated.
+ # Corresponds to the JSON property `restoreDefault`
+ # @return [Google::Apis::CloudresourcemanagerV1::RestoreDefault]
+ attr_accessor :restore_default
+
# The time stamp the `Policy` was previously updated. This is set by the
# server, not specified by the caller, and represents the last time a call to
# `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
@@ -1089,6 +1113,7 @@ module Google
@constraint = args[:constraint] if args.key?(:constraint)
@etag = args[:etag] if args.key?(:etag)
@list_policy = args[:list_policy] if args.key?(:list_policy)
+ @restore_default = args[:restore_default] if args.key?(:restore_default)
@update_time = args[:update_time] if args.key?(:update_time)
@version = args[:version] if args.key?(:version)
end
diff --git a/generated/google/apis/cloudresourcemanager_v1/representations.rb b/generated/google/apis/cloudresourcemanager_v1/representations.rb
index e4651ad7c..831d9f4b5 100644
--- a/generated/google/apis/cloudresourcemanager_v1/representations.rb
+++ b/generated/google/apis/cloudresourcemanager_v1/representations.rb
@@ -331,6 +331,8 @@ module Google
class Constraint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+ property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
+
property :constraint_default, as: 'constraintDefault'
property :description, as: 'description'
property :display_name, as: 'displayName'
@@ -501,6 +503,8 @@ module Google
property :etag, :base64 => true, as: 'etag'
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
+ property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
+
property :update_time, as: 'updateTime'
property :version, as: 'version'
end
diff --git a/generated/google/apis/cloudresourcemanager_v1/service.rb b/generated/google/apis/cloudresourcemanager_v1/service.rb
index c8543a219..3844e7199 100644
--- a/generated/google/apis/cloudresourcemanager_v1/service.rb
+++ b/generated/google/apis/cloudresourcemanager_v1/service.rb
@@ -1080,7 +1080,11 @@ module Google
# Lists Projects that are visible to the user and satisfy the
# specified filter. This method returns Projects in an unspecified order.
- # New Projects do not necessarily appear at the end of the list.
+ # This method is eventually consistent with project mutations; this means
+ # that a newly created project may not appear in the results or recent
+ # updates to an existing project may not be reflected in the results. To
+ # retrieve the latest state of a project, use the
+ # GetProject method.
# @param [String] filter
# An expression for filtering the results of the request. Filter rules are
# case insensitive. The fields eligible for filtering are:
@@ -1211,7 +1215,7 @@ module Google
execute_or_queue_command(command, &block)
end
- # Sets the IAM access control policy for the specified Project. Replaces
+ # Sets the IAM access control policy for the specified Project. Overwrites
# any existing policy.
# The following constraints apply when using `setIamPolicy()`:
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
@@ -1235,7 +1239,8 @@ module Google
# projects that no longer have owners who have accepted the ToS. Edits to
# IAM policies will be rejected until the lack of a ToS-accepting owner is
# rectified.
- # + Calling this method requires enabling the App Engine Admin API.
+ # + This method will replace the existing policy, and cannot be used to
+ # append additional IAM settings.
# Note: Removing service accounts from policies or changing their roles
# can render services completely inoperable. It is important to understand
# how the service account is being used before removing or updating its
diff --git a/generated/google/apis/cloudtrace_v2.rb b/generated/google/apis/cloudtrace_v2.rb
index e307c5193..4b787cf88 100644
--- a/generated/google/apis/cloudtrace_v2.rb
+++ b/generated/google/apis/cloudtrace_v2.rb
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/trace
module CloudtraceV2
VERSION = 'V2'
- REVISION = '20171106'
+ REVISION = '20171214'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
diff --git a/generated/google/apis/cloudtrace_v2/service.rb b/generated/google/apis/cloudtrace_v2/service.rb
index 85238e7c8..f39fd9a94 100644
--- a/generated/google/apis/cloudtrace_v2/service.rb
+++ b/generated/google/apis/cloudtrace_v2/service.rb
@@ -110,8 +110,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def create_project_trace_span(name, span_object = nil, fields: nil, quota_user: nil, options: nil, &block)
- command = make_simple_command(:post, 'v2/{+name}/spans', options)
+ def create_project_trace_span_span(name, span_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v2/{+name}', options)
command.request_representation = Google::Apis::CloudtraceV2::Span::Representation
command.request_object = span_object
command.response_representation = Google::Apis::CloudtraceV2::Span::Representation
diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb
index 34a416933..86d542873 100644
--- a/generated/google/apis/dialogflow_v2beta1.rb
+++ b/generated/google/apis/dialogflow_v2beta1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
- REVISION = '20171204'
+ REVISION = '20171212'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb
index 6bffbb828..c988b94bb 100644
--- a/generated/google/apis/dialogflow_v2beta1/classes.rb
+++ b/generated/google/apis/dialogflow_v2beta1/classes.rb
@@ -739,6 +739,14 @@ module Google
include Google::Apis::Core::Hashable
# The agent to import.
+ # Example for how to import an agent via the command line:
+ # curl -H "Authorization: Bearer "$(gcloud auth print-access-token) \
+ # -H "Content-Type: application/json; charset=utf-8" \
+ # --data "`
+ # 'agentContent': '$(cat | base64 -w 0)'
+ # `" \
+ # "https://dialogflow.googleapis.com/v2beta1/projects//agent:
+ # import"
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@@ -2231,6 +2239,14 @@ module Google
include Google::Apis::Core::Hashable
# The agent to restore.
+ # Example for how to restore an agent via the command line:
+ # curl -H "Authorization: Bearer "$(gcloud auth print-access-token) \
+ # -H "Content-Type: application/json; charset=utf-8" \
+ # --data "`
+ # 'agentContent': '$(cat | base64 -w 0)'
+ # `" \
+ # "https://dialogflow.googleapis.com/v2beta1/projects//agent:
+ # restore"
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
diff --git a/generated/google/apis/digitalassetlinks_v1.rb b/generated/google/apis/digitalassetlinks_v1.rb
new file mode 100644
index 000000000..4b1e72b74
--- /dev/null
+++ b/generated/google/apis/digitalassetlinks_v1.rb
@@ -0,0 +1,32 @@
+# Copyright 2015 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+require 'google/apis/digitalassetlinks_v1/service.rb'
+require 'google/apis/digitalassetlinks_v1/classes.rb'
+require 'google/apis/digitalassetlinks_v1/representations.rb'
+
+module Google
+ module Apis
+ # Digital Asset Links API
+ #
+ # API for discovering relationships between online assets such as web sites or
+ # mobile apps.
+ #
+ # @see https://developers.google.com/digital-asset-links/
+ module DigitalassetlinksV1
+ VERSION = 'V1'
+ REVISION = '20171207'
+ end
+ end
+end
diff --git a/generated/google/apis/digitalassetlinks_v1/classes.rb b/generated/google/apis/digitalassetlinks_v1/classes.rb
new file mode 100644
index 000000000..3b1dda18f
--- /dev/null
+++ b/generated/google/apis/digitalassetlinks_v1/classes.rb
@@ -0,0 +1,305 @@
+# 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 DigitalassetlinksV1
+
+ # Describes an android app asset.
+ class AndroidAppAsset
+ include Google::Apis::Core::Hashable
+
+ # Describes an X509 certificate.
+ # Corresponds to the JSON property `certificate`
+ # @return [Google::Apis::DigitalassetlinksV1::CertificateInfo]
+ attr_accessor :certificate
+
+ # Android App assets are naturally identified by their Java package name.
+ # For example, the Google Maps app uses the package name
+ # `com.google.android.apps.maps`.
+ # REQUIRED
+ # Corresponds to the JSON property `packageName`
+ # @return [String]
+ attr_accessor :package_name
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @certificate = args[:certificate] if args.key?(:certificate)
+ @package_name = args[:package_name] if args.key?(:package_name)
+ end
+ end
+
+ # Uniquely identifies an asset.
+ # A digital asset is an identifiable and addressable online entity that
+ # typically provides some service or content. Examples of assets are websites,
+ # Android apps, Twitter feeds, and Plus Pages.
+ class Asset
+ include Google::Apis::Core::Hashable
+
+ # Describes an android app asset.
+ # Corresponds to the JSON property `androidApp`
+ # @return [Google::Apis::DigitalassetlinksV1::AndroidAppAsset]
+ attr_accessor :android_app
+
+ # Describes a web asset.
+ # Corresponds to the JSON property `web`
+ # @return [Google::Apis::DigitalassetlinksV1::WebAsset]
+ attr_accessor :web
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @android_app = args[:android_app] if args.key?(:android_app)
+ @web = args[:web] if args.key?(:web)
+ end
+ end
+
+ # Describes an X509 certificate.
+ class CertificateInfo
+ include Google::Apis::Core::Hashable
+
+ # The uppercase SHA-265 fingerprint of the certificate. From the PEM
+ # certificate, it can be acquired like this:
+ # $ keytool -printcert -file $CERTFILE | grep SHA256:
+ # SHA256: 14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83: \
+ # 42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
+ # or like this:
+ # $ openssl x509 -in $CERTFILE -noout -fingerprint -sha256
+ # SHA256 Fingerprint=14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64: \
+ # 16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
+ # In this example, the contents of this field would be `14:6D:E9:83:C5:73:
+ # 06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:
+ # 44:E5`.
+ # If these tools are not available to you, you can convert the PEM
+ # certificate into the DER format, compute the SHA-256 hash of that string
+ # and represent the result as a hexstring (that is, uppercase hexadecimal
+ # representations of each octet, separated by colons).
+ # Corresponds to the JSON property `sha256Fingerprint`
+ # @return [String]
+ attr_accessor :sha256_fingerprint
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @sha256_fingerprint = args[:sha256_fingerprint] if args.key?(:sha256_fingerprint)
+ end
+ end
+
+ # Response message for the CheckAssetLinks call.
+ class CheckResponse
+ include Google::Apis::Core::Hashable
+
+ # Human-readable message containing information intended to help end users
+ # understand, reproduce and debug the result.
+ # The message will be in English and we are currently not planning to offer
+ # any translations.
+ # Please note that no guarantees are made about the contents or format of
+ # this string. Any aspect of it may be subject to change without notice.
+ # You should not attempt to programmatically parse this data. For
+ # programmatic access, use the error_code field below.
+ # Corresponds to the JSON property `debugString`
+ # @return [String]
+ attr_accessor :debug_string
+
+ # Error codes that describe the result of the Check operation.
+ # Corresponds to the JSON property `errorCode`
+ # @return [Array]
+ attr_accessor :error_code
+
+ # Set to true if the assets specified in the request are linked by the
+ # relation specified in the request.
+ # Corresponds to the JSON property `linked`
+ # @return [Boolean]
+ attr_accessor :linked
+ alias_method :linked?, :linked
+
+ # From serving time, how much longer the response should be considered valid
+ # barring further updates.
+ # REQUIRED
+ # Corresponds to the JSON property `maxAge`
+ # @return [String]
+ attr_accessor :max_age
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @debug_string = args[:debug_string] if args.key?(:debug_string)
+ @error_code = args[:error_code] if args.key?(:error_code)
+ @linked = args[:linked] if args.key?(:linked)
+ @max_age = args[:max_age] if args.key?(:max_age)
+ end
+ end
+
+ # Response message for the List call.
+ class ListResponse
+ include Google::Apis::Core::Hashable
+
+ # Human-readable message containing information intended to help end users
+ # understand, reproduce and debug the result.
+ # The message will be in English and we are currently not planning to offer
+ # any translations.
+ # Please note that no guarantees are made about the contents or format of
+ # this string. Any aspect of it may be subject to change without notice.
+ # You should not attempt to programmatically parse this data. For
+ # programmatic access, use the error_code field below.
+ # Corresponds to the JSON property `debugString`
+ # @return [String]
+ attr_accessor :debug_string
+
+ # Error codes that describe the result of the List operation.
+ # Corresponds to the JSON property `errorCode`
+ # @return [Array]
+ attr_accessor :error_code
+
+ # From serving time, how much longer the response should be considered valid
+ # barring further updates.
+ # REQUIRED
+ # Corresponds to the JSON property `maxAge`
+ # @return [String]
+ attr_accessor :max_age
+
+ # A list of all the matching statements that have been found.
+ # Corresponds to the JSON property `statements`
+ # @return [Array]
+ attr_accessor :statements
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @debug_string = args[:debug_string] if args.key?(:debug_string)
+ @error_code = args[:error_code] if args.key?(:error_code)
+ @max_age = args[:max_age] if args.key?(:max_age)
+ @statements = args[:statements] if args.key?(:statements)
+ end
+ end
+
+ # Describes a reliable statement that has been made about the relationship
+ # between a source asset and a target asset.
+ # Statements are always made by the source asset, either directly or by
+ # delegating to a statement list that is stored elsewhere.
+ # For more detailed definitions of statements and assets, please refer
+ # to our [API documentation landing
+ # page](/digital-asset-links/v1/getting-started).
+ class Statement
+ include Google::Apis::Core::Hashable
+
+ # The relation identifies the use of the statement as intended by the source
+ # asset's owner (that is, the person or entity who issued the statement).
+ # Every complete statement has a relation.
+ # We identify relations with strings of the format `/`, where
+ # `` must be one of a set of pre-defined purpose categories, and
+ # `` is a free-form lowercase alphanumeric string that describes the
+ # specific use case of the statement.
+ # Refer to [our API documentation](/digital-asset-links/v1/relation-strings)
+ # for the current list of supported relations.
+ # Example: `delegate_permission/common.handle_all_urls`
+ # REQUIRED
+ # Corresponds to the JSON property `relation`
+ # @return [String]
+ attr_accessor :relation
+
+ # Uniquely identifies an asset.
+ # A digital asset is an identifiable and addressable online entity that
+ # typically provides some service or content. Examples of assets are websites,
+ # Android apps, Twitter feeds, and Plus Pages.
+ # Corresponds to the JSON property `source`
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
+ attr_accessor :source
+
+ # Uniquely identifies an asset.
+ # A digital asset is an identifiable and addressable online entity that
+ # typically provides some service or content. Examples of assets are websites,
+ # Android apps, Twitter feeds, and Plus Pages.
+ # Corresponds to the JSON property `target`
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
+ attr_accessor :target
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @relation = args[:relation] if args.key?(:relation)
+ @source = args[:source] if args.key?(:source)
+ @target = args[:target] if args.key?(:target)
+ end
+ end
+
+ # Describes a web asset.
+ class WebAsset
+ include Google::Apis::Core::Hashable
+
+ # Web assets are identified by a URL that contains only the scheme, hostname
+ # and port parts. The format is
+ # http[s]://[:]
+ # Hostnames must be fully qualified: they must end in a single period
+ # ("`.`").
+ # Only the schemes "http" and "https" are currently allowed.
+ # Port numbers are given as a decimal number, and they must be omitted if the
+ # standard port numbers are used: 80 for http and 443 for https.
+ # We call this limited URL the "site". All URLs that share the same scheme,
+ # hostname and port are considered to be a part of the site and thus belong
+ # to the web asset.
+ # Example: the asset with the site `https://www.google.com` contains all
+ # these URLs:
+ # * `https://www.google.com/`
+ # * `https://www.google.com:443/`
+ # * `https://www.google.com/foo`
+ # * `https://www.google.com/foo?bar`
+ # * `https://www.google.com/foo#bar`
+ # * `https://user@password:www.google.com/`
+ # But it does not contain these URLs:
+ # * `http://www.google.com/` (wrong scheme)
+ # * `https://google.com/` (hostname does not match)
+ # * `https://www.google.com:444/` (port does not match)
+ # REQUIRED
+ # Corresponds to the JSON property `site`
+ # @return [String]
+ attr_accessor :site
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @site = args[:site] if args.key?(:site)
+ end
+ end
+ end
+ end
+end
diff --git a/generated/google/apis/digitalassetlinks_v1/representations.rb b/generated/google/apis/digitalassetlinks_v1/representations.rb
new file mode 100644
index 000000000..06d27b14f
--- /dev/null
+++ b/generated/google/apis/digitalassetlinks_v1/representations.rb
@@ -0,0 +1,133 @@
+# 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 DigitalassetlinksV1
+
+ class AndroidAppAsset
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Asset
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class CertificateInfo
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class CheckResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class ListResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class Statement
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class WebAsset
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class AndroidAppAsset
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :certificate, as: 'certificate', class: Google::Apis::DigitalassetlinksV1::CertificateInfo, decorator: Google::Apis::DigitalassetlinksV1::CertificateInfo::Representation
+
+ property :package_name, as: 'packageName'
+ end
+ end
+
+ class Asset
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :android_app, as: 'androidApp', class: Google::Apis::DigitalassetlinksV1::AndroidAppAsset, decorator: Google::Apis::DigitalassetlinksV1::AndroidAppAsset::Representation
+
+ property :web, as: 'web', class: Google::Apis::DigitalassetlinksV1::WebAsset, decorator: Google::Apis::DigitalassetlinksV1::WebAsset::Representation
+
+ end
+ end
+
+ class CertificateInfo
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :sha256_fingerprint, as: 'sha256Fingerprint'
+ end
+ end
+
+ class CheckResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :debug_string, as: 'debugString'
+ collection :error_code, as: 'errorCode'
+ property :linked, as: 'linked'
+ property :max_age, as: 'maxAge'
+ end
+ end
+
+ class ListResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :debug_string, as: 'debugString'
+ collection :error_code, as: 'errorCode'
+ property :max_age, as: 'maxAge'
+ collection :statements, as: 'statements', class: Google::Apis::DigitalassetlinksV1::Statement, decorator: Google::Apis::DigitalassetlinksV1::Statement::Representation
+
+ end
+ end
+
+ class Statement
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :relation, as: 'relation'
+ property :source, as: 'source', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
+
+ property :target, as: 'target', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
+
+ end
+ end
+
+ class WebAsset
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :site, as: 'site'
+ end
+ end
+ end
+ end
+end
diff --git a/generated/google/apis/digitalassetlinks_v1/service.rb b/generated/google/apis/digitalassetlinks_v1/service.rb
new file mode 100644
index 000000000..eb0d810e8
--- /dev/null
+++ b/generated/google/apis/digitalassetlinks_v1/service.rb
@@ -0,0 +1,324 @@
+# 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 DigitalassetlinksV1
+ # Digital Asset Links API
+ #
+ # API for discovering relationships between online assets such as web sites or
+ # mobile apps.
+ #
+ # @example
+ # require 'google/apis/digitalassetlinks_v1'
+ #
+ # Digitalassetlinks = Google::Apis::DigitalassetlinksV1 # Alias the module
+ # service = Digitalassetlinks::DigitalassetlinksService.new
+ #
+ # @see https://developers.google.com/digital-asset-links/
+ class DigitalassetlinksService < 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://digitalassetlinks.googleapis.com/', '')
+ @batch_path = 'batch'
+ end
+
+ # Determines whether the specified (directional) relationship exists between
+ # the specified source and target assets.
+ # The relation describes the intent of the link between the two assets as
+ # claimed by the source asset. An example for such relationships is the
+ # delegation of privileges or permissions.
+ # This command is most often used by infrastructure systems to check
+ # preconditions for an action. For example, a client may want to know if it
+ # is OK to send a web URL to a particular mobile app instead. The client can
+ # check for the relevant asset link from the website to the mobile app to
+ # decide if the operation should be allowed.
+ # A note about security: if you specify a secure asset as the source, such as
+ # an HTTPS website or an Android app, the API will ensure that any
+ # statements used to generate the response have been made in a secure way by
+ # the owner of that asset. Conversely, if the source asset is an insecure
+ # HTTP website (that is, the URL starts with `http://` instead of `https://`),
+ # the API cannot verify its statements securely, and it is not possible to
+ # ensure that the website's statements have not been altered by a third
+ # party. For more information, see the [Digital Asset Links technical design
+ # specification](https://github.com/google/digitalassetlinks/blob/master/well-
+ # known/details.md).
+ # @param [String] relation
+ # Query string for the relation.
+ # We identify relations with strings of the format `/`, where
+ # `` must be one of a set of pre-defined purpose categories, and
+ # `` is a free-form lowercase alphanumeric string that describes the
+ # specific use case of the statement.
+ # Refer to [our API documentation](/digital-asset-links/v1/relation-strings)
+ # for the current list of supported relations.
+ # For a query to match an asset link, both the query's and the asset link's
+ # relation strings must match exactly.
+ # Example: A query with relation `delegate_permission/common.handle_all_urls`
+ # matches an asset link with relation
+ # `delegate_permission/common.handle_all_urls`.
+ # @param [String] source_android_app_certificate_sha256_fingerprint
+ # The uppercase SHA-265 fingerprint of the certificate. From the PEM
+ # certificate, it can be acquired like this:
+ # $ keytool -printcert -file $CERTFILE | grep SHA256:
+ # SHA256: 14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83: \
+ # 42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
+ # or like this:
+ # $ openssl x509 -in $CERTFILE -noout -fingerprint -sha256
+ # SHA256 Fingerprint=14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64: \
+ # 16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
+ # In this example, the contents of this field would be `14:6D:E9:83:C5:73:
+ # 06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:
+ # 44:E5`.
+ # If these tools are not available to you, you can convert the PEM
+ # certificate into the DER format, compute the SHA-256 hash of that string
+ # and represent the result as a hexstring (that is, uppercase hexadecimal
+ # representations of each octet, separated by colons).
+ # @param [String] source_android_app_package_name
+ # Android App assets are naturally identified by their Java package name.
+ # For example, the Google Maps app uses the package name
+ # `com.google.android.apps.maps`.
+ # REQUIRED
+ # @param [String] source_web_site
+ # Web assets are identified by a URL that contains only the scheme, hostname
+ # and port parts. The format is
+ # http[s]://[:]
+ # Hostnames must be fully qualified: they must end in a single period
+ # ("`.`").
+ # Only the schemes "http" and "https" are currently allowed.
+ # Port numbers are given as a decimal number, and they must be omitted if the
+ # standard port numbers are used: 80 for http and 443 for https.
+ # We call this limited URL the "site". All URLs that share the same scheme,
+ # hostname and port are considered to be a part of the site and thus belong
+ # to the web asset.
+ # Example: the asset with the site `https://www.google.com` contains all
+ # these URLs:
+ # * `https://www.google.com/`
+ # * `https://www.google.com:443/`
+ # * `https://www.google.com/foo`
+ # * `https://www.google.com/foo?bar`
+ # * `https://www.google.com/foo#bar`
+ # * `https://user@password:www.google.com/`
+ # But it does not contain these URLs:
+ # * `http://www.google.com/` (wrong scheme)
+ # * `https://google.com/` (hostname does not match)
+ # * `https://www.google.com:444/` (port does not match)
+ # REQUIRED
+ # @param [String] target_android_app_certificate_sha256_fingerprint
+ # The uppercase SHA-265 fingerprint of the certificate. From the PEM
+ # certificate, it can be acquired like this:
+ # $ keytool -printcert -file $CERTFILE | grep SHA256:
+ # SHA256: 14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83: \
+ # 42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
+ # or like this:
+ # $ openssl x509 -in $CERTFILE -noout -fingerprint -sha256
+ # SHA256 Fingerprint=14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64: \
+ # 16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
+ # In this example, the contents of this field would be `14:6D:E9:83:C5:73:
+ # 06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:
+ # 44:E5`.
+ # If these tools are not available to you, you can convert the PEM
+ # certificate into the DER format, compute the SHA-256 hash of that string
+ # and represent the result as a hexstring (that is, uppercase hexadecimal
+ # representations of each octet, separated by colons).
+ # @param [String] target_android_app_package_name
+ # Android App assets are naturally identified by their Java package name.
+ # For example, the Google Maps app uses the package name
+ # `com.google.android.apps.maps`.
+ # REQUIRED
+ # @param [String] target_web_site
+ # Web assets are identified by a URL that contains only the scheme, hostname
+ # and port parts. The format is
+ # http[s]://[:]
+ # Hostnames must be fully qualified: they must end in a single period
+ # ("`.`").
+ # Only the schemes "http" and "https" are currently allowed.
+ # Port numbers are given as a decimal number, and they must be omitted if the
+ # standard port numbers are used: 80 for http and 443 for https.
+ # We call this limited URL the "site". All URLs that share the same scheme,
+ # hostname and port are considered to be a part of the site and thus belong
+ # to the web asset.
+ # Example: the asset with the site `https://www.google.com` contains all
+ # these URLs:
+ # * `https://www.google.com/`
+ # * `https://www.google.com:443/`
+ # * `https://www.google.com/foo`
+ # * `https://www.google.com/foo?bar`
+ # * `https://www.google.com/foo#bar`
+ # * `https://user@password:www.google.com/`
+ # But it does not contain these URLs:
+ # * `http://www.google.com/` (wrong scheme)
+ # * `https://google.com/` (hostname does not match)
+ # * `https://www.google.com:444/` (port does not match)
+ # REQUIRED
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available 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::DigitalassetlinksV1::CheckResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DigitalassetlinksV1::CheckResponse]
+ #
+ # @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 check_assetlink(relation: nil, source_android_app_certificate_sha256_fingerprint: nil, source_android_app_package_name: nil, source_web_site: nil, target_android_app_certificate_sha256_fingerprint: nil, target_android_app_package_name: nil, target_web_site: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/assetlinks:check', options)
+ command.response_representation = Google::Apis::DigitalassetlinksV1::CheckResponse::Representation
+ command.response_class = Google::Apis::DigitalassetlinksV1::CheckResponse
+ command.query['relation'] = relation unless relation.nil?
+ command.query['source.androidApp.certificate.sha256Fingerprint'] = source_android_app_certificate_sha256_fingerprint unless source_android_app_certificate_sha256_fingerprint.nil?
+ command.query['source.androidApp.packageName'] = source_android_app_package_name unless source_android_app_package_name.nil?
+ command.query['source.web.site'] = source_web_site unless source_web_site.nil?
+ command.query['target.androidApp.certificate.sha256Fingerprint'] = target_android_app_certificate_sha256_fingerprint unless target_android_app_certificate_sha256_fingerprint.nil?
+ command.query['target.androidApp.packageName'] = target_android_app_package_name unless target_android_app_package_name.nil?
+ command.query['target.web.site'] = target_web_site unless target_web_site.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Retrieves a list of all statements from a given source that match the
+ # specified target and statement string.
+ # The API guarantees that all statements with secure source assets, such as
+ # HTTPS websites or Android apps, have been made in a secure way by the owner
+ # of those assets, as described in the [Digital Asset Links technical design
+ # specification](https://github.com/google/digitalassetlinks/blob/master/well-
+ # known/details.md).
+ # Specifically, you should consider that for insecure websites (that is,
+ # where the URL starts with `http://` instead of `https://`), this guarantee
+ # cannot be made.
+ # The `List` command is most useful in cases where the API client wants to
+ # know all the ways in which two assets are related, or enumerate all the
+ # relationships from a particular source asset. Example: a feature that
+ # helps users navigate to related items. When a mobile app is running on a
+ # device, the feature would make it easy to navigate to the corresponding web
+ # site or Google+ profile.
+ # @param [String] relation
+ # Use only associations that match the specified relation.
+ # See the [`Statement`](#Statement) message for a detailed definition of
+ # relation strings.
+ # For a query to match a statement, one of the following must be true:
+ # * both the query's and the statement's relation strings match exactly,
+ # or
+ # * the query's relation string is empty or missing.
+ # Example: A query with relation `delegate_permission/common.handle_all_urls`
+ # matches an asset link with relation
+ # `delegate_permission/common.handle_all_urls`.
+ # @param [String] source_android_app_certificate_sha256_fingerprint
+ # The uppercase SHA-265 fingerprint of the certificate. From the PEM
+ # certificate, it can be acquired like this:
+ # $ keytool -printcert -file $CERTFILE | grep SHA256:
+ # SHA256: 14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83: \
+ # 42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
+ # or like this:
+ # $ openssl x509 -in $CERTFILE -noout -fingerprint -sha256
+ # SHA256 Fingerprint=14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64: \
+ # 16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5
+ # In this example, the contents of this field would be `14:6D:E9:83:C5:73:
+ # 06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:
+ # 44:E5`.
+ # If these tools are not available to you, you can convert the PEM
+ # certificate into the DER format, compute the SHA-256 hash of that string
+ # and represent the result as a hexstring (that is, uppercase hexadecimal
+ # representations of each octet, separated by colons).
+ # @param [String] source_android_app_package_name
+ # Android App assets are naturally identified by their Java package name.
+ # For example, the Google Maps app uses the package name
+ # `com.google.android.apps.maps`.
+ # REQUIRED
+ # @param [String] source_web_site
+ # Web assets are identified by a URL that contains only the scheme, hostname
+ # and port parts. The format is
+ # http[s]://[:]
+ # Hostnames must be fully qualified: they must end in a single period
+ # ("`.`").
+ # Only the schemes "http" and "https" are currently allowed.
+ # Port numbers are given as a decimal number, and they must be omitted if the
+ # standard port numbers are used: 80 for http and 443 for https.
+ # We call this limited URL the "site". All URLs that share the same scheme,
+ # hostname and port are considered to be a part of the site and thus belong
+ # to the web asset.
+ # Example: the asset with the site `https://www.google.com` contains all
+ # these URLs:
+ # * `https://www.google.com/`
+ # * `https://www.google.com:443/`
+ # * `https://www.google.com/foo`
+ # * `https://www.google.com/foo?bar`
+ # * `https://www.google.com/foo#bar`
+ # * `https://user@password:www.google.com/`
+ # But it does not contain these URLs:
+ # * `http://www.google.com/` (wrong scheme)
+ # * `https://google.com/` (hostname does not match)
+ # * `https://www.google.com:444/` (port does not match)
+ # REQUIRED
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available 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::DigitalassetlinksV1::ListResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DigitalassetlinksV1::ListResponse]
+ #
+ # @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_statements(relation: nil, source_android_app_certificate_sha256_fingerprint: nil, source_android_app_package_name: nil, source_web_site: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/statements:list', options)
+ command.response_representation = Google::Apis::DigitalassetlinksV1::ListResponse::Representation
+ command.response_class = Google::Apis::DigitalassetlinksV1::ListResponse
+ command.query['relation'] = relation unless relation.nil?
+ command.query['source.androidApp.certificate.sha256Fingerprint'] = source_android_app_certificate_sha256_fingerprint unless source_android_app_certificate_sha256_fingerprint.nil?
+ command.query['source.androidApp.packageName'] = source_android_app_package_name unless source_android_app_package_name.nil?
+ command.query['source.web.site'] = source_web_site unless source_web_site.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
diff --git a/generated/google/apis/speech_v1.rb b/generated/google/apis/speech_v1.rb
index 6a91610f1..a45cb62d5 100644
--- a/generated/google/apis/speech_v1.rb
+++ b/generated/google/apis/speech_v1.rb
@@ -25,13 +25,10 @@ module Google
# @see https://cloud.google.com/speech/
module SpeechV1
VERSION = 'V1'
- REVISION = '20171129'
+ REVISION = '20171213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
-
- # Convert speech to text using Google speech recognition technology
- AUTH_CLOUD_SPEECH = 'https://www.googleapis.com/auth/cloud-speech'
end
end
end
diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb
index 8a77962ca..e6c8a0bba 100644
--- a/generated/google/apis/testing_v1.rb
+++ b/generated/google/apis/testing_v1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
- REVISION = '20171129'
+ REVISION = '20171213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb
index ff2737036..8368a2db9 100644
--- a/generated/google/apis/testing_v1/classes.rb
+++ b/generated/google/apis/testing_v1/classes.rb
@@ -429,6 +429,14 @@ module Google
# @return [Array]
attr_accessor :robo_directives
+ # The intents used to launch the app for the crawl.
+ # If none are provided, then the main launcher activity is launched.
+ # If some are provided, then only those provided are launched (the main
+ # launcher activity must be provided explicitly).
+ # Corresponds to the JSON property `startingIntents`
+ # @return [Array]
+ attr_accessor :starting_intents
+
def initialize(**args)
update!(**args)
end
@@ -441,6 +449,7 @@ module Google
@max_depth = args[:max_depth] if args.key?(:max_depth)
@max_steps = args[:max_steps] if args.key?(:max_steps)
@robo_directives = args[:robo_directives] if args.key?(:robo_directives)
+ @starting_intents = args[:starting_intents] if args.key?(:starting_intents)
end
end
@@ -886,6 +895,19 @@ module Google
end
end
+ # Specifies an intent that starts the main launcher activity.
+ class LauncherActivityIntent
+ include Google::Apis::Core::Hashable
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ end
+ end
+
# A location/region designation for language.
class Locale
include Google::Apis::Core::Hashable
@@ -1123,6 +1145,65 @@ module Google
end
end
+ # Message for specifying the start activities to crawl
+ class RoboStartingIntent
+ include Google::Apis::Core::Hashable
+
+ # Specifies an intent that starts the main launcher activity.
+ # Corresponds to the JSON property `launcherActivity`
+ # @return [Google::Apis::TestingV1::LauncherActivityIntent]
+ attr_accessor :launcher_activity
+
+ # A starting intent specified by an action, uri, and categories.
+ # Corresponds to the JSON property `startActivity`
+ # @return [Google::Apis::TestingV1::StartActivityIntent]
+ attr_accessor :start_activity
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @launcher_activity = args[:launcher_activity] if args.key?(:launcher_activity)
+ @start_activity = args[:start_activity] if args.key?(:start_activity)
+ end
+ end
+
+ # A starting intent specified by an action, uri, and categories.
+ class StartActivityIntent
+ include Google::Apis::Core::Hashable
+
+ # Action name.
+ # Required for START_ACTIVITY.
+ # Corresponds to the JSON property `action`
+ # @return [String]
+ attr_accessor :action
+
+ # Intent categories to set on the intent.
+ # Optional.
+ # Corresponds to the JSON property `categories`
+ # @return [Array]
+ attr_accessor :categories
+
+ # URI for the action.
+ # Optional.
+ # Corresponds to the JSON property `uri`
+ # @return [String]
+ attr_accessor :uri
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @action = args[:action] if args.key?(:action)
+ @categories = args[:categories] if args.key?(:categories)
+ @uri = args[:uri] if args.key?(:uri)
+ end
+ end
+
# Additional details about the progress of the running test.
class TestDetails
include Google::Apis::Core::Hashable
diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb
index 23c0b56be..91c8a9927 100644
--- a/generated/google/apis/testing_v1/representations.rb
+++ b/generated/google/apis/testing_v1/representations.rb
@@ -160,6 +160,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class LauncherActivityIntent
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class Locale
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -202,6 +208,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class RoboStartingIntent
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
+ class StartActivityIntent
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class TestDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -354,6 +372,8 @@ module Google
property :max_steps, as: 'maxSteps'
collection :robo_directives, as: 'roboDirectives', class: Google::Apis::TestingV1::RoboDirective, decorator: Google::Apis::TestingV1::RoboDirective::Representation
+ collection :starting_intents, as: 'startingIntents', class: Google::Apis::TestingV1::RoboStartingIntent, decorator: Google::Apis::TestingV1::RoboStartingIntent::Representation
+
end
end
@@ -488,6 +508,12 @@ module Google
end
end
+ class LauncherActivityIntent
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ end
+ end
+
class Locale
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -556,6 +582,25 @@ module Google
end
end
+ class RoboStartingIntent
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :launcher_activity, as: 'launcherActivity', class: Google::Apis::TestingV1::LauncherActivityIntent, decorator: Google::Apis::TestingV1::LauncherActivityIntent::Representation
+
+ property :start_activity, as: 'startActivity', class: Google::Apis::TestingV1::StartActivityIntent, decorator: Google::Apis::TestingV1::StartActivityIntent::Representation
+
+ end
+ end
+
+ class StartActivityIntent
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :action, as: 'action'
+ collection :categories, as: 'categories'
+ property :uri, as: 'uri'
+ end
+ end
+
class TestDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation