Autogenerated update (2017-12-16)
Update: - admin_directory_v1 - androidpublisher_v1_1 - androidpublisher_v2 - cloudtasks_v2beta2 - container_v1 - container_v1beta1 - monitoring_v3
This commit is contained in:
parent
f8c52315c5
commit
6a604acc26
|
@ -2244,6 +2244,24 @@
|
|||
"/admin:directory_v1/Asps/items": items
|
||||
"/admin:directory_v1/Asps/items/item": item
|
||||
"/admin:directory_v1/Asps/kind": kind
|
||||
"/admin:directory_v1/Building": building
|
||||
"/admin:directory_v1/Building/buildingId": building_id
|
||||
"/admin:directory_v1/Building/buildingName": building_name
|
||||
"/admin:directory_v1/Building/coordinates": coordinates
|
||||
"/admin:directory_v1/Building/description": description
|
||||
"/admin:directory_v1/Building/etags": etags
|
||||
"/admin:directory_v1/Building/floorNames": floor_names
|
||||
"/admin:directory_v1/Building/floorNames/floor_name": floor_name
|
||||
"/admin:directory_v1/Building/kind": kind
|
||||
"/admin:directory_v1/BuildingCoordinates": building_coordinates
|
||||
"/admin:directory_v1/BuildingCoordinates/latitude": latitude
|
||||
"/admin:directory_v1/BuildingCoordinates/longitude": longitude
|
||||
"/admin:directory_v1/Buildings": buildings
|
||||
"/admin:directory_v1/Buildings/buildings": buildings
|
||||
"/admin:directory_v1/Buildings/buildings/building": building
|
||||
"/admin:directory_v1/Buildings/etag": etag
|
||||
"/admin:directory_v1/Buildings/kind": kind
|
||||
"/admin:directory_v1/Buildings/nextPageToken": next_page_token
|
||||
"/admin:directory_v1/CalendarResource": calendar_resource
|
||||
"/admin:directory_v1/CalendarResource/buildingId": building_id
|
||||
"/admin:directory_v1/CalendarResource/capacity": capacity
|
||||
|
@ -2315,6 +2333,13 @@
|
|||
"/admin:directory_v1/ChromeOsDevice/serialNumber": serial_number
|
||||
"/admin:directory_v1/ChromeOsDevice/status": status
|
||||
"/admin:directory_v1/ChromeOsDevice/supportEndDate": support_end_date
|
||||
"/admin:directory_v1/ChromeOsDevice/tpmVersionInfo": tpm_version_info
|
||||
"/admin:directory_v1/ChromeOsDevice/tpmVersionInfo/family": family
|
||||
"/admin:directory_v1/ChromeOsDevice/tpmVersionInfo/firmwareVersion": firmware_version
|
||||
"/admin:directory_v1/ChromeOsDevice/tpmVersionInfo/manufacturer": manufacturer
|
||||
"/admin:directory_v1/ChromeOsDevice/tpmVersionInfo/specLevel": spec_level
|
||||
"/admin:directory_v1/ChromeOsDevice/tpmVersionInfo/tpmModel": tpm_model
|
||||
"/admin:directory_v1/ChromeOsDevice/tpmVersionInfo/vendorSpecific": vendor_specific
|
||||
"/admin:directory_v1/ChromeOsDevice/willAutoRenew": will_auto_renew
|
||||
"/admin:directory_v1/ChromeOsDeviceAction": chrome_os_device_action
|
||||
"/admin:directory_v1/ChromeOsDeviceAction/action": action
|
||||
|
@ -2380,6 +2405,14 @@
|
|||
"/admin:directory_v1/Feature/name": name
|
||||
"/admin:directory_v1/FeatureInstance": feature_instance
|
||||
"/admin:directory_v1/FeatureInstance/feature": feature
|
||||
"/admin:directory_v1/FeatureRename": feature_rename
|
||||
"/admin:directory_v1/FeatureRename/newName": new_name
|
||||
"/admin:directory_v1/Features": features
|
||||
"/admin:directory_v1/Features/etag": etag
|
||||
"/admin:directory_v1/Features/features": features
|
||||
"/admin:directory_v1/Features/features/feature": feature
|
||||
"/admin:directory_v1/Features/kind": kind
|
||||
"/admin:directory_v1/Features/nextPageToken": next_page_token
|
||||
"/admin:directory_v1/Group": group
|
||||
"/admin:directory_v1/Group/adminCreated": admin_created
|
||||
"/admin:directory_v1/Group/aliases": aliases
|
||||
|
@ -2942,6 +2975,22 @@
|
|||
"/admin:directory_v1/directory.privileges.list/customer": customer
|
||||
"/admin:directory_v1/directory.resolvedAppAccessSettings.GetSettings": get_resolved_app_access_setting_settings
|
||||
"/admin:directory_v1/directory.resolvedAppAccessSettings.ListTrustedApps": list_resolved_app_access_setting_trusted_apps
|
||||
"/admin:directory_v1/directory.resources.buildings.delete": delete_resource_building
|
||||
"/admin:directory_v1/directory.resources.buildings.delete/buildingId": building_id
|
||||
"/admin:directory_v1/directory.resources.buildings.delete/customer": customer
|
||||
"/admin:directory_v1/directory.resources.buildings.get": get_resource_building
|
||||
"/admin:directory_v1/directory.resources.buildings.get/buildingId": building_id
|
||||
"/admin:directory_v1/directory.resources.buildings.get/customer": customer
|
||||
"/admin:directory_v1/directory.resources.buildings.insert": insert_resource_building
|
||||
"/admin:directory_v1/directory.resources.buildings.insert/customer": customer
|
||||
"/admin:directory_v1/directory.resources.buildings.list": list_resource_buildings
|
||||
"/admin:directory_v1/directory.resources.buildings.list/customer": customer
|
||||
"/admin:directory_v1/directory.resources.buildings.patch": patch_resource_building
|
||||
"/admin:directory_v1/directory.resources.buildings.patch/buildingId": building_id
|
||||
"/admin:directory_v1/directory.resources.buildings.patch/customer": customer
|
||||
"/admin:directory_v1/directory.resources.buildings.update": update_resource_building
|
||||
"/admin:directory_v1/directory.resources.buildings.update/buildingId": building_id
|
||||
"/admin:directory_v1/directory.resources.buildings.update/customer": customer
|
||||
"/admin:directory_v1/directory.resources.calendars.delete": delete_calendar_resource
|
||||
"/admin:directory_v1/directory.resources.calendars.delete/calendarResourceId": calendar_resource_id
|
||||
"/admin:directory_v1/directory.resources.calendars.delete/customer": customer
|
||||
|
@ -2953,13 +3002,35 @@
|
|||
"/admin:directory_v1/directory.resources.calendars.list": list_calendar_resources
|
||||
"/admin:directory_v1/directory.resources.calendars.list/customer": customer
|
||||
"/admin:directory_v1/directory.resources.calendars.list/maxResults": max_results
|
||||
"/admin:directory_v1/directory.resources.calendars.list/orderBy": order_by
|
||||
"/admin:directory_v1/directory.resources.calendars.list/pageToken": page_token
|
||||
"/admin:directory_v1/directory.resources.calendars.list/query": query
|
||||
"/admin:directory_v1/directory.resources.calendars.patch": patch_calendar_resource
|
||||
"/admin:directory_v1/directory.resources.calendars.patch/calendarResourceId": calendar_resource_id
|
||||
"/admin:directory_v1/directory.resources.calendars.patch/customer": customer
|
||||
"/admin:directory_v1/directory.resources.calendars.update": update_calendar_resource
|
||||
"/admin:directory_v1/directory.resources.calendars.update/calendarResourceId": calendar_resource_id
|
||||
"/admin:directory_v1/directory.resources.calendars.update/customer": customer
|
||||
"/admin:directory_v1/directory.resources.features.delete": delete_resource_feature
|
||||
"/admin:directory_v1/directory.resources.features.delete/customer": customer
|
||||
"/admin:directory_v1/directory.resources.features.delete/featureKey": feature_key
|
||||
"/admin:directory_v1/directory.resources.features.get": get_resource_feature
|
||||
"/admin:directory_v1/directory.resources.features.get/customer": customer
|
||||
"/admin:directory_v1/directory.resources.features.get/featureKey": feature_key
|
||||
"/admin:directory_v1/directory.resources.features.insert": insert_resource_feature
|
||||
"/admin:directory_v1/directory.resources.features.insert/customer": customer
|
||||
"/admin:directory_v1/directory.resources.features.list": list_resource_features
|
||||
"/admin:directory_v1/directory.resources.features.list/customer": customer
|
||||
"/admin:directory_v1/directory.resources.features.list/pageToken": page_token
|
||||
"/admin:directory_v1/directory.resources.features.patch": patch_resource_feature
|
||||
"/admin:directory_v1/directory.resources.features.patch/customer": customer
|
||||
"/admin:directory_v1/directory.resources.features.patch/featureKey": feature_key
|
||||
"/admin:directory_v1/directory.resources.features.rename": rename_resource_feature
|
||||
"/admin:directory_v1/directory.resources.features.rename/customer": customer
|
||||
"/admin:directory_v1/directory.resources.features.rename/oldName": old_name
|
||||
"/admin:directory_v1/directory.resources.features.update": update_resource_feature
|
||||
"/admin:directory_v1/directory.resources.features.update/customer": customer
|
||||
"/admin:directory_v1/directory.resources.features.update/featureKey": feature_key
|
||||
"/admin:directory_v1/directory.roleAssignments.delete": delete_role_assignment
|
||||
"/admin:directory_v1/directory.roleAssignments.delete/customer": customer
|
||||
"/admin:directory_v1/directory.roleAssignments.delete/roleAssignmentId": role_assignment_id
|
||||
|
@ -6291,6 +6362,7 @@
|
|||
"/androidpublisher:v1.1/InappPurchase/orderId": order_id
|
||||
"/androidpublisher:v1.1/InappPurchase/purchaseState": purchase_state
|
||||
"/androidpublisher:v1.1/InappPurchase/purchaseTime": purchase_time
|
||||
"/androidpublisher:v1.1/InappPurchase/purchaseType": purchase_type
|
||||
"/androidpublisher:v1.1/SubscriptionPurchase": subscription_purchase
|
||||
"/androidpublisher:v1.1/SubscriptionPurchase/autoRenewing": auto_renewing
|
||||
"/androidpublisher:v1.1/SubscriptionPurchase/initiationTimestampMsec": initiation_timestamp_msec
|
||||
|
@ -6504,6 +6576,7 @@
|
|||
"/androidpublisher:v2/ProductPurchase/orderId": order_id
|
||||
"/androidpublisher:v2/ProductPurchase/purchaseState": purchase_state
|
||||
"/androidpublisher:v2/ProductPurchase/purchaseTimeMillis": purchase_time_millis
|
||||
"/androidpublisher:v2/ProductPurchase/purchaseType": purchase_type
|
||||
"/androidpublisher:v2/Prorate": prorate
|
||||
"/androidpublisher:v2/Prorate/defaultPrice": default_price
|
||||
"/androidpublisher:v2/Prorate/start": start
|
||||
|
@ -6539,10 +6612,12 @@
|
|||
"/androidpublisher:v2/SubscriptionPurchase/developerPayload": developer_payload
|
||||
"/androidpublisher:v2/SubscriptionPurchase/expiryTimeMillis": expiry_time_millis
|
||||
"/androidpublisher:v2/SubscriptionPurchase/kind": kind
|
||||
"/androidpublisher:v2/SubscriptionPurchase/linkedPurchaseToken": linked_purchase_token
|
||||
"/androidpublisher:v2/SubscriptionPurchase/orderId": order_id
|
||||
"/androidpublisher:v2/SubscriptionPurchase/paymentState": payment_state
|
||||
"/androidpublisher:v2/SubscriptionPurchase/priceAmountMicros": price_amount_micros
|
||||
"/androidpublisher:v2/SubscriptionPurchase/priceCurrencyCode": price_currency_code
|
||||
"/androidpublisher:v2/SubscriptionPurchase/purchaseType": purchase_type
|
||||
"/androidpublisher:v2/SubscriptionPurchase/startTimeMillis": start_time_millis
|
||||
"/androidpublisher:v2/SubscriptionPurchase/userCancellationTimeMillis": user_cancellation_time_millis
|
||||
"/androidpublisher:v2/SubscriptionPurchasesDeferRequest": defer_subscription_purchases_request
|
||||
|
@ -14242,6 +14317,14 @@
|
|||
"/cloudtasks:v2beta2/CreateTaskRequest/task": task
|
||||
"/cloudtasks:v2beta2/Empty": empty
|
||||
"/cloudtasks:v2beta2/GetIamPolicyRequest": get_iam_policy_request
|
||||
"/cloudtasks:v2beta2/LeaseTasksRequest": lease_tasks_request
|
||||
"/cloudtasks:v2beta2/LeaseTasksRequest/filter": filter
|
||||
"/cloudtasks:v2beta2/LeaseTasksRequest/leaseDuration": lease_duration
|
||||
"/cloudtasks:v2beta2/LeaseTasksRequest/maxTasks": max_tasks
|
||||
"/cloudtasks:v2beta2/LeaseTasksRequest/responseView": response_view
|
||||
"/cloudtasks:v2beta2/LeaseTasksResponse": lease_tasks_response
|
||||
"/cloudtasks:v2beta2/LeaseTasksResponse/tasks": tasks
|
||||
"/cloudtasks:v2beta2/LeaseTasksResponse/tasks/task": task
|
||||
"/cloudtasks:v2beta2/ListLocationsResponse": list_locations_response
|
||||
"/cloudtasks:v2beta2/ListLocationsResponse/locations": locations
|
||||
"/cloudtasks:v2beta2/ListLocationsResponse/locations/location": location
|
||||
|
@ -14392,6 +14475,8 @@
|
|||
"/cloudtasks:v2beta2/cloudtasks.projects.locations.queues.tasks.get": get_project_location_queue_task
|
||||
"/cloudtasks:v2beta2/cloudtasks.projects.locations.queues.tasks.get/name": name
|
||||
"/cloudtasks:v2beta2/cloudtasks.projects.locations.queues.tasks.get/responseView": response_view
|
||||
"/cloudtasks:v2beta2/cloudtasks.projects.locations.queues.tasks.lease": lease_tasks
|
||||
"/cloudtasks:v2beta2/cloudtasks.projects.locations.queues.tasks.lease/parent": parent
|
||||
"/cloudtasks:v2beta2/cloudtasks.projects.locations.queues.tasks.list": list_project_location_queue_tasks
|
||||
"/cloudtasks:v2beta2/cloudtasks.projects.locations.queues.tasks.list/orderBy": order_by
|
||||
"/cloudtasks:v2beta2/cloudtasks.projects.locations.queues.tasks.list/pageSize": page_size
|
||||
|
@ -53121,6 +53206,11 @@
|
|||
"/monitoring:v3/MonitoredResourceDescriptor/labels/label": label
|
||||
"/monitoring:v3/MonitoredResourceDescriptor/name": name
|
||||
"/monitoring:v3/MonitoredResourceDescriptor/type": type
|
||||
"/monitoring:v3/MonitoredResourceMetadata": monitored_resource_metadata
|
||||
"/monitoring:v3/MonitoredResourceMetadata/systemLabels": system_labels
|
||||
"/monitoring:v3/MonitoredResourceMetadata/systemLabels/system_label": system_label
|
||||
"/monitoring:v3/MonitoredResourceMetadata/userLabels": user_labels
|
||||
"/monitoring:v3/MonitoredResourceMetadata/userLabels/user_label": user_label
|
||||
"/monitoring:v3/Option": option
|
||||
"/monitoring:v3/Option/name": name
|
||||
"/monitoring:v3/Option/value": value
|
||||
|
@ -53148,6 +53238,7 @@
|
|||
"/monitoring:v3/TimeInterval/endTime": end_time
|
||||
"/monitoring:v3/TimeInterval/startTime": start_time
|
||||
"/monitoring:v3/TimeSeries": time_series
|
||||
"/monitoring:v3/TimeSeries/metadata": metadata
|
||||
"/monitoring:v3/TimeSeries/metric": metric
|
||||
"/monitoring:v3/TimeSeries/metricKind": metric_kind
|
||||
"/monitoring:v3/TimeSeries/points": points
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/admin-sdk/directory/
|
||||
module AdminDirectoryV1
|
||||
VERSION = 'DirectoryV1'
|
||||
REVISION = '20171127'
|
||||
REVISION = '20171212'
|
||||
|
||||
# View and manage customer related information
|
||||
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
||||
|
|
|
@ -250,6 +250,127 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# JSON template for Building object in Directory API.
|
||||
class Building
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique identifier for the building. The maximum length is 100 characters.
|
||||
# Corresponds to the JSON property `buildingId`
|
||||
# @return [String]
|
||||
attr_accessor :building_id
|
||||
|
||||
# The building name as seen by users in Calendar. Must be unique for the
|
||||
# customer. For example, "NYC-CHEL". The maximum length is 100 characters.
|
||||
# Corresponds to the JSON property `buildingName`
|
||||
# @return [String]
|
||||
attr_accessor :building_name
|
||||
|
||||
# JSON template for coordinates of a building in Directory API.
|
||||
# Corresponds to the JSON property `coordinates`
|
||||
# @return [Google::Apis::AdminDirectoryV1::BuildingCoordinates]
|
||||
attr_accessor :coordinates
|
||||
|
||||
# A brief description of the building. For example, "Chelsea Market".
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# ETag of the resource.
|
||||
# Corresponds to the JSON property `etags`
|
||||
# @return [String]
|
||||
attr_accessor :etags
|
||||
|
||||
# The display names for all floors in this building. The floors are expected to
|
||||
# be sorted in ascending order, from lowest floor to highest floor. For example,
|
||||
# ["B2", "B1", "L", "1", "2", "2M", "3", "PH"] Must contain at least one entry.
|
||||
# Corresponds to the JSON property `floorNames`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :floor_names
|
||||
|
||||
# Kind of resource this is.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@building_id = args[:building_id] if args.key?(:building_id)
|
||||
@building_name = args[:building_name] if args.key?(:building_name)
|
||||
@coordinates = args[:coordinates] if args.key?(:coordinates)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@etags = args[:etags] if args.key?(:etags)
|
||||
@floor_names = args[:floor_names] if args.key?(:floor_names)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for coordinates of a building in Directory API.
|
||||
class BuildingCoordinates
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Latitude in decimal degrees.
|
||||
# Corresponds to the JSON property `latitude`
|
||||
# @return [Float]
|
||||
attr_accessor :latitude
|
||||
|
||||
# Longitude in decimal degrees.
|
||||
# Corresponds to the JSON property `longitude`
|
||||
# @return [Float]
|
||||
attr_accessor :longitude
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@latitude = args[:latitude] if args.key?(:latitude)
|
||||
@longitude = args[:longitude] if args.key?(:longitude)
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for Building List Response object in Directory API.
|
||||
class Buildings
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Buildings in this page of results.
|
||||
# Corresponds to the JSON property `buildings`
|
||||
# @return [Array<Google::Apis::AdminDirectoryV1::Building>]
|
||||
attr_accessor :buildings
|
||||
|
||||
# ETag of the resource.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Kind of resource this is.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The continuation token, used to page through large result sets. Provide this
|
||||
# value in a subsequent request to return the next page of results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@buildings = args[:buildings] if args.key?(:buildings)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for Calendar Resource object in Directory API.
|
||||
class CalendarResource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -303,15 +424,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :resource_category
|
||||
|
||||
# Description of the resource, visible only to admins. The brief description of
|
||||
# the calendar resource.
|
||||
# Description of the resource, visible only to admins.
|
||||
# Corresponds to the JSON property `resourceDescription`
|
||||
# @return [String]
|
||||
attr_accessor :resource_description
|
||||
|
||||
# The read-only email ID for the calendar resource. Generated as part of
|
||||
# creating a new calendar resource. The read-only email for the calendar
|
||||
# resource. Generated as part of creating a new calendar resource.
|
||||
# The read-only email for the calendar resource. Generated as part of creating a
|
||||
# new calendar resource.
|
||||
# Corresponds to the JSON property `resourceEmail`
|
||||
# @return [String]
|
||||
attr_accessor :resource_email
|
||||
|
@ -321,15 +440,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :resource_id
|
||||
|
||||
# The name of the calendar resource. For example, "Training Room 1A". The name
|
||||
# of the calendar resource. For example, Training Room 1A
|
||||
# The name of the calendar resource. For example, "Training Room 1A".
|
||||
# Corresponds to the JSON property `resourceName`
|
||||
# @return [String]
|
||||
attr_accessor :resource_name
|
||||
|
||||
# The type of the calendar resource, intended for non-room resources. The type
|
||||
# of the calendar resource. Used for grouping resources in the calendar user
|
||||
# interface.
|
||||
# The type of the calendar resource, intended for non-room resources.
|
||||
# Corresponds to the JSON property `resourceType`
|
||||
# @return [String]
|
||||
attr_accessor :resource_type
|
||||
|
@ -611,6 +727,11 @@ module Google
|
|||
# @return [DateTime]
|
||||
attr_accessor :support_end_date
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `tpmVersionInfo`
|
||||
# @return [Google::Apis::AdminDirectoryV1::ChromeOsDevice::TpmVersionInfo]
|
||||
attr_accessor :tpm_version_info
|
||||
|
||||
# Will Chromebook auto renew after support end date (Read-only)
|
||||
# Corresponds to the JSON property `willAutoRenew`
|
||||
# @return [Boolean]
|
||||
|
@ -648,6 +769,7 @@ module Google
|
|||
@serial_number = args[:serial_number] if args.key?(:serial_number)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@support_end_date = args[:support_end_date] if args.key?(:support_end_date)
|
||||
@tpm_version_info = args[:tpm_version_info] if args.key?(:tpm_version_info)
|
||||
@will_auto_renew = args[:will_auto_renew] if args.key?(:will_auto_renew)
|
||||
end
|
||||
|
||||
|
@ -737,6 +859,55 @@ module Google
|
|||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TpmVersionInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `family`
|
||||
# @return [String]
|
||||
attr_accessor :family
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `firmwareVersion`
|
||||
# @return [String]
|
||||
attr_accessor :firmware_version
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `manufacturer`
|
||||
# @return [String]
|
||||
attr_accessor :manufacturer
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `specLevel`
|
||||
# @return [String]
|
||||
attr_accessor :spec_level
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `tpmModel`
|
||||
# @return [String]
|
||||
attr_accessor :tpm_model
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `vendorSpecific`
|
||||
# @return [String]
|
||||
attr_accessor :vendor_specific
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@family = args[:family] if args.key?(:family)
|
||||
@firmware_version = args[:firmware_version] if args.key?(:firmware_version)
|
||||
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
|
||||
@spec_level = args[:spec_level] if args.key?(:spec_level)
|
||||
@tpm_model = args[:tpm_model] if args.key?(:tpm_model)
|
||||
@vendor_specific = args[:vendor_specific] if args.key?(:vendor_specific)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# JSON request template for firing actions on ChromeOs Device in Directory
|
||||
|
@ -1184,6 +1355,63 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# JSON request template for renaming a feature.
|
||||
class FeatureRename
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# New name of the feature.
|
||||
# Corresponds to the JSON property `newName`
|
||||
# @return [String]
|
||||
attr_accessor :new_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@new_name = args[:new_name] if args.key?(:new_name)
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for Feature List Response object in Directory API.
|
||||
class Features
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# ETag of the resource.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# The Features in this page of results.
|
||||
# Corresponds to the JSON property `features`
|
||||
# @return [Array<Google::Apis::AdminDirectoryV1::Feature>]
|
||||
attr_accessor :features
|
||||
|
||||
# Kind of resource this is.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The continuation token, used to page through large result sets. Provide this
|
||||
# value in a subsequent request to return the next page of results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@features = args[:features] if args.key?(:features)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for Group resource in Directory API.
|
||||
class Group
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -52,6 +52,24 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Building
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildingCoordinates
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Buildings
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CalendarResource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -91,6 +109,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TpmVersionInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
|
@ -160,6 +184,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FeatureRename
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Features
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Group
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -523,6 +559,39 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Building
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :building_id, as: 'buildingId'
|
||||
property :building_name, as: 'buildingName'
|
||||
property :coordinates, as: 'coordinates', class: Google::Apis::AdminDirectoryV1::BuildingCoordinates, decorator: Google::Apis::AdminDirectoryV1::BuildingCoordinates::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
property :etags, as: 'etags'
|
||||
collection :floor_names, as: 'floorNames'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class BuildingCoordinates
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :latitude, as: 'latitude'
|
||||
property :longitude, as: 'longitude'
|
||||
end
|
||||
end
|
||||
|
||||
class Buildings
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :buildings, as: 'buildings', class: Google::Apis::AdminDirectoryV1::Building, decorator: Google::Apis::AdminDirectoryV1::Building::Representation
|
||||
|
||||
property :etag, as: 'etag'
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class CalendarResource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -605,6 +674,8 @@ module Google
|
|||
property :status, as: 'status'
|
||||
property :support_end_date, as: 'supportEndDate', type: DateTime
|
||||
|
||||
property :tpm_version_info, as: 'tpmVersionInfo', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::TpmVersionInfo, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::TpmVersionInfo::Representation
|
||||
|
||||
property :will_auto_renew, as: 'willAutoRenew'
|
||||
end
|
||||
|
||||
|
@ -635,6 +706,18 @@ module Google
|
|||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class TpmVersionInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :family, as: 'family'
|
||||
property :firmware_version, as: 'firmwareVersion'
|
||||
property :manufacturer, as: 'manufacturer'
|
||||
property :spec_level, as: 'specLevel'
|
||||
property :tpm_model, as: 'tpmModel'
|
||||
property :vendor_specific, as: 'vendorSpecific'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class ChromeOsDeviceAction
|
||||
|
@ -758,6 +841,24 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class FeatureRename
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :new_name, as: 'newName'
|
||||
end
|
||||
end
|
||||
|
||||
class Features
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, as: 'etag'
|
||||
collection :features, as: 'features', class: Google::Apis::AdminDirectoryV1::Feature, decorator: Google::Apis::AdminDirectoryV1::Feature::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Group
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -2201,6 +2201,241 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a building.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] building_id
|
||||
# The ID of the building to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_resource_building(customer, building_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'customer/{customer}/resources/buildings/{buildingId}', options)
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['buildingId'] = building_id unless building_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a building.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] building_id
|
||||
# The unique ID of the building to retrieve.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Building] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Building]
|
||||
#
|
||||
# @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_resource_building(customer, building_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'customer/{customer}/resources/buildings/{buildingId}', options)
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Building::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Building
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['buildingId'] = building_id unless building_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Inserts a building.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Building] building_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Building] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Building]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def insert_resource_building(customer, building_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'customer/{customer}/resources/buildings', options)
|
||||
command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation
|
||||
command.request_object = building_object
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Building::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Building
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of buildings for an account.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Buildings] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Buildings]
|
||||
#
|
||||
# @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_resource_buildings(customer, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'customer/{customer}/resources/buildings', options)
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Buildings::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Buildings
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a building. This method supports patch semantics.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] building_id
|
||||
# The ID of the building to update.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Building] building_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Building] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Building]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_resource_building(customer, building_id, building_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'customer/{customer}/resources/buildings/{buildingId}', options)
|
||||
command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation
|
||||
command.request_object = building_object
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Building::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Building
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['buildingId'] = building_id unless building_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a building.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] building_id
|
||||
# The ID of the building to update.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Building] building_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Building] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Building]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_resource_building(customer, building_id, building_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'customer/{customer}/resources/buildings/{buildingId}', options)
|
||||
command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation
|
||||
command.request_object = building_object
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Building::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Building
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['buildingId'] = building_id unless building_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a calendar resource.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
|
@ -2322,8 +2557,21 @@ module Google
|
|||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum number of results to return.
|
||||
# @param [String] order_by
|
||||
# Field(s) to sort results by in either ascending or descending order. Supported
|
||||
# fields include resourceId, resourceName, capacity, buildingId, and floorName.
|
||||
# If no order is specified, defaults to ascending. Should be of the form "field [
|
||||
# asc|desc], field [asc|desc], ...". For example buildingId, capacity desc would
|
||||
# return results sorted first by buildingId in ascending order then by capacity
|
||||
# in descending order.
|
||||
# @param [String] page_token
|
||||
# Token to specify the next page in the list.
|
||||
# @param [String] query
|
||||
# String query used to filter results. Should be of the form "field operator
|
||||
# value" where field can be any of supported fields and operators can be any of
|
||||
# supported operations. Operators include '=' for exact match and ':' for prefix
|
||||
# match where applicable. For prefix match, the value should always be followed
|
||||
# by a *.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -2345,13 +2593,15 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_calendar_resources(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def list_calendar_resources(customer, max_results: nil, order_by: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'customer/{customer}/resources/calendars', options)
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResources::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResources
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['query'] = query unless query.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
|
@ -2448,6 +2698,284 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a feature.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] feature_key
|
||||
# The unique ID of the feature to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_resource_feature(customer, feature_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'customer/{customer}/resources/features/{featureKey}', options)
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['featureKey'] = feature_key unless feature_key.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a feature.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] feature_key
|
||||
# The unique ID of the feature to retrieve.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Feature] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Feature]
|
||||
#
|
||||
# @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_resource_feature(customer, feature_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'customer/{customer}/resources/features/{featureKey}', options)
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Feature::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Feature
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['featureKey'] = feature_key unless feature_key.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Inserts a feature.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Feature] feature_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Feature] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Feature]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def insert_resource_feature(customer, feature_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'customer/{customer}/resources/features', options)
|
||||
command.request_representation = Google::Apis::AdminDirectoryV1::Feature::Representation
|
||||
command.request_object = feature_object
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Feature::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Feature
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of features for an account.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] page_token
|
||||
# Token to specify the next page in the list.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Features] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Features]
|
||||
#
|
||||
# @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_resource_features(customer, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'customer/{customer}/resources/features', options)
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Features::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Features
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a feature. This method supports patch semantics.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] feature_key
|
||||
# The unique ID of the feature to update.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Feature] feature_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Feature] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Feature]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_resource_feature(customer, feature_key, feature_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'customer/{customer}/resources/features/{featureKey}', options)
|
||||
command.request_representation = Google::Apis::AdminDirectoryV1::Feature::Representation
|
||||
command.request_object = feature_object
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Feature::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Feature
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['featureKey'] = feature_key unless feature_key.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Renames a feature.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] old_name
|
||||
# The unique ID of the feature to rename.
|
||||
# @param [Google::Apis::AdminDirectoryV1::FeatureRename] feature_rename_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def rename_resource_feature(customer, old_name, feature_rename_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'customer/{customer}/resources/features/{oldName}/rename', options)
|
||||
command.request_representation = Google::Apis::AdminDirectoryV1::FeatureRename::Representation
|
||||
command.request_object = feature_rename_object
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['oldName'] = old_name unless old_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a feature.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] feature_key
|
||||
# The unique ID of the feature to update.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Feature] feature_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AdminDirectoryV1::Feature] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AdminDirectoryV1::Feature]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_resource_feature(customer, feature_key, feature_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'customer/{customer}/resources/features/{featureKey}', options)
|
||||
command.request_representation = Google::Apis::AdminDirectoryV1::Feature::Representation
|
||||
command.request_object = feature_object
|
||||
command.response_representation = Google::Apis::AdminDirectoryV1::Feature::Representation
|
||||
command.response_class = Google::Apis::AdminDirectoryV1::Feature
|
||||
command.params['customer'] = customer unless customer.nil?
|
||||
command.params['featureKey'] = feature_key unless feature_key.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a role assignment.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the G Suite account.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV1_1
|
||||
VERSION = 'V1_1'
|
||||
REVISION = '20170913'
|
||||
REVISION = '20171207'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -63,6 +63,14 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :purchase_time
|
||||
|
||||
# The type of purchase of the inapp product. This field is only set if this
|
||||
# purchase was not made using the standard in-app billing flow. Possible values
|
||||
# are:
|
||||
# - Test (i.e. purchased from a license testing account)
|
||||
# Corresponds to the JSON property `purchaseType`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :purchase_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -75,6 +83,7 @@ module Google
|
|||
@order_id = args[:order_id] if args.key?(:order_id)
|
||||
@purchase_state = args[:purchase_state] if args.key?(:purchase_state)
|
||||
@purchase_time = args[:purchase_time] if args.key?(:purchase_time)
|
||||
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ module Google
|
|||
property :order_id, as: 'orderId'
|
||||
property :purchase_state, as: 'purchaseState'
|
||||
property :purchase_time, :numeric_string => true, as: 'purchaseTime'
|
||||
property :purchase_type, as: 'purchaseType'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20171030'
|
||||
REVISION = '20171207'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -1107,6 +1107,14 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :purchase_time_millis
|
||||
|
||||
# The type of purchase of the inapp product. This field is only set if this
|
||||
# purchase was not made using the standard in-app billing flow. Possible values
|
||||
# are:
|
||||
# - Test (i.e. purchased from a license testing account)
|
||||
# Corresponds to the JSON property `purchaseType`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :purchase_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -1119,6 +1127,7 @@ module Google
|
|||
@order_id = args[:order_id] if args.key?(:order_id)
|
||||
@purchase_state = args[:purchase_state] if args.key?(:purchase_state)
|
||||
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
|
||||
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1356,6 +1365,7 @@ module Google
|
|||
# - Subscription was cancelled by the system, for example because of a billing
|
||||
# problem
|
||||
# - Subscription was replaced with a new subscription
|
||||
# - Subscription was cancelled by the developer
|
||||
# Corresponds to the JSON property `cancelReason`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :cancel_reason
|
||||
|
@ -1383,6 +1393,20 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The purchase token of the originating purchase if this subscription is one of
|
||||
# the following:
|
||||
# - Re-signup of a cancelled but non-lapsed subscription
|
||||
# - Upgrade/downgrade from a previous subscription For example, suppose a user
|
||||
# originally signs up and you receive purchase token X, then the user cancels
|
||||
# and goes through the resignup flow and you receive purchase token Y. If you
|
||||
# call this API with purchase token Y, this field will be set to X. If you call
|
||||
# this API with purchase token X, this field will not be set. If user upgrade
|
||||
# his subscription after the first resignup. You receive purchase token Z. If
|
||||
# you call this API with purchase token Z, this field will be set to Y.
|
||||
# Corresponds to the JSON property `linkedPurchaseToken`
|
||||
# @return [String]
|
||||
attr_accessor :linked_purchase_token
|
||||
|
||||
# The order id of the latest recurring order associated with the purchase of the
|
||||
# subscription.
|
||||
# Corresponds to the JSON property `orderId`
|
||||
|
@ -1410,6 +1434,14 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :price_currency_code
|
||||
|
||||
# The type of purchase of the subscription. This field is only set if this
|
||||
# purchase was not made using the standard in-app billing flow. Possible values
|
||||
# are:
|
||||
# - Test (i.e. purchased from a license testing account)
|
||||
# Corresponds to the JSON property `purchaseType`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :purchase_type
|
||||
|
||||
# Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
# Corresponds to the JSON property `startTimeMillis`
|
||||
# @return [Fixnum]
|
||||
|
@ -1433,10 +1465,12 @@ module Google
|
|||
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
||||
@expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token)
|
||||
@order_id = args[:order_id] if args.key?(:order_id)
|
||||
@payment_state = args[:payment_state] if args.key?(:payment_state)
|
||||
@price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
|
||||
@price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
|
||||
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
||||
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
|
||||
@user_cancellation_time_millis = args[:user_cancellation_time_millis] if args.key?(:user_cancellation_time_millis)
|
||||
end
|
||||
|
|
|
@ -659,6 +659,7 @@ module Google
|
|||
property :order_id, as: 'orderId'
|
||||
property :purchase_state, as: 'purchaseState'
|
||||
property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
|
||||
property :purchase_type, as: 'purchaseType'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -747,10 +748,12 @@ module Google
|
|||
property :developer_payload, as: 'developerPayload'
|
||||
property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis'
|
||||
property :kind, as: 'kind'
|
||||
property :linked_purchase_token, as: 'linkedPurchaseToken'
|
||||
property :order_id, as: 'orderId'
|
||||
property :payment_state, as: 'paymentState'
|
||||
property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros'
|
||||
property :price_currency_code, as: 'priceCurrencyCode'
|
||||
property :purchase_type, as: 'purchaseType'
|
||||
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
||||
property :user_cancellation_time_millis, :numeric_string => true, as: 'userCancellationTimeMillis'
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-tasks/
|
||||
module CloudtasksV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20171213'
|
||||
REVISION = '20171215'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -548,6 +548,99 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for pulling tasks using CloudTasks.LeaseTasks.
|
||||
class LeaseTasksRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# `filter` can be used to specify a subset of tasks to lease.
|
||||
# When `filter` is set to `tag=<my-tag>` then the
|
||||
# LeaseTasksResponse will contain only tasks whose
|
||||
# LeaseMessage.tag is equal to `<my-tag>`. `<my-tag>` must be less than
|
||||
# 500 bytes.
|
||||
# When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
|
||||
# the same tag as the task with the oldest schedule_time will be returned.
|
||||
# Grammar Syntax:
|
||||
# * `filter = "tag=" tag | "tag_function=" function`
|
||||
# * `tag = string | bytes`
|
||||
# * `function = "oldest_tag()"`
|
||||
# The `oldest_tag()` function returns tasks which have the same tag as the
|
||||
# oldest task (ordered by schedule time).
|
||||
# Corresponds to the JSON property `filter`
|
||||
# @return [String]
|
||||
attr_accessor :filter
|
||||
|
||||
# The duration of the lease.
|
||||
# Each task returned in the LeaseTasksResponse will have its
|
||||
# Task.schedule_time set to the current time plus the
|
||||
# `lease_duration`. A task that has been returned in a
|
||||
# LeaseTasksResponse is leased -- that task will not be
|
||||
# returned in a different LeaseTasksResponse before the
|
||||
# Task.schedule_time.
|
||||
# After the pull worker has successfully finished the work
|
||||
# associated with the task, the pull worker must call
|
||||
# CloudTasks.AcknowledgeTask. If the task is not acknowledged
|
||||
# via CloudTasks.AcknowledgeTask before the
|
||||
# Task.schedule_time then it will be returned in a later
|
||||
# LeaseTasksResponse so that another pull worker can process
|
||||
# it.
|
||||
# The maximum lease duration is 1 week.
|
||||
# `lease_duration` will be truncated to the nearest second.
|
||||
# Corresponds to the JSON property `leaseDuration`
|
||||
# @return [String]
|
||||
attr_accessor :lease_duration
|
||||
|
||||
# The maximum number of tasks to lease. The maximum that can be
|
||||
# requested is 1000.
|
||||
# Corresponds to the JSON property `maxTasks`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_tasks
|
||||
|
||||
# The response_view specifies which subset of the Task will be
|
||||
# returned.
|
||||
# By default response_view is Task.View.BASIC; not all
|
||||
# information is retrieved by default because some data, such as
|
||||
# payloads, might be desirable to return only when needed because
|
||||
# of its large size or because of the sensitivity of data that it
|
||||
# contains.
|
||||
# Authorization for Task.View.FULL requires `cloudtasks.tasks.fullView`
|
||||
# [Google IAM](/iam/) permission on the
|
||||
# Task.name resource.
|
||||
# Corresponds to the JSON property `responseView`
|
||||
# @return [String]
|
||||
attr_accessor :response_view
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@filter = args[:filter] if args.key?(:filter)
|
||||
@lease_duration = args[:lease_duration] if args.key?(:lease_duration)
|
||||
@max_tasks = args[:max_tasks] if args.key?(:max_tasks)
|
||||
@response_view = args[:response_view] if args.key?(:response_view)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for leasing tasks using CloudTasks.LeaseTasks.
|
||||
class LeaseTasksResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The leased tasks.
|
||||
# Corresponds to the JSON property `tasks`
|
||||
# @return [Array<Google::Apis::CloudtasksV2beta2::Task>]
|
||||
attr_accessor :tasks
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@tasks = args[:tasks] if args.key?(:tasks)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Locations.ListLocations.
|
||||
class ListLocationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -82,6 +82,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LeaseTasksRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LeaseTasksResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -305,6 +317,24 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class LeaseTasksRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :filter, as: 'filter'
|
||||
property :lease_duration, as: 'leaseDuration'
|
||||
property :max_tasks, as: 'maxTasks'
|
||||
property :response_view, as: 'responseView'
|
||||
end
|
||||
end
|
||||
|
||||
class LeaseTasksResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -118,6 +118,10 @@ module Google
|
|||
end
|
||||
|
||||
# Creates a queue.
|
||||
# Queues created with this method allow tasks to live for a maximum of 31
|
||||
# days. After a task is 31 days old, the task will be deleted regardless of
|
||||
# whether
|
||||
# it was dispatched or not.
|
||||
# WARNING: Using this method may have unintended side effects if you are
|
||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
# Read
|
||||
|
@ -334,6 +338,10 @@ module Google
|
|||
# Updates a queue.
|
||||
# This method creates the queue if it does not exist and updates
|
||||
# the queue if it does exist.
|
||||
# Queues created with this method allow tasks to live for a maximum of 31
|
||||
# days. After a task is 31 days old, the task will be deleted regardless of
|
||||
# whether
|
||||
# it was dispatched or not.
|
||||
# WARNING: Using this method may have unintended side effects if you are
|
||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
# Read
|
||||
|
@ -802,6 +810,53 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Leases tasks from a pull queue for LeaseTasksRequest.lease_duration.
|
||||
# This method is invoked by the pull worker to obtain a
|
||||
# lease. The pull worker must acknowledge the task via
|
||||
# CloudTasks.AcknowledgeTask after they have performed the work
|
||||
# associated with the task.
|
||||
# The payload is intended to store data that the pull worker needs
|
||||
# to perform the work associated with the task. To return the
|
||||
# payloads in the LeaseTasksResponse, set
|
||||
# LeaseTasksRequest.response_view to Task.View.FULL.
|
||||
# A maximum of 10 qps of CloudTasks.LeaseTasks requests are allowed per
|
||||
# queue. google.rpc.Code.RESOURCE_EXHAUSTED is returned when this limit
|
||||
# is exceeded. google.rpc.Code.RESOURCE_EXHAUSTED is also returned when
|
||||
# RateLimits.max_tasks_dispatched_per_second is exceeded.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The queue name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
||||
# @param [Google::Apis::CloudtasksV2beta2::LeaseTasksRequest] lease_tasks_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::CloudtasksV2beta2::LeaseTasksResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudtasksV2beta2::LeaseTasksResponse]
|
||||
#
|
||||
# @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 lease_tasks(parent, lease_tasks_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v2beta2/{+parent}/tasks:lease', options)
|
||||
command.request_representation = Google::Apis::CloudtasksV2beta2::LeaseTasksRequest::Representation
|
||||
command.request_object = lease_tasks_request_object
|
||||
command.response_representation = Google::Apis::CloudtasksV2beta2::LeaseTasksResponse::Representation
|
||||
command.response_class = Google::Apis::CloudtasksV2beta2::LeaseTasksResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the tasks in a queue.
|
||||
# By default response_view is Task.View.BASIC; not all
|
||||
# information is retrieved by default due to performance
|
||||
|
|
|
@ -20,13 +20,13 @@ module Google
|
|||
module Apis
|
||||
# Google Container Engine API
|
||||
#
|
||||
# The Google Container Engine API is used for building and managing container
|
||||
# The Google Kubernetes Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
#
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20171111'
|
||||
REVISION = '20171127'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -178,7 +178,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A Google Container Engine cluster.
|
||||
# A Google Kubernetes Engine cluster.
|
||||
class Cluster
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -576,7 +576,7 @@ module Google
|
|||
class CreateClusterRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A Google Container Engine cluster.
|
||||
# A Google Kubernetes Engine cluster.
|
||||
# Corresponds to the JSON property `cluster`
|
||||
# @return [Google::Apis::ContainerV1::Cluster]
|
||||
attr_accessor :cluster
|
||||
|
@ -1518,7 +1518,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Container Engine service configuration.
|
||||
# Kubernetes Engine service configuration.
|
||||
class ServerConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1589,7 +1589,7 @@ module Google
|
|||
|
||||
# The fingerprint of the previous set of labels for this resource,
|
||||
# used to detect conflicts. The fingerprint is initially generated by
|
||||
# Container Engine and changes after every request to modify or update
|
||||
# Kubernetes Engine and changes after every request to modify or update
|
||||
# labels. You must always provide an up-to-date fingerprint hash when
|
||||
# updating or changing labels. Make a <code>get()</code> request to the
|
||||
# resource to get the latest fingerprint.
|
||||
|
@ -1868,9 +1868,8 @@ module Google
|
|||
class UpdateMasterRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Kubernetes version to change the master to. The only valid value is the
|
||||
# latest supported version. Use "-" to have the server automatically select
|
||||
# the latest version.
|
||||
# The Kubernetes version to change the master to. Use "-" to have the server
|
||||
# automatically select the default version.
|
||||
# Corresponds to the JSON property `masterVersion`
|
||||
# @return [String]
|
||||
attr_accessor :master_version
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module ContainerV1
|
||||
# Google Container Engine API
|
||||
#
|
||||
# The Google Container Engine API is used for building and managing container
|
||||
# The Google Kubernetes Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
#
|
||||
# @example
|
||||
|
@ -48,7 +48,7 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Returns configuration info about the Container Engine service.
|
||||
# Returns configuration info about the Kubernetes Engine service.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
|
|
|
@ -20,13 +20,13 @@ module Google
|
|||
module Apis
|
||||
# Google Container Engine API
|
||||
#
|
||||
# The Google Container Engine API is used for building and managing container
|
||||
# The Google Kubernetes Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
#
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20171111'
|
||||
REVISION = '20171127'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -208,7 +208,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A Google Container Engine cluster.
|
||||
# A Google Kubernetes Engine cluster.
|
||||
class Cluster
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -638,7 +638,7 @@ module Google
|
|||
class CreateClusterRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A Google Container Engine cluster.
|
||||
# A Google Kubernetes Engine cluster.
|
||||
# Corresponds to the JSON property `cluster`
|
||||
# @return [Google::Apis::ContainerV1beta1::Cluster]
|
||||
attr_accessor :cluster
|
||||
|
@ -1731,7 +1731,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Container Engine service configuration.
|
||||
# Kubernetes Engine service configuration.
|
||||
class ServerConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1839,7 +1839,7 @@ module Google
|
|||
|
||||
# The fingerprint of the previous set of labels for this resource,
|
||||
# used to detect conflicts. The fingerprint is initially generated by
|
||||
# Container Engine and changes after every request to modify or update
|
||||
# Kubernetes Engine and changes after every request to modify or update
|
||||
# labels. You must always provide an up-to-date fingerprint hash when
|
||||
# updating or changing labels. Make a <code>get()</code> request to the
|
||||
# resource to get the latest fingerprint.
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module ContainerV1beta1
|
||||
# Google Container Engine API
|
||||
#
|
||||
# The Google Container Engine API is used for building and managing container
|
||||
# The Google Kubernetes Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
#
|
||||
# @example
|
||||
|
@ -48,7 +48,7 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Returns configuration info about the Container Engine service.
|
||||
# Returns configuration info about the Kubernetes Engine service.
|
||||
# @param [String] name
|
||||
# The name (project and location) of the server config to get
|
||||
# Specified in the format 'projects/*/locations/*'.
|
||||
|
@ -1164,7 +1164,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns configuration info about the Container Engine service.
|
||||
# Returns configuration info about the Kubernetes Engine service.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/monitoring/api/
|
||||
module MonitoringV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20171125'
|
||||
REVISION = '20171213'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1334,6 +1334,44 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Auxiliary metadata for a MonitoredResource object. MonitoredResource objects
|
||||
# contain the minimum set of information to uniquely identify a monitored
|
||||
# resource instance. There is some other useful auxiliary metadata. Google
|
||||
# Stackdriver Monitoring & Logging uses an ingestion pipeline to extract
|
||||
# metadata for cloud resources of all types , and stores the metadata in this
|
||||
# message.
|
||||
class MonitoredResourceMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. Values for predefined system metadata labels. System labels are a
|
||||
# kind of metadata extracted by Google Stackdriver. Stackdriver determines what
|
||||
# system labels are useful and how to obtain their values. Some examples: "
|
||||
# machine_image", "vpc", "subnet_id", "security_group", "name", etc. System
|
||||
# label values can be only strings, Boolean values, or a list of strings. For
|
||||
# example:
|
||||
# ` "name": "my-test-instance",
|
||||
# "security_group": ["a", "b", "c"],
|
||||
# "spot_instance": false `
|
||||
# Corresponds to the JSON property `systemLabels`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :system_labels
|
||||
|
||||
# Output only. A map of user-defined metadata labels.
|
||||
# Corresponds to the JSON property `userLabels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :user_labels
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@system_labels = args[:system_labels] if args.key?(:system_labels)
|
||||
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
||||
end
|
||||
end
|
||||
|
||||
# A protocol buffer option, which can be attached to a message, field,
|
||||
# enumeration, etc.
|
||||
class Option
|
||||
|
@ -1588,6 +1626,16 @@ module Google
|
|||
class TimeSeries
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Auxiliary metadata for a MonitoredResource object. MonitoredResource objects
|
||||
# contain the minimum set of information to uniquely identify a monitored
|
||||
# resource instance. There is some other useful auxiliary metadata. Google
|
||||
# Stackdriver Monitoring & Logging uses an ingestion pipeline to extract
|
||||
# metadata for cloud resources of all types , and stores the metadata in this
|
||||
# message.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::MonitoringV3::MonitoredResourceMetadata]
|
||||
attr_accessor :metadata
|
||||
|
||||
# A specific metric, identified by specifying values for all of the labels of a
|
||||
# MetricDescriptor.
|
||||
# Corresponds to the JSON property `metric`
|
||||
|
@ -1646,6 +1694,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@metric = args[:metric] if args.key?(:metric)
|
||||
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
||||
@points = args[:points] if args.key?(:points)
|
||||
|
@ -1793,7 +1842,7 @@ module Google
|
|||
# @return [Array<Google::Apis::MonitoringV3::InternalChecker>]
|
||||
attr_accessor :internal_checkers
|
||||
|
||||
# Denotes whether this check is a check that egresses from InternalCheckers.
|
||||
# Denotes whether this is a check that egresses from InternalCheckers.
|
||||
# Corresponds to the JSON property `isInternal`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_internal
|
||||
|
|
|
@ -208,6 +208,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MonitoredResourceMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Option
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -599,6 +605,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MonitoredResourceMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :system_labels, as: 'systemLabels'
|
||||
hash :user_labels, as: 'userLabels'
|
||||
end
|
||||
end
|
||||
|
||||
class Option
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -667,6 +681,8 @@ module Google
|
|||
class TimeSeries
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::MonitoredResourceMetadata, decorator: Google::Apis::MonitoringV3::MonitoredResourceMetadata::Representation
|
||||
|
||||
property :metric, as: 'metric', class: Google::Apis::MonitoringV3::Metric, decorator: Google::Apis::MonitoringV3::Metric::Representation
|
||||
|
||||
property :metric_kind, as: 'metricKind'
|
||||
|
|
Loading…
Reference in New Issue