Autogenerated update (2020-06-02)
Update: - androidenterprise_v1 - cloudsearch_v1 - run_v1 - run_v1alpha1 - sourcerepo_v1 - spanner_v1
This commit is contained in:
parent
8e257677b6
commit
654e6d541e
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Google Play EMM API
|
||||
#
|
||||
# Manages the deployment of apps to Android for Work users.
|
||||
# Manages the deployment of apps to Android Enterprise devices.
|
||||
#
|
||||
# @see https://developers.google.com/android/work/play/emm-api
|
||||
module AndroidenterpriseV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200427'
|
||||
REVISION = '20200528'
|
||||
|
||||
# Manage corporate Android devices
|
||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -490,12 +490,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserToken
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListUsersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -536,7 +530,6 @@ module Google
|
|||
class AdministratorWebToken
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :token, as: 'token'
|
||||
end
|
||||
end
|
||||
|
@ -544,7 +537,6 @@ module Google
|
|||
class AdministratorWebTokenSpec
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :managed_configurations, as: 'managedConfigurations', class: Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpecManagedConfigurations, decorator: Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpecManagedConfigurations::Representation
|
||||
|
||||
property :parent, as: 'parent'
|
||||
|
@ -670,14 +662,12 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :approval_url, as: 'approvalUrl'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthenticationToken
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :token, as: 'token'
|
||||
end
|
||||
end
|
||||
|
@ -705,7 +695,6 @@ module Google
|
|||
class ConfigurationVariables
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :mcm_id, as: 'mcmId'
|
||||
collection :variable_set, as: 'variableSet', class: Google::Apis::AndroidenterpriseV1::VariableSet, decorator: Google::Apis::AndroidenterpriseV1::VariableSet::Representation
|
||||
|
||||
|
@ -716,7 +705,6 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android_id, as: 'androidId'
|
||||
property :kind, as: 'kind'
|
||||
property :management_type, as: 'managementType'
|
||||
property :policy, as: 'policy', class: Google::Apis::AndroidenterpriseV1::Policy, decorator: Google::Apis::AndroidenterpriseV1::Policy::Representation
|
||||
|
||||
|
@ -748,7 +736,6 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_state, as: 'accountState'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -757,7 +744,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :device, as: 'device', class: Google::Apis::AndroidenterpriseV1::Device, decorator: Google::Apis::AndroidenterpriseV1::Device::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -767,7 +753,6 @@ module Google
|
|||
collection :administrator, as: 'administrator', class: Google::Apis::AndroidenterpriseV1::Administrator, decorator: Google::Apis::AndroidenterpriseV1::Administrator::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :primary_domain, as: 'primaryDomain'
|
||||
end
|
||||
|
@ -777,7 +762,6 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_email, as: 'accountEmail'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -786,7 +770,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :enterprise, as: 'enterprise', class: Google::Apis::AndroidenterpriseV1::Enterprise, decorator: Google::Apis::AndroidenterpriseV1::Enterprise::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -801,7 +784,6 @@ module Google
|
|||
class Entitlement
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :product_id, as: 'productId'
|
||||
property :reason, as: 'reason'
|
||||
end
|
||||
|
@ -812,7 +794,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entitlement, as: 'entitlement', class: Google::Apis::AndroidenterpriseV1::Entitlement, decorator: Google::Apis::AndroidenterpriseV1::Entitlement::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -821,7 +802,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :acquisition_kind, as: 'acquisitionKind'
|
||||
property :approval, as: 'approval'
|
||||
property :kind, as: 'kind'
|
||||
property :num_provisioned, as: 'numProvisioned'
|
||||
property :num_purchased, as: 'numPurchased'
|
||||
property :permissions, as: 'permissions'
|
||||
|
@ -832,7 +812,6 @@ module Google
|
|||
class ListGroupLicenseUsersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :user, as: 'user', class: Google::Apis::AndroidenterpriseV1::User, decorator: Google::Apis::AndroidenterpriseV1::User::Representation
|
||||
|
||||
end
|
||||
|
@ -843,7 +822,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :group_license, as: 'groupLicense', class: Google::Apis::AndroidenterpriseV1::GroupLicense, decorator: Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -851,7 +829,6 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :install_state, as: 'installState'
|
||||
property :kind, as: 'kind'
|
||||
property :product_id, as: 'productId'
|
||||
property :version_code, as: 'versionCode'
|
||||
end
|
||||
|
@ -873,7 +850,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :install, as: 'install', class: Google::Apis::AndroidenterpriseV1::Install, decorator: Google::Apis::AndroidenterpriseV1::Install::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -919,7 +895,6 @@ module Google
|
|||
class ManagedConfigurationsForDeviceListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :managed_configuration_for_device, as: 'managedConfigurationForDevice', class: Google::Apis::AndroidenterpriseV1::ManagedConfiguration, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
||||
|
||||
end
|
||||
|
@ -928,7 +903,6 @@ module Google
|
|||
class ManagedConfigurationsForUserListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :managed_configuration_for_user, as: 'managedConfigurationForUser', class: Google::Apis::AndroidenterpriseV1::ManagedConfiguration, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
|
||||
|
||||
end
|
||||
|
@ -937,7 +911,6 @@ module Google
|
|||
class ManagedConfigurationsSettings
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :last_updated_timestamp_millis, :numeric_string => true, as: 'lastUpdatedTimestampMillis'
|
||||
property :mcm_id, as: 'mcmId'
|
||||
property :name, as: 'name'
|
||||
|
@ -947,7 +920,6 @@ module Google
|
|||
class ManagedConfigurationsSettingsListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :managed_configurations_settings, as: 'managedConfigurationsSettings', class: Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettings, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettings::Representation
|
||||
|
||||
end
|
||||
|
@ -1023,7 +995,6 @@ module Google
|
|||
class NotificationSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :notification, as: 'notification', class: Google::Apis::AndroidenterpriseV1::Notification, decorator: Google::Apis::AndroidenterpriseV1::Notification::Representation
|
||||
|
||||
property :notification_set_id, as: 'notificationSetId'
|
||||
|
@ -1043,7 +1014,6 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :permission_id, as: 'permissionId'
|
||||
end
|
||||
|
@ -1079,7 +1049,6 @@ module Google
|
|||
property :distribution_channel, as: 'distributionChannel'
|
||||
collection :features, as: 'features'
|
||||
property :icon_url, as: 'iconUrl'
|
||||
property :kind, as: 'kind'
|
||||
property :last_updated_timestamp_millis, :numeric_string => true, as: 'lastUpdatedTimestampMillis'
|
||||
property :min_android_sdk_version, as: 'minAndroidSdkVersion'
|
||||
collection :permissions, as: 'permissions', class: Google::Apis::AndroidenterpriseV1::ProductPermission, decorator: Google::Apis::AndroidenterpriseV1::ProductPermission::Representation
|
||||
|
@ -1124,7 +1093,6 @@ module Google
|
|||
class ProductPermissions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :permission, as: 'permission', class: Google::Apis::AndroidenterpriseV1::ProductPermission, decorator: Google::Apis::AndroidenterpriseV1::ProductPermission::Representation
|
||||
|
||||
property :product_id, as: 'productId'
|
||||
|
@ -1147,7 +1115,6 @@ module Google
|
|||
class ProductSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :product_id, as: 'productId'
|
||||
property :product_set_behavior, as: 'productSetBehavior'
|
||||
collection :product_visibility, as: 'productVisibility', class: Google::Apis::AndroidenterpriseV1::ProductVisibility, decorator: Google::Apis::AndroidenterpriseV1::ProductVisibility::Representation
|
||||
|
@ -1191,7 +1158,6 @@ module Google
|
|||
class ProductsListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidenterpriseV1::PageInfo, decorator: Google::Apis::AndroidenterpriseV1::PageInfo::Representation
|
||||
|
||||
collection :product, as: 'product', class: Google::Apis::AndroidenterpriseV1::Product, decorator: Google::Apis::AndroidenterpriseV1::Product::Representation
|
||||
|
@ -1206,7 +1172,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key', class: Google::Apis::AndroidenterpriseV1::ServiceAccountKey, decorator: Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
@ -1216,7 +1181,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :data, as: 'data'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :public_data, as: 'publicData'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
|
@ -1243,7 +1207,6 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :name, as: 'name', class: Google::Apis::AndroidenterpriseV1::LocalizedText, decorator: Google::Apis::AndroidenterpriseV1::LocalizedText::Representation
|
||||
|
||||
property :order_in_page, as: 'orderInPage'
|
||||
|
@ -1255,7 +1218,6 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :homepage_id, as: 'homepageId'
|
||||
property :kind, as: 'kind'
|
||||
property :store_layout_type, as: 'storeLayoutType'
|
||||
end
|
||||
end
|
||||
|
@ -1265,14 +1227,12 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :cluster, as: 'cluster', class: Google::Apis::AndroidenterpriseV1::StoreCluster, decorator: Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class StoreLayoutPagesListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :page, as: 'page', class: Google::Apis::AndroidenterpriseV1::StorePage, decorator: Google::Apis::AndroidenterpriseV1::StorePage::Representation
|
||||
|
||||
end
|
||||
|
@ -1282,7 +1242,6 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :link, as: 'link'
|
||||
collection :name, as: 'name', class: Google::Apis::AndroidenterpriseV1::LocalizedText, decorator: Google::Apis::AndroidenterpriseV1::LocalizedText::Representation
|
||||
|
||||
|
@ -1312,25 +1271,14 @@ module Google
|
|||
property :account_type, as: 'accountType'
|
||||
property :display_name, as: 'displayName'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :management_type, as: 'managementType'
|
||||
property :primary_email, as: 'primaryEmail'
|
||||
end
|
||||
end
|
||||
|
||||
class UserToken
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :token, as: 'token'
|
||||
property :user_id, as: 'userId'
|
||||
end
|
||||
end
|
||||
|
||||
class ListUsersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :user, as: 'user', class: Google::Apis::AndroidenterpriseV1::User, decorator: Google::Apis::AndroidenterpriseV1::User::Representation
|
||||
|
||||
end
|
||||
|
@ -1339,7 +1287,6 @@ module Google
|
|||
class VariableSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :placeholder, as: 'placeholder'
|
||||
property :user_value, as: 'userValue'
|
||||
end
|
||||
|
@ -1369,7 +1316,6 @@ module Google
|
|||
class WebAppsListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :web_app, as: 'webApp', class: Google::Apis::AndroidenterpriseV1::WebApp, decorator: Google::Apis::AndroidenterpriseV1::WebApp::Representation
|
||||
|
||||
end
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/cloud-search/docs/guides/
|
||||
module CloudsearchV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200505'
|
||||
REVISION = '20200519'
|
||||
|
||||
# Index and serve your organization's data with Cloud Search
|
||||
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
|
||||
|
|
|
@ -1274,7 +1274,7 @@ module Google
|
|||
# **Note:** This API requires an admin account to execute.
|
||||
# @param [String] name
|
||||
# Name of the search application.
|
||||
# <br />Format: applications/`application_id`.
|
||||
# <br />Format: searchapplications/`application_id`.
|
||||
# @param [Boolean] debug_options_enable_debugging
|
||||
# If you are asked by Google to help with debugging, set this field.
|
||||
# Otherwise, ignore this field.
|
||||
|
|
|
@ -632,6 +632,77 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# An assignment between a targetable inventory source and an inventory source
|
||||
# group.
|
||||
class AssignedInventorySource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. The unique ID of the assigned inventory source. The ID is only
|
||||
# unique within a given inventory source group. It may be reused in other
|
||||
# contexts.
|
||||
# Corresponds to the JSON property `assignedInventorySourceId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :assigned_inventory_source_id
|
||||
|
||||
# Required. The ID of the inventory source entity being targeted.
|
||||
# Corresponds to the JSON property `inventorySourceId`
|
||||
# @return [String]
|
||||
attr_accessor :inventory_source_id
|
||||
|
||||
# Output only. The resource name of the assigned inventory source.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@assigned_inventory_source_id = args[:assigned_inventory_source_id] if args.key?(:assigned_inventory_source_id)
|
||||
@inventory_source_id = args[:inventory_source_id] if args.key?(:inventory_source_id)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# An assignment between a location list and a relevant targeting option.
|
||||
# Currently, geo region targeting options are the only supported option for
|
||||
# assignment.
|
||||
class AssignedLocation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. The unique ID of the assigned location. The ID is only unique
|
||||
# within a
|
||||
# location list. It may be reused in other contexts.
|
||||
# Corresponds to the JSON property `assignedLocationId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :assigned_location_id
|
||||
|
||||
# Output only. The resource name of the assigned location.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Required. The ID of the targeting option assigned to the location list. Must
|
||||
# be of
|
||||
# type TARGETING_TYPE_GEO_REGION.
|
||||
# Corresponds to the JSON property `targetingOptionId`
|
||||
# @return [String]
|
||||
attr_accessor :targeting_option_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@assigned_location_id = args[:assigned_location_id] if args.key?(:assigned_location_id)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@targeting_option_id = args[:targeting_option_id] if args.key?(:targeting_option_id)
|
||||
end
|
||||
end
|
||||
|
||||
# A single assigned targeting option, which defines the state of a targeting
|
||||
# option for an entity with targeting settings, such as a Line Item or
|
||||
# Insertion Order.
|
||||
|
@ -1314,6 +1385,116 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for AssignedInventorySourceService.BulkEdit.
|
||||
class BulkEditAssignedInventorySourcesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the advertiser that owns the parent inventory source group.
|
||||
# The parent partner does not have access to these assigned inventory
|
||||
# sources.
|
||||
# Corresponds to the JSON property `advertiserId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :advertiser_id
|
||||
|
||||
# The assigned inventory sources to create in bulk, specified as a list of
|
||||
# AssignedInventorySources.
|
||||
# Corresponds to the JSON property `createdAssignedInventorySources`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::AssignedInventorySource>]
|
||||
attr_accessor :created_assigned_inventory_sources
|
||||
|
||||
# The IDs of the assigned inventory sources to delete in bulk, specified as a
|
||||
# list of
|
||||
# assigned_inventory_source_ids.
|
||||
# Corresponds to the JSON property `deletedAssignedInventorySources`
|
||||
# @return [Array<Fixnum>]
|
||||
attr_accessor :deleted_assigned_inventory_sources
|
||||
|
||||
# The ID of the partner that owns the inventory source group.
|
||||
# Only this partner has write access to these assigned inventory sources.
|
||||
# Corresponds to the JSON property `partnerId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :partner_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
|
||||
@created_assigned_inventory_sources = args[:created_assigned_inventory_sources] if args.key?(:created_assigned_inventory_sources)
|
||||
@deleted_assigned_inventory_sources = args[:deleted_assigned_inventory_sources] if args.key?(:deleted_assigned_inventory_sources)
|
||||
@partner_id = args[:partner_id] if args.key?(:partner_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for AssignedInventorySourceService.BulkEdit.
|
||||
class BulkEditAssignedInventorySourcesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of assigned inventory sources that have been successfully created.
|
||||
# This list will be absent if empty.
|
||||
# Corresponds to the JSON property `assignedInventorySources`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::AssignedInventorySource>]
|
||||
attr_accessor :assigned_inventory_sources
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@assigned_inventory_sources = args[:assigned_inventory_sources] if args.key?(:assigned_inventory_sources)
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for AssignedLocationService.BulkEditAssignedLocations.
|
||||
class BulkEditAssignedLocationsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The assigned locations to create in bulk, specified as a list of
|
||||
# AssignedLocations.
|
||||
# Corresponds to the JSON property `createdAssignedLocations`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::AssignedLocation>]
|
||||
attr_accessor :created_assigned_locations
|
||||
|
||||
# The IDs of the assigned locations to delete in bulk, specified as a list of
|
||||
# assigned_location_ids.
|
||||
# Corresponds to the JSON property `deletedAssignedLocations`
|
||||
# @return [Array<Fixnum>]
|
||||
attr_accessor :deleted_assigned_locations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@created_assigned_locations = args[:created_assigned_locations] if args.key?(:created_assigned_locations)
|
||||
@deleted_assigned_locations = args[:deleted_assigned_locations] if args.key?(:deleted_assigned_locations)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for AssignedLocationService.BulkEditAssignedLocations.
|
||||
class BulkEditAssignedLocationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of assigned locations that have been successfully created.
|
||||
# This list will be absent if empty.
|
||||
# Corresponds to the JSON property `assignedLocations`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::AssignedLocation>]
|
||||
attr_accessor :assigned_locations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@assigned_locations = args[:assigned_locations] if args.key?(:assigned_locations)
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for
|
||||
# BulkEditLineItemAssignedTargetingOptions.
|
||||
class BulkEditLineItemAssignedTargetingOptionsRequest
|
||||
|
@ -1362,6 +1543,111 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Request message for NegativeKeywordService.BulkEditNegativeKeywords.
|
||||
class BulkEditNegativeKeywordsRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The negative keywords to create in batch, specified as a list of
|
||||
# NegativeKeywords.
|
||||
# Corresponds to the JSON property `createdNegativeKeywords`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::NegativeKeyword>]
|
||||
attr_accessor :created_negative_keywords
|
||||
|
||||
# The negative keywords to delete in batch, specified as a list of
|
||||
# keyword_values.
|
||||
# Corresponds to the JSON property `deletedNegativeKeywords`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :deleted_negative_keywords
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@created_negative_keywords = args[:created_negative_keywords] if args.key?(:created_negative_keywords)
|
||||
@deleted_negative_keywords = args[:deleted_negative_keywords] if args.key?(:deleted_negative_keywords)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for NegativeKeywordService.BulkEditNegativeKeywords.
|
||||
class BulkEditNegativeKeywordsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of negative keywords that have been successfully created.
|
||||
# This list will be absent if empty.
|
||||
# Corresponds to the JSON property `negativeKeywords`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::NegativeKeyword>]
|
||||
attr_accessor :negative_keywords
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@negative_keywords = args[:negative_keywords] if args.key?(:negative_keywords)
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for SiteService.BulkEditSites.
|
||||
class BulkEditSitesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the advertiser that owns the parent channel.
|
||||
# Corresponds to the JSON property `advertiserId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :advertiser_id
|
||||
|
||||
# The sites to create in batch, specified as a list of Sites.
|
||||
# Corresponds to the JSON property `createdSites`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::Site>]
|
||||
attr_accessor :created_sites
|
||||
|
||||
# The sites to delete in batch, specified as a list of site
|
||||
# url_or_app_ids.
|
||||
# Corresponds to the JSON property `deletedSites`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :deleted_sites
|
||||
|
||||
# The ID of the partner that owns the parent channel.
|
||||
# Corresponds to the JSON property `partnerId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :partner_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
|
||||
@created_sites = args[:created_sites] if args.key?(:created_sites)
|
||||
@deleted_sites = args[:deleted_sites] if args.key?(:deleted_sites)
|
||||
@partner_id = args[:partner_id] if args.key?(:partner_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for SiteService.BulkEditSites.
|
||||
class BulkEditSitesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of sites that have been successfully created.
|
||||
# This list will be absent if empty.
|
||||
# Corresponds to the JSON property `sites`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::Site>]
|
||||
attr_accessor :sites
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@sites = args[:sites] if args.key?(:sites)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class BulkListAdvertiserAssignedTargetingOptionsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -5120,6 +5406,68 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response message for
|
||||
# AssignedInventorySourceService.ListAssignedInventorySources.
|
||||
class ListAssignedInventorySourcesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of assigned inventory sources.
|
||||
# This list will be absent if empty.
|
||||
# Corresponds to the JSON property `assignedInventorySources`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::AssignedInventorySource>]
|
||||
attr_accessor :assigned_inventory_sources
|
||||
|
||||
# A token to retrieve the next page of results.
|
||||
# Pass this value in the
|
||||
# page_token field
|
||||
# in the subsequent call to `ListAssignedInventorySources` method to
|
||||
# retrieve 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)
|
||||
@assigned_inventory_sources = args[:assigned_inventory_sources] if args.key?(:assigned_inventory_sources)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for
|
||||
# AssignedLocationService.ListAssignedLocations.
|
||||
class ListAssignedLocationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of assigned locations.
|
||||
# This list will be absent if empty.
|
||||
# Corresponds to the JSON property `assignedLocations`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::AssignedLocation>]
|
||||
attr_accessor :assigned_locations
|
||||
|
||||
# A token to retrieve the next page of results.
|
||||
# Pass this value in the
|
||||
# page_token field
|
||||
# in the subsequent call to `ListAssignedLocations` method to
|
||||
# retrieve 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)
|
||||
@assigned_locations = args[:assigned_locations] if args.key?(:assigned_locations)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ListCampaignsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -5541,6 +5889,64 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response message for NegativeKeywordService.ListNegativeKeywords.
|
||||
class ListNegativeKeywordsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of negative keywords.
|
||||
# This list will be absent if empty.
|
||||
# Corresponds to the JSON property `negativeKeywords`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::NegativeKeyword>]
|
||||
attr_accessor :negative_keywords
|
||||
|
||||
# A token to retrieve the next page of results.
|
||||
# Pass this value in the page_token
|
||||
# field in the subsequent call to `ListNegativeKeywords` method to retrieve
|
||||
# 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)
|
||||
@negative_keywords = args[:negative_keywords] if args.key?(:negative_keywords)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for SiteService.ListSites.
|
||||
class ListSitesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A token to retrieve the next page of results.
|
||||
# Pass this value in the page_token field
|
||||
# in the subsequent call to `ListSites` method to retrieve the next page
|
||||
# of results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# The list of sites.
|
||||
# This list will be absent if empty.
|
||||
# Corresponds to the JSON property `sites`
|
||||
# @return [Array<Google::Apis::DisplayvideoV1::Site>]
|
||||
attr_accessor :sites
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@sites = args[:sites] if args.key?(:sites)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for
|
||||
# ListTargetingOptions.
|
||||
class ListTargetingOptionsResponse
|
||||
|
@ -5715,6 +6121,37 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A negatively targeted keyword that belongs to a negative keyword list.
|
||||
class NegativeKeyword
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. Immutable. The negatively targeted keyword, for example `car
|
||||
# insurance`.
|
||||
# Must be UTF-8 encoded with a maximum size of 255 bytes. Maximum number
|
||||
# of characters is 80. Maximum number of words is 10.
|
||||
# Valid characters are restricted to ASCII characters only. The only
|
||||
# URL-escaping permitted is for representing whitespace between words.
|
||||
# Leading or trailing whitespace is ignored.
|
||||
# Corresponds to the JSON property `keywordValue`
|
||||
# @return [String]
|
||||
attr_accessor :keyword_value
|
||||
|
||||
# Output only. The resource name of the negative keyword.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@keyword_value = args[:keyword_value] if args.key?(:keyword_value)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# A list of negative keywords used for targeting.
|
||||
class NegativeKeywordList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -6703,6 +7140,32 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A single site. Sites are apps or websites belonging to a channel.
|
||||
class Site
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. The resource name of the site.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Required. The URL or app ID of the site.
|
||||
# Must be UTF-8 encoded with a maximum length of 240 bytes.
|
||||
# Corresponds to the JSON property `urlOrAppId`
|
||||
# @return [String]
|
||||
attr_accessor :url_or_app_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@url_or_app_id = args[:url_or_app_id] if args.key?(:url_or_app_id)
|
||||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
|
|
|
@ -118,6 +118,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AssignedInventorySource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AssignedLocation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AssignedTargetingOption
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -178,6 +190,30 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditAssignedInventorySourcesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditAssignedInventorySourcesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditAssignedLocationsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditAssignedLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditLineItemAssignedTargetingOptionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -190,6 +226,30 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditNegativeKeywordsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditNegativeKeywordsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditSitesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkEditSitesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BulkListAdvertiserAssignedTargetingOptionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -748,6 +808,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListAssignedInventorySourcesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListAssignedLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListCampaignsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -832,6 +904,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListNegativeKeywordsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListSitesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListTargetingOptionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -862,6 +946,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NegativeKeyword
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NegativeKeywordList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1018,6 +1108,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Site
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1284,6 +1380,24 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class AssignedInventorySource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :assigned_inventory_source_id, :numeric_string => true, as: 'assignedInventorySourceId'
|
||||
property :inventory_source_id, as: 'inventorySourceId'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class AssignedLocation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :assigned_location_id, :numeric_string => true, as: 'assignedLocationId'
|
||||
property :name, as: 'name'
|
||||
property :targeting_option_id, as: 'targetingOptionId'
|
||||
end
|
||||
end
|
||||
|
||||
class AssignedTargetingOption
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1455,6 +1569,42 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class BulkEditAssignedInventorySourcesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :advertiser_id, :numeric_string => true, as: 'advertiserId'
|
||||
collection :created_assigned_inventory_sources, as: 'createdAssignedInventorySources', class: Google::Apis::DisplayvideoV1::AssignedInventorySource, decorator: Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
|
||||
|
||||
collection :deleted_assigned_inventory_sources, as: 'deletedAssignedInventorySources'
|
||||
property :partner_id, :numeric_string => true, as: 'partnerId'
|
||||
end
|
||||
end
|
||||
|
||||
class BulkEditAssignedInventorySourcesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :assigned_inventory_sources, as: 'assignedInventorySources', class: Google::Apis::DisplayvideoV1::AssignedInventorySource, decorator: Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BulkEditAssignedLocationsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :created_assigned_locations, as: 'createdAssignedLocations', class: Google::Apis::DisplayvideoV1::AssignedLocation, decorator: Google::Apis::DisplayvideoV1::AssignedLocation::Representation
|
||||
|
||||
collection :deleted_assigned_locations, as: 'deletedAssignedLocations'
|
||||
end
|
||||
end
|
||||
|
||||
class BulkEditAssignedLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :assigned_locations, as: 'assignedLocations', class: Google::Apis::DisplayvideoV1::AssignedLocation, decorator: Google::Apis::DisplayvideoV1::AssignedLocation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BulkEditLineItemAssignedTargetingOptionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1473,6 +1623,42 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class BulkEditNegativeKeywordsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :created_negative_keywords, as: 'createdNegativeKeywords', class: Google::Apis::DisplayvideoV1::NegativeKeyword, decorator: Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
|
||||
|
||||
collection :deleted_negative_keywords, as: 'deletedNegativeKeywords'
|
||||
end
|
||||
end
|
||||
|
||||
class BulkEditNegativeKeywordsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :negative_keywords, as: 'negativeKeywords', class: Google::Apis::DisplayvideoV1::NegativeKeyword, decorator: Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BulkEditSitesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :advertiser_id, :numeric_string => true, as: 'advertiserId'
|
||||
collection :created_sites, as: 'createdSites', class: Google::Apis::DisplayvideoV1::Site, decorator: Google::Apis::DisplayvideoV1::Site::Representation
|
||||
|
||||
collection :deleted_sites, as: 'deletedSites'
|
||||
property :partner_id, :numeric_string => true, as: 'partnerId'
|
||||
end
|
||||
end
|
||||
|
||||
class BulkEditSitesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :sites, as: 'sites', class: Google::Apis::DisplayvideoV1::Site, decorator: Google::Apis::DisplayvideoV1::Site::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BulkListAdvertiserAssignedTargetingOptionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2413,6 +2599,24 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListAssignedInventorySourcesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :assigned_inventory_sources, as: 'assignedInventorySources', class: Google::Apis::DisplayvideoV1::AssignedInventorySource, decorator: Google::Apis::DisplayvideoV1::AssignedInventorySource::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListAssignedLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :assigned_locations, as: 'assignedLocations', class: Google::Apis::DisplayvideoV1::AssignedLocation, decorator: Google::Apis::DisplayvideoV1::AssignedLocation::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListCampaignsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2539,6 +2743,24 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListNegativeKeywordsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :negative_keywords, as: 'negativeKeywords', class: Google::Apis::DisplayvideoV1::NegativeKeyword, decorator: Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListSitesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :sites, as: 'sites', class: Google::Apis::DisplayvideoV1::Site, decorator: Google::Apis::DisplayvideoV1::Site::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListTargetingOptionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2584,6 +2806,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class NegativeKeyword
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :keyword_value, as: 'keywordValue'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class NegativeKeywordList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2819,6 +3049,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Site
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :url_or_app_id, as: 'urlOrAppId'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,34 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/recommender_v1/service.rb'
|
||||
require 'google/apis/recommender_v1/classes.rb'
|
||||
require 'google/apis/recommender_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Recommender API
|
||||
#
|
||||
#
|
||||
#
|
||||
# @see https://cloud.google.com/recommender/docs/
|
||||
module RecommenderV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200516'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,505 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module RecommenderV1
|
||||
|
||||
# Contains metadata about how much money a recommendation can save or incur.
|
||||
class GoogleCloudRecommenderV1CostProjection
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents an amount of money with its currency type.
|
||||
# Corresponds to the JSON property `cost`
|
||||
# @return [Google::Apis::RecommenderV1::GoogleTypeMoney]
|
||||
attr_accessor :cost
|
||||
|
||||
# Duration for which this cost applies.
|
||||
# Corresponds to the JSON property `duration`
|
||||
# @return [String]
|
||||
attr_accessor :duration
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cost = args[:cost] if args.key?(:cost)
|
||||
@duration = args[:duration] if args.key?(:duration)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains the impact a recommendation can have for a given category.
|
||||
class GoogleCloudRecommenderV1Impact
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Category that is being targeted.
|
||||
# Corresponds to the JSON property `category`
|
||||
# @return [String]
|
||||
attr_accessor :category
|
||||
|
||||
# Contains metadata about how much money a recommendation can save or incur.
|
||||
# Corresponds to the JSON property `costProjection`
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection]
|
||||
attr_accessor :cost_projection
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@category = args[:category] if args.key?(:category)
|
||||
@cost_projection = args[:cost_projection] if args.key?(:cost_projection)
|
||||
end
|
||||
end
|
||||
|
||||
# Response to the `ListRecommendations` method.
|
||||
class GoogleCloudRecommenderV1ListRecommendationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A token that can be used to request the next page of results. This field is
|
||||
# empty if there are no additional results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# The set of recommendations for the `parent` resource.
|
||||
# Corresponds to the JSON property `recommendations`
|
||||
# @return [Array<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation>]
|
||||
attr_accessor :recommendations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@recommendations = args[:recommendations] if args.key?(:recommendations)
|
||||
end
|
||||
end
|
||||
|
||||
# Request for the `MarkRecommendationClaimed` Method.
|
||||
class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# State properties to include with this state. Overwrites any existing
|
||||
# `state_metadata`.
|
||||
# Keys must match the regex /^a-z0-9`0,62`$/.
|
||||
# Values must match the regex /^[a-zA-Z0-9_./-]`0,255`$/.
|
||||
# Corresponds to the JSON property `stateMetadata`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :state_metadata
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
|
||||
end
|
||||
end
|
||||
|
||||
# Request for the `MarkRecommendationFailed` Method.
|
||||
class GoogleCloudRecommenderV1MarkRecommendationFailedRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# State properties to include with this state. Overwrites any existing
|
||||
# `state_metadata`.
|
||||
# Keys must match the regex /^a-z0-9`0,62`$/.
|
||||
# Values must match the regex /^[a-zA-Z0-9_./-]`0,255`$/.
|
||||
# Corresponds to the JSON property `stateMetadata`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :state_metadata
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
|
||||
end
|
||||
end
|
||||
|
||||
# Request for the `MarkRecommendationSucceeded` Method.
|
||||
class GoogleCloudRecommenderV1MarkRecommendationSucceededRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# State properties to include with this state. Overwrites any existing
|
||||
# `state_metadata`.
|
||||
# Keys must match the regex /^a-z0-9`0,62`$/.
|
||||
# Values must match the regex /^[a-zA-Z0-9_./-]`0,255`$/.
|
||||
# Corresponds to the JSON property `stateMetadata`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :state_metadata
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains an operation for a resource loosely based on the JSON-PATCH format
|
||||
# with support for:
|
||||
# * Custom filters for describing partial array patch.
|
||||
# * Extended path values for describing nested arrays.
|
||||
# * Custom fields for describing the resource for which the operation is being
|
||||
# described.
|
||||
# * Allows extension to custom operations not natively supported by RFC6902.
|
||||
# See https://tools.ietf.org/html/rfc6902 for details on the original RFC.
|
||||
class GoogleCloudRecommenderV1Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Type of this operation. Contains one of 'and', 'remove', 'replace', 'move',
|
||||
# 'copy', 'test' and custom operations. This field is case-insensitive and
|
||||
# always populated.
|
||||
# Corresponds to the JSON property `action`
|
||||
# @return [String]
|
||||
attr_accessor :action
|
||||
|
||||
# Path to the target field being operated on. If the operation is at the
|
||||
# resource level, then path should be "/". This field is always populated.
|
||||
# Corresponds to the JSON property `path`
|
||||
# @return [String]
|
||||
attr_accessor :path
|
||||
|
||||
# Set of filters to apply if `path` refers to array elements or nested array
|
||||
# elements in order to narrow down to a single unique element that is being
|
||||
# tested/modified.
|
||||
# This is intended to be an exact match per filter. To perform advanced
|
||||
# matching, use path_value_matchers.
|
||||
# * Example: `
|
||||
# "/versions/*/name" : "it-123"
|
||||
# "/versions/*/targetSize/percent": 20
|
||||
# `
|
||||
# * Example: `
|
||||
# "/bindings/*/role": "roles/admin"
|
||||
# "/bindings/*/condition" : null
|
||||
# `
|
||||
# * Example: `
|
||||
# "/bindings/*/role": "roles/admin"
|
||||
# "/bindings/*/members/*" : ["x@google.com", "y@google.com"]
|
||||
# `
|
||||
# When both path_filters and path_value_matchers are set, an implicit AND
|
||||
# must be performed.
|
||||
# Corresponds to the JSON property `pathFilters`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :path_filters
|
||||
|
||||
# Similar to path_filters, this contains set of filters to apply if `path`
|
||||
# field referes to array elements. This is meant to support value matching
|
||||
# beyond exact match. To perform exact match, use path_filters.
|
||||
# When both path_filters and path_value_matchers are set, an implicit AND
|
||||
# must be performed.
|
||||
# Corresponds to the JSON property `pathValueMatchers`
|
||||
# @return [Hash<String,Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher>]
|
||||
attr_accessor :path_value_matchers
|
||||
|
||||
# Contains the fully qualified resource name. This field is always populated.
|
||||
# ex: //cloudresourcemanager.googleapis.com/projects/foo.
|
||||
# Corresponds to the JSON property `resource`
|
||||
# @return [String]
|
||||
attr_accessor :resource
|
||||
|
||||
# Type of GCP resource being modified/tested. This field is always populated.
|
||||
# Example: cloudresourcemanager.googleapis.com/Project,
|
||||
# compute.googleapis.com/Instance
|
||||
# Corresponds to the JSON property `resourceType`
|
||||
# @return [String]
|
||||
attr_accessor :resource_type
|
||||
|
||||
# Can be set with action 'copy' or 'move' to indicate the source field within
|
||||
# resource or source_resource, ignored if provided for other operation types.
|
||||
# Corresponds to the JSON property `sourcePath`
|
||||
# @return [String]
|
||||
attr_accessor :source_path
|
||||
|
||||
# Can be set with action 'copy' to copy resource configuration across
|
||||
# different resources of the same type. Example: A resource clone can be
|
||||
# done via action = 'copy', path = "/", from = "/",
|
||||
# source_resource = <source> and resource_name = <target>.
|
||||
# This field is empty for all other values of `action`.
|
||||
# Corresponds to the JSON property `sourceResource`
|
||||
# @return [String]
|
||||
attr_accessor :source_resource
|
||||
|
||||
# Value for the `path` field. Will be set for actions:'add'/'replace'.
|
||||
# Maybe set for action: 'test'. Either this or `value_matcher` will be set
|
||||
# for 'test' operation. An exact match must be performed.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [Object]
|
||||
attr_accessor :value
|
||||
|
||||
# Contains various matching options for values for a GCP resource field.
|
||||
# Corresponds to the JSON property `valueMatcher`
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher]
|
||||
attr_accessor :value_matcher
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@action = args[:action] if args.key?(:action)
|
||||
@path = args[:path] if args.key?(:path)
|
||||
@path_filters = args[:path_filters] if args.key?(:path_filters)
|
||||
@path_value_matchers = args[:path_value_matchers] if args.key?(:path_value_matchers)
|
||||
@resource = args[:resource] if args.key?(:resource)
|
||||
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
||||
@source_path = args[:source_path] if args.key?(:source_path)
|
||||
@source_resource = args[:source_resource] if args.key?(:source_resource)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
@value_matcher = args[:value_matcher] if args.key?(:value_matcher)
|
||||
end
|
||||
end
|
||||
|
||||
# Group of operations that need to be performed atomically.
|
||||
class GoogleCloudRecommenderV1OperationGroup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of operations across one or more resources that belong to this group.
|
||||
# Loosely based on RFC6902 and should be performed in the order they appear.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
end
|
||||
end
|
||||
|
||||
# A recommendation along with a suggested action. E.g., a rightsizing
|
||||
# recommendation for an underutilized VM, IAM role recommendations, etc
|
||||
class GoogleCloudRecommenderV1Recommendation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional set of additional impact that this recommendation may have when
|
||||
# trying to optimize for the primary category. These may be positive
|
||||
# or negative.
|
||||
# Corresponds to the JSON property `additionalImpact`
|
||||
# @return [Array<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact>]
|
||||
attr_accessor :additional_impact
|
||||
|
||||
# Contains what resources are changing and how they are changing.
|
||||
# Corresponds to the JSON property `content`
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationContent]
|
||||
attr_accessor :content
|
||||
|
||||
# Free-form human readable summary in English. The maximum length is 500
|
||||
# characters.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Fingerprint of the Recommendation. Provides optimistic locking when
|
||||
# updating states.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Last time this recommendation was refreshed by the system that created it
|
||||
# in the first place.
|
||||
# Corresponds to the JSON property `lastRefreshTime`
|
||||
# @return [String]
|
||||
attr_accessor :last_refresh_time
|
||||
|
||||
# Name of recommendation.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Contains the impact a recommendation can have for a given category.
|
||||
# Corresponds to the JSON property `primaryImpact`
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact]
|
||||
attr_accessor :primary_impact
|
||||
|
||||
# Contains an identifier for a subtype of recommendations produced for the
|
||||
# same recommender. Subtype is a function of content and impact, meaning a
|
||||
# new subtype might be added when significant changes to `content` or
|
||||
# `primary_impact.category` are introduced. See the Recommenders section
|
||||
# to see a list of subtypes for a given Recommender.
|
||||
# Examples:
|
||||
# For recommender = "google.iam.policy.Recommender",
|
||||
# recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
|
||||
# Corresponds to the JSON property `recommenderSubtype`
|
||||
# @return [String]
|
||||
attr_accessor :recommender_subtype
|
||||
|
||||
# Information for state. Contains state and metadata.
|
||||
# Corresponds to the JSON property `stateInfo`
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationStateInfo]
|
||||
attr_accessor :state_info
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@additional_impact = args[:additional_impact] if args.key?(:additional_impact)
|
||||
@content = args[:content] if args.key?(:content)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@primary_impact = args[:primary_impact] if args.key?(:primary_impact)
|
||||
@recommender_subtype = args[:recommender_subtype] if args.key?(:recommender_subtype)
|
||||
@state_info = args[:state_info] if args.key?(:state_info)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains what resources are changing and how they are changing.
|
||||
class GoogleCloudRecommenderV1RecommendationContent
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Operations to one or more Google Cloud resources grouped in such a way
|
||||
# that, all operations within one group are expected to be performed
|
||||
# atomically and in an order.
|
||||
# Corresponds to the JSON property `operationGroups`
|
||||
# @return [Array<Google::Apis::RecommenderV1::GoogleCloudRecommenderV1OperationGroup>]
|
||||
attr_accessor :operation_groups
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@operation_groups = args[:operation_groups] if args.key?(:operation_groups)
|
||||
end
|
||||
end
|
||||
|
||||
# Information for state. Contains state and metadata.
|
||||
class GoogleCloudRecommenderV1RecommendationStateInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
||||
# A map of metadata for the state, provided by user or automations systems.
|
||||
# Corresponds to the JSON property `stateMetadata`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :state_metadata
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@state = args[:state] if args.key?(:state)
|
||||
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains various matching options for values for a GCP resource field.
|
||||
class GoogleCloudRecommenderV1ValueMatcher
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# To be used for full regex matching. The regular expression is using the
|
||||
# Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be
|
||||
# used with RE2::FullMatch
|
||||
# Corresponds to the JSON property `matchesPattern`
|
||||
# @return [String]
|
||||
attr_accessor :matches_pattern
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@matches_pattern = args[:matches_pattern] if args.key?(:matches_pattern)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents an amount of money with its currency type.
|
||||
class GoogleTypeMoney
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The 3-letter currency code defined in ISO 4217.
|
||||
# Corresponds to the JSON property `currencyCode`
|
||||
# @return [String]
|
||||
attr_accessor :currency_code
|
||||
|
||||
# Number of nano (10^-9) units of the amount.
|
||||
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
||||
# If `units` is positive, `nanos` must be positive or zero.
|
||||
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
||||
# If `units` is negative, `nanos` must be negative or zero.
|
||||
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
||||
# Corresponds to the JSON property `nanos`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :nanos
|
||||
|
||||
# The whole units of the amount.
|
||||
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
||||
# Corresponds to the JSON property `units`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :units
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
||||
@nanos = args[:nanos] if args.key?(:nanos)
|
||||
@units = args[:units] if args.key?(:units)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,232 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module RecommenderV1
|
||||
|
||||
class GoogleCloudRecommenderV1CostProjection
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1Impact
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1ListRecommendationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1MarkRecommendationFailedRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1MarkRecommendationSucceededRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1OperationGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1Recommendation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1RecommendationContent
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1RecommendationStateInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1ValueMatcher
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleTypeMoney
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1CostProjection
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cost, as: 'cost', class: Google::Apis::RecommenderV1::GoogleTypeMoney, decorator: Google::Apis::RecommenderV1::GoogleTypeMoney::Representation
|
||||
|
||||
property :duration, as: 'duration'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1Impact
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :category, as: 'category'
|
||||
property :cost_projection, as: 'costProjection', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1ListRecommendationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :recommendations, as: 'recommendations', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, as: 'etag'
|
||||
hash :state_metadata, as: 'stateMetadata'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1MarkRecommendationFailedRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, as: 'etag'
|
||||
hash :state_metadata, as: 'stateMetadata'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1MarkRecommendationSucceededRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, as: 'etag'
|
||||
hash :state_metadata, as: 'stateMetadata'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action'
|
||||
property :path, as: 'path'
|
||||
hash :path_filters, as: 'pathFilters'
|
||||
hash :path_value_matchers, as: 'pathValueMatchers', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher::Representation
|
||||
|
||||
property :resource, as: 'resource'
|
||||
property :resource_type, as: 'resourceType'
|
||||
property :source_path, as: 'sourcePath'
|
||||
property :source_resource, as: 'sourceResource'
|
||||
property :value, as: 'value'
|
||||
property :value_matcher, as: 'valueMatcher', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ValueMatcher::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1OperationGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :operations, as: 'operations', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Operation, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1Recommendation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :additional_impact, as: 'additionalImpact', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact::Representation
|
||||
|
||||
property :content, as: 'content', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationContent, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationContent::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
property :etag, as: 'etag'
|
||||
property :last_refresh_time, as: 'lastRefreshTime'
|
||||
property :name, as: 'name'
|
||||
property :primary_impact, as: 'primaryImpact', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Impact::Representation
|
||||
|
||||
property :recommender_subtype, as: 'recommenderSubtype'
|
||||
property :state_info, as: 'stateInfo', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationStateInfo, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1RecommendationStateInfo::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1RecommendationContent
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :operation_groups, as: 'operationGroups', class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1OperationGroup, decorator: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1OperationGroup::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1RecommendationStateInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :state, as: 'state'
|
||||
hash :state_metadata, as: 'stateMetadata'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudRecommenderV1ValueMatcher
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :matches_pattern, as: 'matchesPattern'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleTypeMoney
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :currency_code, as: 'currencyCode'
|
||||
property :nanos, as: 'nanos'
|
||||
property :units, :numeric_string => true, as: 'units'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,266 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module RecommenderV1
|
||||
# Recommender API
|
||||
#
|
||||
#
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/recommender_v1'
|
||||
#
|
||||
# Recommender = Google::Apis::RecommenderV1 # Alias the module
|
||||
# service = Recommender::RecommenderService.new
|
||||
#
|
||||
# @see https://cloud.google.com/recommender/docs/
|
||||
class RecommenderService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://recommender.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets the requested recommendation. Requires the recommender.*.get
|
||||
# IAM permission for the specified recommender.
|
||||
# @param [String] name
|
||||
# Required. Name of the recommendation.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available 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::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_recommender_recommendation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
|
||||
command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists recommendations for a Cloud project. Requires the recommender.*.list
|
||||
# IAM permission for the specified recommender.
|
||||
# @param [String] parent
|
||||
# Required. The container resource on which to execute the request.
|
||||
# Acceptable formats:
|
||||
# 1.
|
||||
# "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]",
|
||||
# LOCATION here refers to GCP Locations:
|
||||
# https://cloud.google.com/about/locations/
|
||||
# @param [String] filter
|
||||
# Filter expression to restrict the recommendations returned. Supported
|
||||
# filter fields: state_info.state
|
||||
# Eg: `state_info.state:"DISMISSED" or state_info.state:"FAILED"
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The maximum number of results to return from this request. Non-
|
||||
# positive
|
||||
# values are ignored. If not specified, the server will determine the number
|
||||
# of results to return.
|
||||
# @param [String] page_token
|
||||
# Optional. If present, retrieves the next batch of results from the preceding
|
||||
# call to
|
||||
# this method. `page_token` must be the value of `next_page_token` from the
|
||||
# previous response. The values of other method parameters must be identical
|
||||
# to those in the previous call.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available 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::RecommenderV1::GoogleCloudRecommenderV1ListRecommendationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListRecommendationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_recommender_recommendations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/recommendations', options)
|
||||
command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListRecommendationsResponse::Representation
|
||||
command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1ListRecommendationsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Marks the Recommendation State as Claimed. Users can use this method to
|
||||
# indicate to the Recommender API that they are starting to apply the
|
||||
# recommendation themselves. This stops the recommendation content from being
|
||||
# updated. Associated insights are frozen and placed in the ACCEPTED state.
|
||||
# MarkRecommendationClaimed can be applied to recommendations in CLAIMED,
|
||||
# SUCCEEDED, FAILED, or ACTIVE state.
|
||||
# Requires the recommender.*.update IAM permission for the specified
|
||||
# recommender.
|
||||
# @param [String] name
|
||||
# Required. Name of the recommendation.
|
||||
# @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationClaimedRequest] google_cloud_recommender_v1_mark_recommendation_claimed_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::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
|
||||
#
|
||||
# @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 mark_project_location_recommender_recommendation_claimed(name, google_cloud_recommender_v1_mark_recommendation_claimed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:markClaimed', options)
|
||||
command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationClaimedRequest::Representation
|
||||
command.request_object = google_cloud_recommender_v1_mark_recommendation_claimed_request_object
|
||||
command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
|
||||
command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Marks the Recommendation State as Failed. Users can use this method to
|
||||
# indicate to the Recommender API that they have applied the recommendation
|
||||
# themselves, and the operation failed. This stops the recommendation content
|
||||
# from being updated. Associated insights are frozen and placed in the
|
||||
# ACCEPTED state.
|
||||
# MarkRecommendationFailed can be applied to recommendations in ACTIVE,
|
||||
# CLAIMED, SUCCEEDED, or FAILED state.
|
||||
# Requires the recommender.*.update IAM permission for the specified
|
||||
# recommender.
|
||||
# @param [String] name
|
||||
# Required. Name of the recommendation.
|
||||
# @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationFailedRequest] google_cloud_recommender_v1_mark_recommendation_failed_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::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
|
||||
#
|
||||
# @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 mark_project_location_recommender_recommendation_failed(name, google_cloud_recommender_v1_mark_recommendation_failed_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:markFailed', options)
|
||||
command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationFailedRequest::Representation
|
||||
command.request_object = google_cloud_recommender_v1_mark_recommendation_failed_request_object
|
||||
command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
|
||||
command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Marks the Recommendation State as Succeeded. Users can use this method to
|
||||
# indicate to the Recommender API that they have applied the recommendation
|
||||
# themselves, and the operation was successful. This stops the recommendation
|
||||
# content from being updated. Associated insights are frozen and placed in
|
||||
# the ACCEPTED state.
|
||||
# MarkRecommendationSucceeded can be applied to recommendations in ACTIVE,
|
||||
# CLAIMED, SUCCEEDED, or FAILED state.
|
||||
# Requires the recommender.*.update IAM permission for the specified
|
||||
# recommender.
|
||||
# @param [String] name
|
||||
# Required. Name of the recommendation.
|
||||
# @param [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationSucceededRequest] google_cloud_recommender_v1_mark_recommendation_succeeded_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::RecommenderV1::GoogleCloudRecommenderV1Recommendation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation]
|
||||
#
|
||||
# @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 mark_project_location_recommender_recommendation_succeeded(name, google_cloud_recommender_v1_mark_recommendation_succeeded_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:markSucceeded', options)
|
||||
command.request_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1MarkRecommendationSucceededRequest::Representation
|
||||
command.request_object = google_cloud_recommender_v1_mark_recommendation_succeeded_request_object
|
||||
command.response_representation = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation::Representation
|
||||
command.response_class = Google::Apis::RecommenderV1::GoogleCloudRecommenderV1Recommendation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/run/
|
||||
module RunV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200505'
|
||||
REVISION = '20200521'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -887,6 +887,14 @@ module Google
|
|||
# @return [Array<Google::Apis::RunV1::ResourceRecord>]
|
||||
attr_accessor :resource_records
|
||||
|
||||
# Cloud Run fully managed: not supported
|
||||
# Cloud Run on GKE: supported
|
||||
# Holds the URL that will serve the traffic of the DomainMapping.
|
||||
# +optional
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -897,6 +905,7 @@ module Google
|
|||
@mapped_route_name = args[:mapped_route_name] if args.key?(:mapped_route_name)
|
||||
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
||||
@resource_records = args[:resource_records] if args.key?(:resource_records)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -614,6 +614,7 @@ module Google
|
|||
property :observed_generation, as: 'observedGeneration'
|
||||
collection :resource_records, as: 'resourceRecords', class: Google::Apis::RunV1::ResourceRecord, decorator: Google::Apis::RunV1::ResourceRecord::Representation
|
||||
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/run/
|
||||
module RunV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20200505'
|
||||
REVISION = '20200521'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1815,6 +1815,14 @@ module Google
|
|||
# @return [Array<Google::Apis::RunV1alpha1::ResourceRecord>]
|
||||
attr_accessor :resource_records
|
||||
|
||||
# Cloud Run fully managed: not supported
|
||||
# Cloud Run on GKE: supported
|
||||
# Holds the URL that will serve the traffic of the DomainMapping.
|
||||
# +optional
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -1825,6 +1833,7 @@ module Google
|
|||
@mapped_route_name = args[:mapped_route_name] if args.key?(:mapped_route_name)
|
||||
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
||||
@resource_records = args[:resource_records] if args.key?(:resource_records)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1064,6 +1064,7 @@ module Google
|
|||
property :observed_generation, as: 'observedGeneration'
|
||||
collection :resource_records, as: 'resourceRecords', class: Google::Apis::RunV1alpha1::ResourceRecord, decorator: Google::Apis::RunV1alpha1::ResourceRecord::Representation
|
||||
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/source-repositories/docs/apis
|
||||
module SourcerepoV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200415'
|
||||
REVISION = '20200520'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -438,10 +438,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -456,7 +459,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -534,6 +539,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -681,10 +689,13 @@ module Google
|
|||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||
# custom role.
|
||||
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||
# expression that allows access to a resource only if the expression evaluates
|
||||
# to `true`. A condition can add constraints based on attributes of the
|
||||
# request, the resource, or both.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -699,7 +710,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
|
|
@ -223,6 +223,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/spanner/
|
||||
module SpannerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200522'
|
||||
REVISION = '20200526'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -3207,8 +3207,7 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The name of the session. This is always system-assigned; values provided
|
||||
# when creating a session are ignored.
|
||||
# Output only. The name of the session. This is always system-assigned.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
|
|
@ -537,9 +537,9 @@ module Google
|
|||
# * `metadata.database:prod` - The database the backup was taken from has
|
||||
# a name containing the string "prod".
|
||||
# * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.
|
||||
# CreateBackupMetadata) AND` <br/>
|
||||
# `(metadata.name:howl) AND` <br/>
|
||||
# `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` <br/>
|
||||
# CreateBackupMetadata) AND` \
|
||||
# `(metadata.name:howl) AND` \
|
||||
# `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
||||
# `(error:*)` - Returns operations where:
|
||||
# * The operation's metadata type is CreateBackupMetadata.
|
||||
# * The backup name contains the string "howl".
|
||||
|
@ -1140,11 +1140,11 @@ module Google
|
|||
# Here are a few examples:
|
||||
# * `done:true` - The operation is complete.
|
||||
# * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.
|
||||
# RestoreDatabaseMetadata) AND` <br/>
|
||||
# `(metadata.source_type:BACKUP) AND` <br/>
|
||||
# `(metadata.backup_info.backup:backup_howl) AND` <br/>
|
||||
# `(metadata.name:restored_howl) AND` <br/>
|
||||
# `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` <br/>
|
||||
# RestoreDatabaseMetadata) AND` \
|
||||
# `(metadata.source_type:BACKUP) AND` \
|
||||
# `(metadata.backup_info.backup:backup_howl) AND` \
|
||||
# `(metadata.name:restored_howl) AND` \
|
||||
# `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
||||
# `(error:*)` - Return operations where:
|
||||
# * The operation's metadata type is RestoreDatabaseMetadata.
|
||||
# * The database is restored from a backup.
|
||||
|
|
Loading…
Reference in New Issue