PlaySearch.approveApps
.
# Corresponds to the JSON property `permission`
# @return [Arraychoice
or multiselect
restrictions, the list
+ # of possible entries' human-readable names.
# Corresponds to the JSON property `entry`
# @return [Arraychoice
or multiselect
restrictions, the list
+ # of possible entries' machine-readable values. These values should be used
+ # in the configuration, either as a single string
value for a
+ # choice
restriction or in a stringArray
for a
+ # multiselect
restriction.
# Corresponds to the JSON property `entryValue`
# @return [Arraybundle
or bundleArray
restrictions, the list
+ # of nested restrictions. A bundle
restriction is always nested
+ # within a bundleArray
restriction, and a
+ # bundleArray
restriction is at most two levels deep.
# Corresponds to the JSON property `nestedRestriction`
# @return [ArraytrackId
instead.
# Corresponds to the JSON property `track`
# @return [String]
attr_accessor :track
- # Track ids that the app version is published in. Replaces the track field (
- # deprecated), but doesn't include the production track (see isProduction
- # instead).
+ # Track ids that the app version is published in. Replaces the
+ # track
field (deprecated), but doesn't include the production
+ # track (see isProduction
instead).
# Corresponds to the JSON property `trackId`
# @return [ArrayProducts.approve
call.
# Corresponds to the JSON property `approvalUrl`
# @return [String]
attr_accessor :approval_url
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
def initialize(**args)
update!(**args)
end
@@ -518,7 +513,6 @@ module Google
# Update properties of this object
def update!(**args)
@approval_url = args[:approval_url] if args.key?(:approval_url)
- @kind = args[:kind] if args.key?(:kind)
end
end
@@ -527,14 +521,9 @@ module Google
class AuthenticationToken
include Google::Apis::Core::Hashable
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
# The authentication token to be passed to the device policy client on the
- # device where it can be used to provision the account for which this token was
- # generated.
+ # device where it can be used to provision the account for which this token
+ # was generated.
# Corresponds to the JSON property `token`
# @return [String]
attr_accessor :token
@@ -545,7 +534,6 @@ module Google
# Update properties of this object
def update!(**args)
- @kind = args[:kind] if args.key?(:kind)
@token = args[:token] if args.key?(:token)
end
end
@@ -586,8 +574,8 @@ module Google
class AutoInstallPolicy
include Google::Apis::Core::Hashable
- # The constraints for auto-installing the app. You can specify a maximum of one
- # constraint.
+ # The constraints for auto-installing the app. You can specify a maximum of
+ # one constraint.
# Corresponds to the JSON property `autoInstallConstraint`
# @return [Array"123456789abcdef0"
.
# Corresponds to the JSON property `androidId`
# @return [String]
attr_accessor :android_id
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # Identifies the extent to which the device is controlled by a managed Google
- # Play EMM in various deployment configurations.
+ # Identifies the extent to which the device is controlled by a managed
+ # Google Play EMM in various deployment configurations. managedDevice
", a device that has the EMM's device
+ # policy controller (DPC) as the device owner.managedProfile
", a device that has a profile managed
+ # by the DPC (DPC is profile owner) in addition to a separate, personal
+ # profile that is unavailable to the DPC.containerApp
", no longer used (deprecated).unmanagedProfile
", a device that has been allowed (by the
+ # domain's admin, using the Admin Console to enable the privilege) to use
+ # managed Google Play, but the profile is itself
+ # not owned by a DPC.Enterprises.enroll
and Enterprises.setAccount
(in
+ # conjunction with artifacts obtained from the Admin console and the Google
+ # API Console) and submitted to the EMM through a more-or-less manual
+ # process.Enterprises.generateSignupUrl
and
+ # Enterprises.completeSignup
in conjunction with the managed
+ # Google Play sign-up UI (Google-provided mechanism) to create the binding
+ # without manual steps."userPurchase"
as the entitlement reason. These
+ # entitlements cannot be removed via the API.
class Entitlement
include Google::Apis::Core::Hashable
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # The ID of the product that the entitlement is for. For example, "app:com.
- # google.android.gm".
+ # The ID of the product that the entitlement is for. For example,
+ # "app:com.google.android.gm"
.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
- # The reason for the entitlement. For example, "free" for free apps. This
- # property is temporary: it will be replaced by the acquisition kind field of
- # group licenses.
+ # The reason for the entitlement. For example, "free"
+ # for free apps. This property is temporary: it will be replaced by the acquisition kind
field of group licenses.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
@@ -1010,29 +959,22 @@ module Google
# Update properties of this object
def update!(**args)
- @kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
@reason = args[:reason] if args.key?(:reason)
end
end
- # The entitlement resources for the user.
+ #
class ListEntitlementsResponse
include Google::Apis::Core::Hashable
- # An entitlement of a user to a product (e.g. an app). For example, a free app
- # that they have installed, or a paid app that they have been allocated a
- # license to.
+ # An entitlement of a user to a product (e.g. an app).
+ # For example, a free app that they have installed, or a paid app that they
+ # have been allocated a license to.
# Corresponds to the JSON property `entitlement`
# @return [ArrayGrouplicenses
resource
+ # includes the total number of licenses purchased (paid apps only) and the
+ # total number of licenses currently in use. In other words, the total number
+ # of Entitlements
that exist for the product.
+ # Only one group license object is created per product and group license
+ # objects are never deleted. If a product is unapproved, its group license
+ # remains. This allows enterprise admins to keep track of any remaining
+ # entitlements for the product.
class GroupLicense
include Google::Apis::Core::Hashable
- # How this group license was acquired. "bulkPurchase" means that this
- # Grouplicenses resource was created because the enterprise purchased licenses
- # for this product; otherwise, the value is "free" (for free products).
+ # How this group license was acquired. "bulkPurchase"
+ # means that this Grouplicenses resource was created because the enterprise
+ # purchased licenses for this product; otherwise, the value is
+ # "free"
(for free products).
# Corresponds to the JSON property `acquisitionKind`
# @return [String]
attr_accessor :acquisition_kind
- # Whether the product to which this group license relates is currently approved
- # by the enterprise. Products are approved when a group license is first created,
- # but this approval may be revoked by an enterprise admin via Google Play.
- # Unapproved products will not be visible to end users in collections, and new
- # entitlements to them should not normally be created.
+ # Whether the product to which this group license relates is currently
+ # approved by the enterprise. Products are approved when a group license is
+ # first created, but this approval may be revoked by an enterprise admin via
+ # Google Play. Unapproved products will not be visible to end users in
+ # collections, and new entitlements to them should not normally be created.
# Corresponds to the JSON property `approval`
# @return [String]
attr_accessor :approval
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # The total number of provisioned licenses for this product. Returned by read
- # operations, but ignored in write operations.
+ # The total number of provisioned licenses for this product.
+ # Returned by read operations, but ignored in write operations.
# Corresponds to the JSON property `numProvisioned`
# @return [Fixnum]
attr_accessor :num_provisioned
- # The number of purchased licenses (possibly in multiple purchases). If this
- # field is omitted, then there is no limit on the number of licenses that can be
- # provisioned (for example, if the acquisition kind is "free").
+ # The number of purchased licenses (possibly in multiple purchases).
+ # If this field is omitted, then there is no limit on the number of licenses
+ # that can be provisioned (for example, if the acquisition kind is
+ # "free"
).
# Corresponds to the JSON property `numPurchased`
# @return [Fixnum]
attr_accessor :num_purchased
- # The permission approval status of the product. This field is only set if the
- # product is approved. Possible states are:
- # - "currentApproved", the current set of permissions is approved, but
- # additional permissions will require the administrator to reapprove the product
- # (If the product was approved without specifying the approved permissions
- # setting, then this is the default behavior.),
- # - "needsReapproval", the product has unapproved permissions. No additional
- # product licenses can be assigned until the product is reapproved,
- # - "allCurrentAndFutureApproved", the current permissions are approved and any
- # future permission updates will be automatically approved without administrator
- # review.
+ # The permission approval status of the product. This field
+ # is only set if the product is approved. Possible states are:currentApproved
", the current set
+ # of permissions is approved, but additional permissions will require the
+ # administrator to reapprove the product (If the product was approved
+ # without specifying the approved permissions setting, then this is the
+ # default behavior.),needsReapproval
", the product has unapproved permissions.
+ # No additional product licenses can be assigned until the product is
+ # reapproved,allCurrentAndFutureApproved
",
+ # the current permissions are approved and any future permission updates
+ # will be automatically approved without administrator review."app:com.google.android.gm"
.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
@@ -1124,7 +1065,6 @@ module Google
def update!(**args)
@acquisition_kind = args[:acquisition_kind] if args.key?(:acquisition_kind)
@approval = args[:approval] if args.key?(:approval)
- @kind = args[:kind] if args.key?(:kind)
@num_provisioned = args[:num_provisioned] if args.key?(:num_provisioned)
@num_purchased = args[:num_purchased] if args.key?(:num_purchased)
@permissions = args[:permissions] if args.key?(:permissions)
@@ -1132,16 +1072,10 @@ module Google
end
end
- # The user resources for the group license.
+ #
class ListGroupLicenseUsersResponse
include Google::Apis::Core::Hashable
- # Identifies what kind of resource this is. Value: the fixed string "
- # androidenterprise#groupLicenseUsersListResponse".
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
# A user of an enterprise.
# Corresponds to the JSON property `user`
# @return [Array"installPending"
+ # means that an install request has recently been made and download to the
+ # device is in progress. The state "installed"
+ # means that the app has been installed. This field is read-only.
# Corresponds to the JSON property `installState`
# @return [String]
attr_accessor :install_state
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # The ID of the product that the install is for. For example, "app:com.google.
- # android.gm".
+ # The ID of the product that the install is for. For example,
+ # "app:com.google.android.gm"
.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
- # The version of the installed product. Guaranteed to be set only if the install
- # state is "installed".
+ # The version of the installed product. Guaranteed to be set only if the
+ # install state is "installed"
.
# Corresponds to the JSON property `versionCode`
# @return [Fixnum]
attr_accessor :version_code
@@ -1238,7 +1164,6 @@ module Google
# Update properties of this object
def update!(**args)
@install_state = args[:install_state] if args.key?(:install_state)
- @kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
@version_code = args[:version_code] if args.key?(:version_code)
end
@@ -1248,7 +1173,8 @@ module Google
class InstallFailureEvent
include Google::Apis::Core::Hashable
- # The Android ID of the device. This field will always be present.
+ # The Android ID of the device.
+ # This field will always be present.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
@@ -1258,18 +1184,20 @@ module Google
# @return [String]
attr_accessor :failure_details
- # The reason for the installation failure. This field will always be present.
+ # The reason for the installation failure.
+ # This field will always be present.
# Corresponds to the JSON property `failureReason`
# @return [String]
attr_accessor :failure_reason
- # The id of the product (e.g. "app:com.google.android.gm") for which the install
- # failure event occured. This field will always be present.
+ # The id of the product (e.g. "app:com.google.android.gm") for which the
+ # install failure event occured. This field will always be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
- # The ID of the user. This field will always be present.
+ # The ID of the user.
+ # This field will always be present.
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
@@ -1288,22 +1216,17 @@ module Google
end
end
- # The install resources for the device.
+ #
class ListInstallsResponse
include Google::Apis::Core::Hashable
- # An installation of an app for a user on a specific device. The existence of an
- # install implies that the user must have an entitlement to the app.
+ # An installation of an app for a user on a specific device.
+ # The existence of an install implies that the user must have an
+ # entitlement to the app.
# Corresponds to the JSON property `install`
# @return [ArraymanagedDevice
", a device where the DPC is set as
+ # device owner,managedProfile
", a device where the DPC is set as profile
+ # owner.productAvailabilityPolicy
+ # needs to be set to WHITELIST
or ALL
for the
+ # product policies to be applied.
# Corresponds to the JSON property `productPolicy`
# @return [ArrayappTracks
instead.
# Corresponds to the JSON property `availableTracks`
# @return [ArraypublicGoogleHosted
means that the package is
+ # available through the Play store and not restricted to a specific
+ # enterprise. The value privateGoogleHosted
means that the
+ # package is a private app (restricted to an enterprise) but hosted by
+ # Google. The value privateSelfHosted
means that the package is
+ # a private app (restricted to an enterprise) and is privately hosted.
# Corresponds to the JSON property `distributionChannel`
# @return [String]
attr_accessor :distribution_channel
@@ -2061,19 +1965,14 @@ module Google
# @return [Arrayapp:<package name>
. For
+ # example, app:com.google.android.gm
represents the Gmail app.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
- # Whether this product is free, free with in-app purchases, or paid. If the
- # pricing is unknown, this means the product is not generally available anymore (
- # even though it might still be available to people who own it).
+ # Whether this product is free, free with in-app purchases, or paid.
+ # If the pricing is unknown, this means the product is not generally
+ # available anymore (even though it might still be available to
+ # people who own it).
# Corresponds to the JSON property `productPricing`
# @return [String]
attr_accessor :product_pricing
@@ -2122,8 +2022,8 @@ module Google
# @return [Google::Apis::AndroidenterpriseV1::ProductSigningCertificate]
attr_accessor :signing_certificate
- # A link to a smaller image that can be used as an icon for the product. This
- # image is suitable for use at up to 128px x 128px.
+ # A link to a smaller image that can be used as an icon for the product.
+ # This image is suitable for use at up to 128px x 128px.
# Corresponds to the JSON property `smallIconUrl`
# @return [String]
attr_accessor :small_icon_url
@@ -2133,8 +2033,8 @@ module Google
# @return [String]
attr_accessor :title
- # A link to the managed Google Play details page for the product, for use by an
- # Enterprise admin.
+ # A link to the managed Google Play details page for the product,
+ # for use by an Enterprise admin.
# Corresponds to the JSON property `workDetailsUrl`
# @return [String]
attr_accessor :work_details_url
@@ -2157,7 +2057,6 @@ module Google
@distribution_channel = args[:distribution_channel] if args.key?(:distribution_channel)
@features = args[:features] if args.key?(:features)
@icon_url = args[:icon_url] if args.key?(:icon_url)
- @kind = args[:kind] if args.key?(:kind)
@last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis)
@min_android_sdk_version = args[:min_android_sdk_version] if args.key?(:min_android_sdk_version)
@permissions = args[:permissions] if args.key?(:permissions)
@@ -2177,8 +2076,8 @@ module Google
class ProductApprovalEvent
include Google::Apis::Core::Hashable
- # Whether the product was approved or unapproved. This field will always be
- # present.
+ # Whether the product was approved or unapproved.
+ # This field will always be present.
# Corresponds to the JSON property `approved`
# @return [String]
attr_accessor :approved
@@ -2204,13 +2103,14 @@ module Google
class ProductAvailabilityChangeEvent
include Google::Apis::Core::Hashable
- # The new state of the product. This field will always be present.
+ # The new state of the product.
+ # This field will always be present.
# Corresponds to the JSON property `availabilityStatus`
# @return [String]
attr_accessor :availability_status
- # The id of the product (e.g. "app:com.google.android.gm") for which the product
- # availability changed. This field will always be present.
+ # The id of the product (e.g. "app:com.google.android.gm") for which the
+ # product availability changed. This field will always be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
@@ -2226,10 +2126,11 @@ module Google
end
end
- # A product permissions resource represents the set of permissions required by a
- # specific app and whether or not they have been accepted by an enterprise admin.
- # The API can be used to read the set of permissions, and also to update the set
- # to indicate that permissions have been accepted.
+ # A product permissions resource represents the set of permissions
+ # required by a specific app and whether or not they have been accepted
+ # by an enterprise admin.
+ # The API can be used to read the set of permissions, and also to update
+ # the set to indicate that permissions have been accepted.
class ProductPermission
include Google::Apis::Core::Hashable
@@ -2254,23 +2155,18 @@ module Google
end
end
- # Information about the permissions required by a specific app and whether they
- # have been accepted by the enterprise.
+ # Information about the permissions required by a specific app and
+ # whether they have been accepted by the enterprise.
class ProductPermissions
include Google::Apis::Core::Hashable
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
# The permissions required by the app.
# Corresponds to the JSON property `permission`
# @return [Array"app:com.google.android.gm"
.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Grants the device visibility to the specified product release track(s),
- # identified by trackIds. The list of release tracks of a product can be
- # obtained by calling Products.Get.
+ # identified by trackIds
. The list of release tracks of a
+ # product can be obtained by calling Products.Get.
# Corresponds to the JSON property `trackIds`
# @return [ArraytrackIds
instead.
# Corresponds to the JSON property `tracks`
# @return [ArraytrackIds
.
# Corresponds to the JSON property `trackIds`
# @return [ArraytrackIds
instead.
# Corresponds to the JSON property `tracks`
# @return [ArrayProducts.approve
call.
+ # If the product is currently unapproved and has no permissions, this
+ # URL will point to an empty page.
+ # If the product is currently approved, a URL will only be generated if
+ # that product has added permissions since it was last approved, and the
+ # URL will only display those new permissions that have not yet been
# accepted.
# Corresponds to the JSON property `url`
# @return [String]
@@ -2501,17 +2395,13 @@ module Google
end
end
- # The matching products.
+ #
class ProductsListResponse
include Google::Apis::Core::Hashable
- # Identifies what kind of resource this is. Value: the fixed string "
- # androidenterprise#productsListResponse".
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # General pagination information.
+ # Information about the current page.
+ # List operations that supports paging return only one "page" of results. This
+ # protocol buffer message describes the page that has been returned.
# Corresponds to the JSON property `pageInfo`
# @return [Google::Apis::AndroidenterpriseV1::PageInfo]
attr_accessor :page_info
@@ -2522,7 +2412,15 @@ module Google
# @return [ArraygoogleCredentials
key type, this is identical to the
+ # cert that can be retrieved by using the X.509 cert url inside of the
+ # credentials file.
# Corresponds to the JSON property `publicData`
# @return [String]
attr_accessor :public_data
@@ -2614,7 +2502,6 @@ module Google
def update!(**args)
@data = args[:data] if args.key?(:data)
@id = args[:id] if args.key?(:id)
- @kind = args[:kind] if args.key?(:kind)
@public_data = args[:public_data] if args.key?(:public_data)
@type = args[:type] if args.key?(:type)
end
@@ -2639,13 +2526,13 @@ module Google
end
end
- # A resource returned by the GenerateSignupUrl API, which contains the Signup
- # URL and Completion Token.
+ # A resource returned by the GenerateSignupUrl API, which contains the
+ # Signup URL and Completion Token.
class SignupInfo
include Google::Apis::Core::Hashable
- # An opaque token that will be required, along with the Enterprise Token, for
- # obtaining the enterprise resource from CompleteSignup.
+ # An opaque token that will be required, along with the Enterprise Token,
+ # for obtaining the enterprise resource from CompleteSignup.
# Corresponds to the JSON property `completionToken`
# @return [String]
attr_accessor :completion_token
@@ -2655,8 +2542,8 @@ module Google
# @return [String]
attr_accessor :kind
- # A URL under which the Admin can sign up for an enterprise. The page pointed to
- # cannot be rendered in an iframe.
+ # A URL under which the Admin can sign up for an enterprise.
+ # The page pointed to cannot be rendered in an iframe.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@@ -2683,30 +2570,28 @@ module Google
# @return [String]
attr_accessor :id
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # Ordered list of localized strings giving the name of this page. The text
- # displayed is the one that best matches the user locale, or the first entry if
- # there is no good match. There needs to be at least one entry.
+ # Ordered list of localized strings giving the name of this page.
+ # The text displayed is the one that best matches the user locale,
+ # or the first entry if there is no good match. There needs to be
+ # at least one entry.
# Corresponds to the JSON property `name`
# @return [ArrayprimaryEmail
).userAccount
+ # can be installed on multiple devices, but a deviceAccount
is
+ # specific to a single device. An EMM-managed user (emmManaged
)
+ # can be either type (userAccount
, deviceAccount
),
+ # but a Google-managed user (googleManaged
) is always a
+ # userAccount
.
# Corresponds to the JSON property `accountType`
# @return [String]
attr_accessor :account_type
# The name that will appear in user interfaces. Setting this property is
- # optional when creating EMM-managed users. If you do set this property, use
- # something generic about the organization (such as "Example, Inc.") or your
- # name (as EMM). Not used for Google-managed user accounts.
+ # optional when creating EMM-managed users. If you do set this property,
+ # use something generic about the organization (such as "Example, Inc.") or
+ # your name (as EMM).
+ # Not used for Google-managed user accounts.
+ # @mutable androidenterprise.users.update
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
@@ -2952,20 +2829,17 @@ module Google
# @return [String]
attr_accessor :id
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # The entity that manages the user. With googleManaged users, the source of
- # truth is Google so EMMs have to make sure a Google Account exists for the user.
- # With emmManaged users, the EMM is in charge.
+ # The entity that manages the user. With googleManaged
users,
+ # the source of truth is Google so EMMs have to make sure a Google Account
+ # exists for the user. With emmManaged
users, the
+ # EMM is in charge.
# Corresponds to the JSON property `managementType`
# @return [String]
attr_accessor :management_type
- # The user's primary email address, for example, "jsmith@example.com". Will
- # always be set for Google managed users and not set for EMM managed users.
+ # The user's primary email address, for example, "jsmith@example.com".
+ # Will always be set for Google managed users and not set for EMM managed
+ # users.
# Corresponds to the JSON property `primaryEmail`
# @return [String]
attr_accessor :primary_email
@@ -2980,57 +2854,15 @@ module Google
@account_type = args[:account_type] if args.key?(:account_type)
@display_name = args[:display_name] if args.key?(:display_name)
@id = args[:id] if args.key?(:id)
- @kind = args[:kind] if args.key?(:kind)
@management_type = args[:management_type] if args.key?(:management_type)
@primary_email = args[:primary_email] if args.key?(:primary_email)
end
end
- # A UserToken is used by a user when setting up a managed device or profile with
- # their managed Google Play account on a device. When the user enters their
- # email address and token (activation code) the appropriate EMM app can be
- # automatically downloaded.
- class UserToken
- include Google::Apis::Core::Hashable
-
- #
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
- # The token (activation code) to be entered by the user. This consists of a
- # sequence of decimal digits. Note that the leading digit may be 0.
- # Corresponds to the JSON property `token`
- # @return [String]
- attr_accessor :token
-
- # The unique ID for the user.
- # Corresponds to the JSON property `userId`
- # @return [String]
- attr_accessor :user_id
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @kind = args[:kind] if args.key?(:kind)
- @token = args[:token] if args.key?(:token)
- @user_id = args[:user_id] if args.key?(:user_id)
- end
- end
-
- # The matching user resources.
+ #
class ListUsersResponse
include Google::Apis::Core::Hashable
- # Identifies what kind of resource this is. Value: the fixed string "
- # androidenterprise#usersListResponse".
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
# A user of an enterprise.
# Corresponds to the JSON property `user`
# @return [ArrayminimalUi
", the device's status bar, navigation bar,
+ # the app's URL, and a refresh button are visible when the app is open. For
+ # HTTP URLs, you can only select this option.
+ # standalone
", the device's status bar and navigation
+ # bar are visible when the app is open.
+ # fullScreen
", the app opens in full screen mode, hiding
+ # the device's status and navigation bars. All browser UI elements, page
+ # URL, system status bar and back button are not visible, and the web app
+ # takes up the entirety of the available display area.
+ # Note that the version can automatically increase during the lifetime of
+ # the web app, while Google does internal housekeeping to keep the web app
+ # up-to-date.
# Corresponds to the JSON property `versionCode`
# @return [Fixnum]
attr_accessor :version_code
- # The ID of the application. A string of the form "app: Approves the specified product and the relevant app permissions, if any.
+ # The maximum number of products that you can approve per enterprise customer
+ # is 1,000. To learn how to use managed Google Play to design and create a store
+ # layout to display approved products to your users,
+ # see Store Layout
+ # Design. If a corresponding user already exists with the same account identifier,
+ # the user will be updated with the resource. In this case only the
+ # "app:<package name>"
where the package name
+ # always starts with the prefix
+ # "com.google.enterprise.webapp."
followed by a
+ # random id.
# Corresponds to the JSON property `webAppId`
# @return [String]
attr_accessor :web_app_id
@@ -3163,9 +2991,11 @@ module Google
# The actual bytes of the image in a base64url encoded string (c.f. RFC4648,
# section 5 "Base 64 Encoding with URL and Filename Safe Alphabet").
- # - The image type can be png or jpg.
- # - The image should ideally be square.
- # - The image should ideally have a size of 512x512.
+ #
+ #
# Corresponds to the JSON property `imageData`
# @return [String]
attr_accessor :image_data
@@ -3180,16 +3010,10 @@ module Google
end
end
- # The web app details for an enterprise.
+ #
class WebAppsListResponse
include Google::Apis::Core::Hashable
- # Identifies what kind of resource this is. Value: the fixed string "
- # androidenterprise#webAppsListResponse".
- # Corresponds to the JSON property `kind`
- # @return [String]
- attr_accessor :kind
-
# The manifest describing a web app.
# Corresponds to the JSON property `webApp`
# @return [ArrayHTTP
+ # 429 Too Many Requests
.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -63,10 +61,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -79,14 +75,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def force_device_report_upload(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload', options)
+ def force_device_report_upload(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -100,10 +95,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -116,8 +109,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
+ def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Device
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -125,15 +118,16 @@ module Google
command.params['deviceId'] = device_id unless device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Retrieves whether a device's access to Google services is enabled or disabled.
+ # Retrieves whether a device's access to Google services is enabled or
+ # disabled.
# The device state takes effect only if enforcing EMM policies on Android
- # devices is enabled in the Google Admin Console. Otherwise, the device state is
- # ignored and all devices are allowed access to Google services. This is only
- # supported for Google-managed users.
+ # devices is enabled in the Google Admin Console.
+ # Otherwise, the device state is ignored and all devices are allowed access
+ # to Google services.
+ # This is only supported for Google-managed users.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -143,10 +137,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -159,8 +151,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_device_state(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
+ def get_device_state(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -168,7 +160,6 @@ module Google
command.params['deviceId'] = device_id unless device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -180,10 +171,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -196,23 +185,23 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options)
+ def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Sets whether a device's access to Google services is enabled or disabled. The
- # device state takes effect only if enforcing EMM policies on Android devices is
- # enabled in the Google Admin Console. Otherwise, the device state is ignored
- # and all devices are allowed access to Google services. This is only supported
- # for Google-managed users.
+ # Sets whether a device's access to Google services is enabled or disabled.
+ # The device state takes effect only if enforcing EMM policies on Android
+ # devices is enabled in the Google Admin Console.
+ # Otherwise, the device state is ignored and all devices are allowed access
+ # to Google services.
+ # This is only supported for Google-managed users.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -223,10 +212,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -239,8 +226,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def set_device_state(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
+ def set_device_state(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
command.request_object = device_state_object
command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
@@ -250,7 +237,6 @@ module Google
command.params['deviceId'] = device_id unless device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -263,17 +249,15 @@ module Google
# The ID of the device.
# @param [Google::Apis::AndroidenterpriseV1::Device] device_object
# @param [String] update_mask
- # Mask that identifies which fields to update. If not set, all modifiable fields
- # will be modified.
- # When set in a query parameter, this field should be specified as updateMask=<
- # field1>,updateMask=<field1>,<field2>,...
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -286,8 +270,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_device(enterprise_id, user_id, device_id, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
+ def update_device(enterprise_id, user_id, device_id, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
@@ -298,23 +282,20 @@ module Google
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Acknowledges notifications that were received from Enterprises.
- # PullNotificationSet to prevent subsequent calls from returning the same
- # notifications.
+ # Acknowledges notifications that were received from
+ # Enterprises.PullNotificationSet to prevent subsequent calls from returning
+ # the same notifications.
# @param [String] notification_set_id
- # The notification set ID as returned by Enterprises.PullNotificationSet. This
- # must be provided.
+ # The notification set ID as returned by Enterprises.PullNotificationSet.
+ # This must be provided.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -327,17 +308,17 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def acknowledge_enterprise_notification_set(notification_set_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/acknowledgeNotificationSet', options)
+ def acknowledge_enterprise_notification_set(notification_set_id: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/acknowledgeNotificationSet', options)
command.query['notificationSetId'] = notification_set_id unless notification_set_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Completes the signup flow, by specifying the Completion token and Enterprise
- # token. This request must not be called multiple times for a given Enterprise
+ # Completes the signup flow, by specifying the Completion token and
+ # Enterprise token.
+ # This request must not be called multiple times for a given Enterprise
# Token.
# @param [String] completion_token
# The Completion token initially returned by GenerateSignupUrl.
@@ -346,10 +327,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -362,32 +341,29 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def complete_enterprise_signup(completion_token: nil, enterprise_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/completeSignup', options)
+ def complete_enterprise_signup(completion_token: nil, enterprise_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/completeSignup', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
command.query['completionToken'] = completion_token unless completion_token.nil?
command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Returns a unique token to access an embeddable UI. To generate a web UI, pass
- # the generated token into the managed Google Play javascript API. Each token
- # may only be used to start one UI session. See the javascript API documentation
- # for further information.
+ # Returns a unique token to access an embeddable UI. To generate a
+ # web UI, pass the generated token into the managed Google Play javascript
+ # API. Each token may only be used to start one UI session. See the
+ # javascript API documentation for further information.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec] administrator_web_token_spec_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -400,8 +376,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def create_enterprise_web_token(enterprise_id, administrator_web_token_spec_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/createWebToken', options)
+ def create_enterprise_web_token(enterprise_id, administrator_web_token_spec_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createWebToken', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec::Representation
command.request_object = administrator_web_token_spec_object
command.response_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebToken::Representation
@@ -409,21 +385,18 @@ module Google
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enrolls an enterprise with the calling EMM.
# @param [String] token
- # The token provided by the enterprise to register the EMM.
+ # Required. The token provided by the enterprise to register the EMM.
# @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -436,8 +409,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/enroll', options)
+ def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/enroll', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
command.request_object = enterprise_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
@@ -445,26 +418,24 @@ module Google
command.query['token'] = token unless token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Generates a sign-up URL.
# @param [String] callback_url
# The callback URL to which the Admin will be redirected after successfully
- # creating an enterprise. Before redirecting there the system will add a single
- # query parameter to this URL named "enterpriseToken" which will contain an
- # opaque token to be used for the CompleteSignup request.
- # Beware that this means that the URL will be parsed, the parameter added and
- # then a new URL formatted, i.e. there may be some minor formatting changes and,
- # more importantly, the URL must be well-formed so that it can be parsed.
+ # creating an enterprise. Before redirecting there the system will add a
+ # single query parameter to this URL named "enterpriseToken" which will
+ # contain an opaque token to be used for the CompleteSignup request.
+ # Beware that this means that the URL will be parsed, the parameter added
+ # and then a new URL formatted, i.e. there may be some minor formatting
+ # changes and, more importantly, the URL must be well-formed so that it can
+ # be parsed.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -477,14 +448,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def generate_enterprise_signup_url(callback_url: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/signupUrl', options)
+ def generate_enterprise_signup_url(callback_url: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/signupUrl', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
command.query['callbackUrl'] = callback_url unless callback_url.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -494,10 +464,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -510,28 +478,31 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}', options)
+ def get_enterprise(enterprise_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Returns a service account and credentials. The service account can be bound to
- # the enterprise by calling setAccount. The service account is unique to this
- # enterprise and EMM, and will be deleted if the enterprise is unbound. The
- # credentials contain private key data and are not stored server-side.
- # This method can only be called after calling Enterprises.Enroll or Enterprises.
- # CompleteSignup, and before Enterprises.SetAccount; at other times it will
- # return an error.
+ # Returns a service account and credentials. The service account
+ # can be bound to the enterprise by calling setAccount. The service account
+ # is unique to this enterprise and EMM, and will be deleted if the enterprise
+ # is unbound. The credentials contain private key data and are not stored
+ # server-side.
+ #
+ # This method can only be called after calling
+ # Enterprises.Enroll or Enterprises.CompleteSignup, and before
+ # Enterprises.SetAccount; at other times it will return an error.
+ #
# Subsequent calls after the first will generate a new, unique set of
# credentials, and invalidate the previously generated credentials.
- # Once the service account is bound to the enterprise, it can be managed using
- # the serviceAccountKeys resource.
+ #
+ # Once the service account is bound to the enterprise, it can be managed
+ # using the serviceAccountKeys resource.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] key_type
@@ -539,10 +510,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -555,29 +524,27 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_enterprise_service_account(enterprise_id, key_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccount', options)
+ def get_enterprise_service_account(enterprise_id, key_type: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/serviceAccount', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccount::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccount
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['keyType'] = key_type unless key_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Returns the store layout for the enterprise. If the store layout has not been
- # set, returns "basic" as the store layout type and no homepage.
+ # Returns the store layout for the enterprise. If the store layout
+ # has not been set, returns "basic" as the store layout type and no
+ # homepage.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -590,31 +557,28 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_enterprise_store_layout(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout', options)
+ def get_enterprise_store_layout(enterprise_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayout
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Looks up an enterprise by domain name. This is only supported for enterprises
- # created via the Google-initiated creation flow. Lookup of the id is not needed
- # for enterprises created via the EMM-initiated flow since the EMM learns the
- # enterprise ID in the callback specified in the Enterprises.generateSignupUrl
- # call.
+ # Looks up an enterprise by domain name.
+ # This is only supported for enterprises created via the Google-initiated
+ # creation flow. Lookup of the id is not needed for enterprises created via
+ # the EMM-initiated flow since the EMM learns the enterprise ID in the
+ # callback specified in the Enterprises.generateSignupUrl call.
# @param [String] domain
- # The exact primary domain name of the enterprise to look up.
+ # Required. The exact primary domain name of the enterprise to look up.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -627,47 +591,53 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises', options)
+ def list_enterprises(domain, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
command.query['domain'] = domain unless domain.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Pulls and returns a notification set for the enterprises associated with the
- # service account authenticated for the request. The notification set may be
- # empty if no notification are pending.
- # A notification set returned needs to be acknowledged within 20 seconds by
- # calling Enterprises.AcknowledgeNotificationSet, unless the notification set is
- # empty.
- # Notifications that are not acknowledged within the 20 seconds will eventually
- # be included again in the response to another PullNotificationSet request, and
- # those that are never acknowledged will ultimately be deleted according to the
- # Google Cloud Platform Pub/Sub system policy.
- # Multiple requests might be performed concurrently to retrieve notifications,
- # in which case the pending notifications (if any) will be split among each
- # caller, if any are pending.
+ # Pulls and returns a notification set for the enterprises associated with
+ # the service account authenticated for the request. The notification set may
+ # be empty if no notification are pending.
+ #
+ # A notification set returned needs to be acknowledged within 20 seconds
+ # by calling Enterprises.AcknowledgeNotificationSet, unless the
+ # notification set is empty.
+ #
+ # Notifications that are not acknowledged within the 20 seconds will
+ # eventually be included again in the response to another PullNotificationSet
+ # request, and those that are never acknowledged will ultimately be deleted
+ # according to the Google Cloud Platform Pub/Sub system policy.
+ #
+ # Multiple requests might be performed concurrently to retrieve
+ # notifications, in which case the pending notifications (if any) will be
+ # split among each caller, if any are pending.
+ #
# If no notifications are present, an empty notification list is returned.
- # Subsequent requests may return more notifications once they become available.
+ # Subsequent requests may return more notifications once they become
+ # available.
# @param [String] request_mode
# The request mode for pulling notifications.
- # Specifying waitForNotifications will cause the request to block and wait until
- # one or more notifications are present, or return an empty notification list if
- # no notifications are present after some time.
- # Speciying returnImmediately will cause the request to immediately return the
- # pending notifications, or an empty list if no notifications are present.
- # If omitted, defaults to waitForNotifications.
+ #
+ # Specifying waitForNotifications
will cause the request to
+ # block and wait until one or more notifications are present, or return an
+ # empty notification list if no notifications are present after some time.
+ #
+ # Speciying returnImmediately
will cause the request to
+ # immediately return the pending notifications, or an empty list if no
+ # notifications are present.
+ #
+ # If omitted, defaults to waitForNotifications
.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -680,28 +650,25 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def pull_enterprise_notification_set(request_mode: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/pullNotificationSet', options)
+ def pull_enterprise_notification_set(request_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/pullNotificationSet', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::NotificationSet::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::NotificationSet
command.query['requestMode'] = request_mode unless request_mode.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Sends a test notification to validate the EMM integration with the Google
- # Cloud Pub/Sub service for this enterprise.
+ # Sends a test notification to validate the EMM integration with
+ # the Google Cloud Pub/Sub service for this enterprise.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -714,14 +681,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options)
+ def send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/sendTestPushNotification', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -733,10 +699,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -749,8 +713,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def set_enterprise_account(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/account', options)
+ def set_enterprise_account(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/account', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
command.request_object = enterprise_account_object
command.response_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
@@ -758,27 +722,26 @@ module Google
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Sets the store layout for the enterprise. By default, storeLayoutType is set
- # to "basic" and the basic store layout is enabled. The basic layout only
- # contains apps approved by the admin, and that have been added to the available
- # product set for a user (using the setAvailableProductSet call). Apps on the
- # page are sorted in order of their product ID value. If you create a custom
- # store layout (by setting storeLayoutType = "custom" and setting a homepage),
- # the basic store layout is disabled.
+ # Sets the store layout for the enterprise. By default, storeLayoutType
+ # is set to "basic" and the basic store layout is enabled. The basic
+ # layout only contains apps approved by the admin, and that have
+ # been added to the available product set for a user (using the
+ #
+ # setAvailableProductSet call). Apps on the page are sorted in order of
+ # their product ID value. If you create a custom store layout (by setting
+ # storeLayoutType = "custom" and setting a homepage), the basic store
+ # layout is disabled.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -791,8 +754,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def set_enterprise_store_layout(enterprise_id, store_layout_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout', options)
+ def set_enterprise_store_layout(enterprise_id, store_layout_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
command.request_object = store_layout_object
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
@@ -800,7 +763,6 @@ module Google
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -810,10 +772,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -826,12 +786,11 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def unenroll_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/unenroll', options)
+ def unenroll_enterprise(enterprise_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/unenroll', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -845,10 +804,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -861,14 +818,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
+ def delete_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -882,10 +838,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -898,8 +852,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
+ def get_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -907,7 +861,6 @@ module Google
command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -919,10 +872,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -935,15 +886,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements', options)
+ def list_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -957,16 +907,14 @@ module Google
# @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
# @param [Boolean] install
# Set to true to also install the product on all the user's devices where
- # possible. Failure to install on one or more devices will not prevent this
- # operation from returning successfully, as long as the entitlement was
- # successfully assigned to the user.
+ # possible. Failure to install on one or more devices will not prevent
+ # this operation from returning successfully, as long as the entitlement
+ # was successfully assigned to the user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -979,8 +927,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
+ def update_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
command.request_object = entitlement_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
@@ -991,7 +939,6 @@ module Google
command.query['install'] = install unless install.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -999,15 +946,13 @@ module Google
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] group_license_id
- # The ID of the product the group license is for, e.g. "app:com.google.android.
- # gm".
+ # The ID of the product the group license is for, e.g.
+ # "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1020,15 +965,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options)
+ def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['groupLicenseId'] = group_license_id unless group_license_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1038,10 +982,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1054,31 +996,28 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options)
+ def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Retrieves the IDs of the users who have been granted entitlements under the
- # license.
+ # Retrieves the IDs of the users who have been granted entitlements
+ # under the license.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] group_license_id
- # The ID of the product the group license is for, e.g. "app:com.google.android.
- # gm".
+ # The ID of the product the group license is for, e.g.
+ # "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1091,20 +1030,20 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options)
+ def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['groupLicenseId'] = group_license_id unless group_license_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Requests to remove an app from a device. A call to get or list will still show
- # the app as installed on the device until it is actually removed.
+ # Requests to remove an app from a device. A call to get
or
+ # list
will still show the app as installed on the device until
+ # it is actually removed.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -1112,15 +1051,13 @@ module Google
# @param [String] device_id
# The Android ID of the device.
# @param [String] install_id
- # The ID of the product represented by the install, e.g. "app:com.google.android.
- # gm".
+ # The ID of the product represented by the install, e.g.
+ # "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1133,15 +1070,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
+ def delete_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
command.params['installId'] = install_id unless install_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1153,15 +1089,13 @@ module Google
# @param [String] device_id
# The Android ID of the device.
# @param [String] install_id
- # The ID of the product represented by the install, e.g. "app:com.google.android.
- # gm".
+ # The ID of the product represented by the install, e.g.
+ # "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1174,8 +1108,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
+ def get_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Install
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1184,7 +1118,6 @@ module Google
command.params['installId'] = install_id unless install_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1198,10 +1131,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1214,8 +1145,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options)
+ def list_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1223,12 +1154,12 @@ module Google
command.params['deviceId'] = device_id unless device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Requests to install the latest version of an app to a device. If the app is
- # already installed, then it is updated to the latest version if necessary.
+ # Requests to install the latest version of an app to a device. If the app
+ # is already installed, then it is updated to the latest version if
+ # necessary.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -1236,16 +1167,14 @@ module Google
# @param [String] device_id
# The Android ID of the device.
# @param [String] install_id
- # The ID of the product represented by the install, e.g. "app:com.google.android.
- # gm".
+ # The ID of the product represented by the install, e.g.
+ # "app:com.google.android.gm".
# @param [Google::Apis::AndroidenterpriseV1::Install] install_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1258,8 +1187,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
+ def update_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
command.request_object = install_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
@@ -1270,11 +1199,11 @@ module Google
command.params['installId'] = install_id unless install_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Removes a per-device managed configuration for an app for the specified device.
+ # Removes a per-device managed configuration for an app for the specified
+ # device.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -1282,15 +1211,13 @@ module Google
# @param [String] device_id
# The Android ID of the device.
# @param [String] managed_configuration_for_device_id
- # The ID of the managed configuration (a product ID), e.g. "app:com.google.
- # android.gm".
+ # The ID of the managed configuration (a product ID), e.g.
+ # "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1303,15 +1230,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
+ def delete_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['deviceId'] = device_id unless device_id.nil?
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1323,15 +1249,13 @@ module Google
# @param [String] device_id
# The Android ID of the device.
# @param [String] managed_configuration_for_device_id
- # The ID of the managed configuration (a product ID), e.g. "app:com.google.
- # android.gm".
+ # The ID of the managed configuration (a product ID), e.g.
+ # "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1344,8 +1268,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
+ def get_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1354,12 +1278,11 @@ module Google
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Lists all the per-device managed configurations for the specified device. Only
- # the ID is set.
+ # Lists all the per-device managed configurations for the specified device.
+ # Only the ID is set.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -1369,10 +1292,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1385,8 +1306,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_managedconfigurationsfordevices(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice', options)
+ def list_managedconfigurationsfordevices(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1394,7 +1315,6 @@ module Google
command.params['deviceId'] = device_id unless device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1407,16 +1327,14 @@ module Google
# @param [String] device_id
# The Android ID of the device.
# @param [String] managed_configuration_for_device_id
- # The ID of the managed configuration (a product ID), e.g. "app:com.google.
- # android.gm".
+ # The ID of the managed configuration (a product ID), e.g.
+ # "app:com.google.android.gm".
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1429,8 +1347,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
+ def update_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
command.request_object = managed_configuration_object
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
@@ -1441,7 +1359,6 @@ module Google
command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1451,15 +1368,13 @@ module Google
# @param [String] user_id
# The ID of the user.
# @param [String] managed_configuration_for_user_id
- # The ID of the managed configuration (a product ID), e.g. "app:com.google.
- # android.gm".
+ # The ID of the managed configuration (a product ID), e.g.
+ # "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1472,14 +1387,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
+ def delete_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1490,15 +1404,13 @@ module Google
# @param [String] user_id
# The ID of the user.
# @param [String] managed_configuration_for_user_id
- # The ID of the managed configuration (a product ID), e.g. "app:com.google.
- # android.gm".
+ # The ID of the managed configuration (a product ID), e.g.
+ # "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1511,8 +1423,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
+ def get_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1520,12 +1432,11 @@ module Google
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Lists all the per-user managed configurations for the specified user. Only the
- # ID is set.
+ # Lists all the per-user managed configurations for the specified user. Only
+ # the ID is set.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -1533,10 +1444,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1549,38 +1458,42 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_managedconfigurationsforusers(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser', options)
+ def list_managedconfigurationsforusers(enterprise_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Adds or updates the managed configuration settings for an app for the
- # specified user. If you support the Managed configurations iframe, you can
- # apply managed configurations to a user by specifying an mcmId and its
- # associated configuration variables (if any) in the request. Alternatively, all
- # EMMs can apply managed configurations by passing a list of managed properties.
+ # specified user.
+ # If you support the Managed
+ # configurations iframe,
+ # you can apply managed configurations to a user by specifying an
+ # mcmId
+ # and its associated configuration variables (if any) in the request.
+ # Alternatively,
+ # all EMMs can apply managed configurations by passing a list of managed
+ # properties.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] managed_configuration_for_user_id
- # The ID of the managed configuration (a product ID), e.g. "app:com.google.
- # android.gm".
+ # The ID of the managed configuration (a product ID), e.g.
+ # "app:com.google.android.gm".
# @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1593,8 +1506,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
+ def update_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
command.request_object = managed_configuration_object
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
@@ -1604,7 +1517,6 @@ module Google
command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1612,14 +1524,13 @@ module Google
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] product_id
- # The ID of the product for which the managed configurations settings applies to.
+ # The ID of the product for which the managed configurations settings applies
+ # to.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1632,15 +1543,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_managedconfigurationssettings(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings', options)
+ def list_managedconfigurationssettings(enterprise_id, product_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1653,10 +1563,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1669,23 +1577,24 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'permissions/{permissionId}', options)
+ def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/permissions/{permissionId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Permission
command.params['permissionId'] = permission_id unless permission_id.nil?
command.query['language'] = language unless language.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Approves the specified product and the relevant app permissions, if any. The
- # maximum number of products that you can approve per enterprise customer is 1,
- # 000.
- # To learn how to use managed Google Play to design and create a store layout to
- # display approved products to your users, see Store Layout Design.
+ #
+ # Admins should accept the displayed permissions by
+ # interacting with a separate UI element in the EMM console, which in turn
+ # should trigger the use of this URL as the
+ # approvalUrlInfo.approvalUrl
property in a
+ # Products.approve
call to approve the product.
+ # This URL can only be used to display permissions for up to 1 day.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] product_id
# The ID of the product.
# @param [String] language_code
- # The BCP 47 language code used for permission names and descriptions in the
- # returned iframe, for instance "en-US".
+ # The BCP 47 language code used for permission names and descriptions in
+ # the returned iframe, for instance "en-US".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1756,8 +1662,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
+ def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1765,7 +1671,6 @@ module Google
command.query['languageCode'] = language_code unless language_code.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1779,10 +1684,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1795,8 +1698,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options)
+ def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Product
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1804,16 +1707,17 @@ module Google
command.query['language'] = language unless language.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Retrieves the schema that defines the configurable properties for this product.
- # All products have a schema, but this schema may be empty if no managed
- # configurations have been defined. This schema can be used to populate a UI
- # that allows an admin to configure the product. To apply a managed
- # configuration based on the schema obtained using this API, see Managed
- # Configurations through Play.
+ # Retrieves the schema that defines the configurable properties for this
+ # product. All products have a schema, but this schema may be empty if no
+ # managed configurations have been defined. This schema can be used to
+ # populate a UI that allows an admin to configure the product.
+ # To apply a managed configuration based on the schema obtained using this
+ # API, see
+ # Managed
+ # Configurations through Play.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] product_id
@@ -1823,10 +1727,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1839,8 +1741,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
+ def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1848,7 +1750,6 @@ module Google
command.query['language'] = language unless language.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1860,10 +1761,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1876,48 +1775,46 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
+ def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/permissions', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Finds approved products that match a query, or all approved products if there
- # is no query.
+ # Finds approved products that match a query, or all approved products
+ # if there is no query.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Boolean] approved
- # Specifies whether to search among all products (false) or among only products
- # that have been approved (true). Only "true" is supported, and should be
- # specified.
+ # Specifies whether to search among all products (false) or among
+ # only products that have been approved (true). Only "true" is
+ # supported, and should be specified.
# @param [String] language
- # The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results
- # are returned in the language best matching the preferred language.
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
+ # Results are returned in the language best matching the preferred
+ # language.
# @param [Fixnum] max_results
- # Specifies the maximum number of products that can be returned per request. If
- # not specified, uses a default value of 100, which is also the maximum
- # retrievable within a single response.
+ # Defines how many results the list operation should return.
+ # The default number depends on the resource collection.
# @param [String] query
- # The search query as typed in the Google Play store search box. If omitted, all
- # approved apps will be returned (using the pagination parameters), including
- # apps that are not available in the store (e.g. unpublished apps).
+ # The search query as typed in the Google Play store search box.
+ # If omitted, all approved apps will be returned (using the pagination
+ # parameters), including apps that are not available in the store
+ # (e.g. unpublished apps).
# @param [String] token
- # A pagination token is contained in a request's response when there are more
- # products. The token can be used in a subsequent request to obtain more
- # products, and so forth. This parameter cannot be used in the initial request.
+ # Defines the token of the page to return, usually taken from
+ # TokenPagination.
+ # This can only be used if token paging is enabled.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1930,8 +1827,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_products(enterprise_id, approved: nil, language: nil, max_results: nil, query: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products', options)
+ def list_products(enterprise_id, approved: nil, language: nil, max_results: nil, query: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/products', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ProductsListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1942,7 +1839,6 @@ module Google
command.query['token'] = token unless token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -1954,10 +1850,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -1970,20 +1864,19 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def unapprove_product(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/unapprove', options)
+ def unapprove_product(enterprise_id, product_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/unapprove', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Removes and invalidates the specified credentials for the service account
# associated with this enterprise. The calling service account must have been
- # retrieved by calling Enterprises.GetServiceAccount and must have been set as
- # the enterprise service account by calling Enterprises.SetAccount.
+ # retrieved by calling Enterprises.GetServiceAccount and must have been set
+ # as the enterprise service account by calling Enterprises.SetAccount.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] key_id
@@ -1991,10 +1884,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2007,31 +1898,29 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_serviceaccountkey(enterprise_id, key_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/serviceAccountKeys/{keyId}', options)
+ def delete_serviceaccountkey(enterprise_id, key_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys/{keyId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['keyId'] = key_id unless key_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Generates new credentials for the service account associated with this
# enterprise. The calling service account must have been retrieved by calling
- # Enterprises.GetServiceAccount and must have been set as the enterprise service
- # account by calling Enterprises.SetAccount.
- # Only the type of the key should be populated in the resource to be inserted.
+ # Enterprises.GetServiceAccount and must have been set as the enterprise
+ # service account by calling Enterprises.SetAccount.
+ # Only the type of the key should be populated in the resource to be
+ # inserted.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] service_account_key_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2044,8 +1933,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def insert_serviceaccountkey(enterprise_id, service_account_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
+ def insert_serviceaccountkey(enterprise_id, service_account_key_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
command.request_object = service_account_key_object
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
@@ -2053,24 +1942,21 @@ module Google
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists all active credentials for the service account associated with this
- # enterprise. Only the ID and key type are returned. The calling service account
- # must have been retrieved by calling Enterprises.GetServiceAccount and must
- # have been set as the enterprise service account by calling Enterprises.
- # SetAccount.
+ # enterprise. Only the ID and key type are returned. The calling service
+ # account must have been retrieved by calling Enterprises.GetServiceAccount
+ # and must have been set as the enterprise service account by calling
+ # Enterprises.SetAccount.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2083,14 +1969,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_serviceaccountkeys(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
+ def list_serviceaccountkeys(enterprise_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2104,10 +1989,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2120,14 +2003,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_storelayoutcluster(enterprise_id, page_id, cluster_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
+ def delete_storelayoutcluster(enterprise_id, page_id, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['pageId'] = page_id unless page_id.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2141,10 +2023,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2157,8 +2037,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_storelayoutcluster(enterprise_id, page_id, cluster_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
+ def get_storelayoutcluster(enterprise_id, page_id, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -2166,7 +2046,6 @@ module Google
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2179,10 +2058,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2195,8 +2072,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def insert_storelayoutcluster(enterprise_id, page_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', options)
+ def insert_storelayoutcluster(enterprise_id, page_id, store_cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
command.request_object = store_cluster_object
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
@@ -2205,7 +2082,6 @@ module Google
command.params['pageId'] = page_id unless page_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2217,10 +2093,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2233,15 +2107,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_storelayoutclusters(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', options)
+ def list_storelayoutclusters(enterprise_id, page_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['pageId'] = page_id unless page_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2256,10 +2129,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2272,8 +2143,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_storelayoutcluster(enterprise_id, page_id, cluster_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
+ def update_storelayoutcluster(enterprise_id, page_id, cluster_id, store_cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
command.request_object = store_cluster_object
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
@@ -2283,7 +2154,6 @@ module Google
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2295,10 +2165,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2311,13 +2179,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_storelayoutpage(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
+ def delete_storelayoutpage(enterprise_id, page_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['pageId'] = page_id unless page_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2329,10 +2196,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2345,15 +2210,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_storelayoutpage(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
+ def get_storelayoutpage(enterprise_id, page_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['pageId'] = page_id unless page_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2364,10 +2228,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2380,8 +2242,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def insert_storelayoutpage(enterprise_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/storeLayout/pages', options)
+ def insert_storelayoutpage(enterprise_id, store_page_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
command.request_object = store_page_object
command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
@@ -2389,7 +2251,6 @@ module Google
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2399,10 +2260,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2415,14 +2274,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_storelayoutpages(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages', options)
+ def list_storelayoutpages(enterprise_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2435,10 +2293,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2451,8 +2307,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_storelayoutpage(enterprise_id, page_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
+ def update_storelayoutpage(enterprise_id, page_id, store_page_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
command.request_object = store_page_object
command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
@@ -2461,7 +2317,6 @@ module Google
command.params['pageId'] = page_id unless page_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2473,10 +2328,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2489,19 +2342,18 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}', options)
+ def delete_user(enterprise_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Generates an authentication token which the device policy client can use to
- # provision the given EMM-managed user account on a device. The generated token
- # is single-use and expires after a few minutes.
+ # provision the given EMM-managed user account on a device.
+ # The generated token is single-use and expires after a few minutes.
# You can provision a maximum of 10 devices per user.
# This call only works with EMM-managed accounts.
# @param [String] enterprise_id
@@ -2511,10 +2363,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2527,54 +2377,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def generate_user_authentication_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/authenticationToken', options)
+ def generate_user_authentication_token(enterprise_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/authenticationToken', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::AuthenticationToken::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::AuthenticationToken
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # Generates a token (activation code) to allow this user to configure their
- # managed account in the Android Setup Wizard. Revokes any previously generated
- # token.
- # This call only works with Google managed accounts.
- # @param [String] enterprise_id
- # The ID of the enterprise.
- # @param [String] user_id
- # The ID of the user.
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
- # @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
- # @param [Google::Apis::RequestOptions] options
- # Request-specific options
- #
- # @yield [result, err] Result & error if block supplied
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::UserToken] parsed result object
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [Google::Apis::AndroidenterpriseV1::UserToken]
- #
- # @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 generate_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/token', options)
- command.response_representation = Google::Apis::AndroidenterpriseV1::UserToken::Representation
- command.response_class = Google::Apis::AndroidenterpriseV1::UserToken
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
- command.params['userId'] = user_id unless user_id.nil?
- command.query['fields'] = fields unless fields.nil?
- command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2586,10 +2396,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2602,15 +2410,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}', options)
+ def get_user(enterprise_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::User
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2622,10 +2429,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2638,34 +2443,32 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_user_available_product_set(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
+ def get_user_available_product_set(enterprise_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a new EMM-managed user.
- # The Users resource passed in the body of the request should include an
- # accountIdentifier and an accountType.
- # If a corresponding user already exists with the same account identifier, the
- # user will be updated with the resource. In this case only the displayName
- # field can be changed.
+ # The Users resource
+ # passed in the body of the request should include an
+ # accountIdentifier
and an accountType
.
+ # displayName
field can be changed.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2678,8 +2481,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def insert_user(enterprise_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/users', options)
+ def insert_user(enterprise_id, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/users', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
@@ -2687,24 +2490,22 @@ module Google
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Looks up a user by primary email address. This is only supported for Google-
- # managed users. Lookup of the id is not needed for EMM-managed users because
- # the id is already returned in the result of the Users.insert call.
+ # Looks up a user by primary email address.
+ # This is only supported for Google-managed users. Lookup of the id is not
+ # needed for EMM-managed users because the id is already returned in the
+ # result of the Users.insert call.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] email
- # The exact primary email address of the user to look up.
+ # Required. The exact primary email address of the user to look up.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2717,21 +2518,20 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/users', options)
+ def list_users(enterprise_id, email, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/users', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['email'] = email unless email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Revokes access to all devices currently provisioned to the user. The user will
- # no longer be able to use the managed Play store on any of their managed
- # devices.
+ # Revokes access to all devices currently provisioned to the user. The user
+ # will no longer be able to use the managed Play store on any of their
+ # managed devices.
# This call only works with EMM-managed accounts.
# @param [String] enterprise_id
# The ID of the enterprise.
@@ -2740,10 +2540,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2756,53 +2554,20 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def revoke_user_device_access(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/deviceAccess', options)
+ def revoke_user_device_access(enterprise_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/deviceAccess', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
- # Revokes a previously generated token (activation code) for the user.
- # @param [String] enterprise_id
- # The ID of the enterprise.
- # @param [String] user_id
- # The ID of the user.
- # @param [String] fields
- # Selector specifying which fields to include in a partial response.
- # @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
- # @param [Google::Apis::RequestOptions] options
- # Request-specific options
- #
- # @yield [result, err] Result & error if block supplied
- # @yieldparam result [NilClass] No result returned for this method
- # @yieldparam err [StandardError] error object if request failed
- #
- # @return [void]
- #
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
- # @raise [Google::Apis::AuthorizationError] Authorization is required
- def revoke_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/token', options)
- command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
- command.params['userId'] = user_id unless user_id.nil?
- command.query['fields'] = fields unless fields.nil?
- command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
- execute_or_queue_command(command, &block)
- end
-
- # Modifies the set of products that a user is entitled to access (referred to as
- # whitelisted products). Only products that are approved or products that were
- # previously approved (products with revoked approval) can be whitelisted.
+ # Modifies the set of products that a user is entitled to access (referred to
+ # as whitelisted products). Only products that are
+ # approved
+ # or products that were previously approved (products with revoked approval)
+ # can be whitelisted.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -2811,10 +2576,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2827,8 +2590,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def set_user_available_product_set(enterprise_id, user_id, product_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
+ def set_user_available_product_set(enterprise_id, user_id, product_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
command.request_object = product_set_object
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
@@ -2837,15 +2600,16 @@ module Google
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates the details of an EMM-managed user.
- # Can be used with EMM-managed users only (not Google managed users). Pass the
- # new details in the Users resource in the request body. Only the displayName
- # field can be changed. Other fields must either be unset or have the currently
- # active value.
+ # Can be used with EMM-managed users only (not Google managed users).
+ # Pass the new details in the
+ # Users
+ # resource in the request body. Only the displayName
field
+ # can be changed. Other fields must either be unset or have the
+ # currently active value.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@@ -2854,10 +2618,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2870,8 +2632,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}', options)
+ def update_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
@@ -2880,7 +2642,6 @@ module Google
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2892,10 +2653,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2908,13 +2667,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def delete_webapp(enterprise_id, web_app_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:delete, 'enterprises/{enterpriseId}/webApps/{webAppId}', options)
+ def delete_webapp(enterprise_id, web_app_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['webAppId'] = web_app_id unless web_app_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2926,10 +2684,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2942,15 +2698,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def get_webapp(enterprise_id, web_app_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/webApps/{webAppId}', options)
+ def get_webapp(enterprise_id, web_app_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::WebApp
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['webAppId'] = web_app_id unless web_app_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2961,10 +2716,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -2977,8 +2730,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def insert_webapp(enterprise_id, web_app_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/webApps', options)
+ def insert_webapp(enterprise_id, web_app_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/webApps', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
command.request_object = web_app_object
command.response_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
@@ -2986,7 +2739,6 @@ module Google
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -2996,10 +2748,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -3012,14 +2762,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def list_webapps(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/webApps', options)
+ def list_webapps(enterprise_id, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'androidenterprise/v1/enterprises/{enterpriseId}/webApps', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::WebAppsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::WebAppsListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -3032,10 +2781,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
- # An opaque string that represents a user for quota purposes. Must not exceed 40
- # characters.
- # @param [String] user_ip
- # Deprecated. Please use quotaUser instead.
+ # Available 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
#
@@ -3048,8 +2795,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
- def update_webapp(enterprise_id, web_app_id, web_app_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/webApps/{webAppId}', options)
+ def update_webapp(enterprise_id, web_app_id, web_app_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:put, 'androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
command.request_object = web_app_object
command.response_representation = Google::Apis::AndroidenterpriseV1::WebApp::Representation
@@ -3058,7 +2805,6 @@ module Google
command.params['webAppId'] = web_app_id unless web_app_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@@ -3067,7 +2813,6 @@ module Google
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
- command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
diff --git a/generated/google/apis/cloudsearch_v1.rb b/generated/google/apis/cloudsearch_v1.rb
index 726b4af5e..c18bec832 100644
--- a/generated/google/apis/cloudsearch_v1.rb
+++ b/generated/google/apis/cloudsearch_v1.rb
@@ -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'
diff --git a/generated/google/apis/cloudsearch_v1/service.rb b/generated/google/apis/cloudsearch_v1/service.rb
index 6ff278165..0304ac3be 100644
--- a/generated/google/apis/cloudsearch_v1/service.rb
+++ b/generated/google/apis/cloudsearch_v1/service.rb
@@ -1274,7 +1274,7 @@ module Google
# **Note:** This API requires an admin account to execute.
# @param [String] name
# Name of the search application.
- #
Format: applications/`application_id`.
+ #
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.
diff --git a/generated/google/apis/displayvideo_v1/classes.rb b/generated/google/apis/displayvideo_v1/classes.rb
index 2f69365e3..2df6ec84d 100644
--- a/generated/google/apis/displayvideo_v1/classes.rb
+++ b/generated/google/apis/displayvideo_v1/classes.rb
@@ -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
- # `(metadata.name:howl) AND`
- # `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND`
+ # 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`
- # `(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`
+ # 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.