diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index f06a1b7d6..4b785634e 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -18,14 +18,14 @@ require 'google/apis/androidpublisher_v3/representations.rb' module Google module Apis - # Google Play Developer API + # Google Play Android Developer API # - # Accesses Android application developers' Google Play accounts. + # Lets Android application developers access their Google Play accounts. # # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20200602' + REVISION = '20200607' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3/classes.rb b/generated/google/apis/androidpublisher_v3/classes.rb index 6c01ca8b2..8b82fc283 100644 --- a/generated/google/apis/androidpublisher_v3/classes.rb +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -22,7 +22,7 @@ module Google module Apis module AndroidpublisherV3 - # + # Information about an APK. The resource for ApksService. class Apk include Google::Apis::Core::Hashable @@ -31,12 +31,7 @@ module Google # @return [Google::Apis::AndroidpublisherV3::ApkBinary] attr_accessor :binary - # Represents the binary payload of an APK. - # Corresponds to the JSON property `testBinary` - # @return [Google::Apis::AndroidpublisherV3::ApkBinary] - attr_accessor :test_binary - - # The version code of the APK, as specified in the APK's manifest file. + # The version code of the APK, as specified in the manifest file. # Corresponds to the JSON property `versionCode` # @return [Fixnum] attr_accessor :version_code @@ -48,7 +43,6 @@ module Google # Update properties of this object def update!(**args) @binary = args[:binary] if args.key?(:binary) - @test_binary = args[:test_binary] if args.key?(:test_binary) @version_code = args[:version_code] if args.key?(:version_code) end end @@ -63,8 +57,8 @@ module Google # @return [String] attr_accessor :sha1 - # A sha256 hash of the APK payload, encoded as a hex string and matching the - # output of the sha256sum command. + # A sha256 hash of the APK payload, encoded as a hex string and matching + # the output of the sha256sum command. # Corresponds to the JSON property `sha256` # @return [String] attr_accessor :sha256 @@ -80,14 +74,14 @@ module Google end end - # + # Request to create a new externally hosted APK. class ApksAddExternallyHostedRequest include Google::Apis::Core::Hashable - # Defines an APK available for this application that is hosted externally and - # not uploaded to Google Play. This function is only available to enterprises - # who are using Google Play for Work, and whos application is restricted to the - # enterprise private channel + # Defines an APK available for this application that is hosted externally + # and not uploaded to Google Play. + # This function is only available to organizations using Managed Play whose + # application is configured to restrict distribution to the organizations. # Corresponds to the JSON property `externallyHostedApk` # @return [Google::Apis::AndroidpublisherV3::ExternallyHostedApk] attr_accessor :externally_hosted_apk @@ -102,14 +96,14 @@ module Google end end - # + # Response for creating a new externally hosted APK. class ApksAddExternallyHostedResponse include Google::Apis::Core::Hashable - # Defines an APK available for this application that is hosted externally and - # not uploaded to Google Play. This function is only available to enterprises - # who are using Google Play for Work, and whos application is restricted to the - # enterprise private channel + # Defines an APK available for this application that is hosted externally + # and not uploaded to Google Play. + # This function is only available to organizations using Managed Play whose + # application is configured to restrict distribution to the organizations. # Corresponds to the JSON property `externallyHostedApk` # @return [Google::Apis::AndroidpublisherV3::ExternallyHostedApk] attr_accessor :externally_hosted_apk @@ -124,17 +118,16 @@ module Google end end - # + # Response listing all APKs. class ApksListResponse include Google::Apis::Core::Hashable - # + # All APKs. # Corresponds to the JSON property `apks` # @return [Array] attr_accessor :apks - # Identifies what kind of resource this is. Value: the fixed string " - # androidpublisher#apksListResponse". + # The kind of this response ("androidpublisher#apksListResponse"). # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -150,7 +143,7 @@ module Google end end - # + # The app details. The resource for DetailsService. class AppDetails include Google::Apis::Core::Hashable @@ -187,18 +180,18 @@ module Google end end - # Represents an edit of an app. An edit allows clients to make multiple changes - # before committing them in one operation. + # An app edit. The resource for EditsService. class AppEdit include Google::Apis::Core::Hashable - # The time at which the edit will expire and will be no longer valid for use in - # any subsequent API calls (encoded as seconds since the Epoch). + # Output only. The time (as seconds since Epoch) at which the edit will expire + # and + # will be no longer valid for use. # Corresponds to the JSON property `expiryTimeSeconds` # @return [String] attr_accessor :expiry_time_seconds - # The ID of the edit that can be used in subsequent API calls. + # Output only. Identifier of the edit. Can be used in subsequent API calls. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -214,23 +207,23 @@ module Google end end - # + # Information about a bundle. The resource for BundlesService. class Bundle include Google::Apis::Core::Hashable - # A sha1 hash of the upload payload, encoded as a hex string and matching the - # output of the sha1sum command. + # A sha1 hash of the upload payload, encoded as a hex string and matching + # the output of the sha1sum command. # Corresponds to the JSON property `sha1` # @return [String] attr_accessor :sha1 - # A sha256 hash of the upload payload, encoded as a hex string and matching the - # output of the sha256sum command. + # A sha256 hash of the upload payload, encoded as a hex string and matching + # the output of the sha256sum command. # Corresponds to the JSON property `sha256` # @return [String] attr_accessor :sha256 - # The version code of the Android App Bundle. As specified in the Android App + # The version code of the Android App Bundle, as specified in the Android App # Bundle's base module APK manifest file. # Corresponds to the JSON property `versionCode` # @return [Fixnum] @@ -248,17 +241,16 @@ module Google end end - # + # Response listing all bundles. class BundlesListResponse include Google::Apis::Core::Hashable - # + # All bundles. # Corresponds to the JSON property `bundles` # @return [Array] attr_accessor :bundles - # Identifies what kind of resource this is. Value: the fixed string " - # androidpublisher#bundlesListResponse". + # The kind of this response ("androidpublisher#bundlesListResponse"). # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -274,16 +266,16 @@ module Google end end - # + # An entry of conversation between user and developer. class Comment include Google::Apis::Core::Hashable - # A comment from a developer. + # Developer entry from conversation between user and developer. # Corresponds to the JSON property `developerComment` # @return [Google::Apis::AndroidpublisherV3::DeveloperComment] attr_accessor :developer_comment - # A comment from a user. + # User entry from conversation between user and developer. # Corresponds to the JSON property `userComment` # @return [Google::Apis::AndroidpublisherV3::UserComment] attr_accessor :user_comment @@ -299,47 +291,18 @@ module Google end end - # - class Control - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `modRanges` - # @return [Array] - attr_accessor :mod_ranges - - # - # Corresponds to the JSON property `stratifiedSamplings` - # @return [Array] - attr_accessor :stratified_samplings - - # - # Corresponds to the JSON property `versionCodes` - # @return [Array] - attr_accessor :version_codes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @mod_ranges = args[:mod_ranges] if args.key?(:mod_ranges) - @stratified_samplings = args[:stratified_samplings] if args.key?(:stratified_samplings) - @version_codes = args[:version_codes] if args.key?(:version_codes) - end - end - - # + # Country targeting specification. class CountryTargeting include Google::Apis::Core::Hashable - # + # Countries to target, specified as two letter [CLDR + # codes](https://unicode.org/cldr/charts/latest/supplemental/ + # territory_containment_un_m_49.html). # Corresponds to the JSON property `countries` # @return [Array] attr_accessor :countries - # + # Include "rest of world" as well as explicitly targeted countries. # Corresponds to the JSON property `includeRestOfWorld` # @return [Boolean] attr_accessor :include_rest_of_world @@ -375,7 +338,7 @@ module Google end end - # + # Responses for the upload. class DeobfuscationFilesUploadResponse include Google::Apis::Core::Hashable @@ -394,11 +357,14 @@ module Google end end - # + # Developer entry from conversation between user and developer. class DeveloperComment include Google::Apis::Core::Hashable - # The last time at which this comment was updated. + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970. # Corresponds to the JSON property `lastModified` # @return [Google::Apis::AndroidpublisherV3::Timestamp] attr_accessor :last_modified @@ -419,16 +385,16 @@ module Google end end - # + # Characteristics of the user's device. class DeviceMetadata include Google::Apis::Core::Hashable - # Device CPU make e.g. "Qualcomm" + # Device CPU make, e.g. "Qualcomm" # Corresponds to the JSON property `cpuMake` # @return [String] attr_accessor :cpu_make - # Device CPU model e.g. "MSM8974" + # Device CPU model, e.g. "MSM8974" # Corresponds to the JSON property `cpuModel` # @return [String] attr_accessor :cpu_model @@ -458,7 +424,7 @@ module Google # @return [String] attr_accessor :product_name - # Device RAM in Megabytes e.g. "2048" + # Device RAM in Megabytes, e.g. "2048" # Corresponds to the JSON property `ramMb` # @return [Fixnum] attr_accessor :ram_mb @@ -498,50 +464,19 @@ module Google end end - # - class DeviceSpec - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `screenDensity` - # @return [Fixnum] - attr_accessor :screen_density - - # - # Corresponds to the JSON property `supportedAbis` - # @return [Array] - attr_accessor :supported_abis - - # - # Corresponds to the JSON property `supportedLocales` - # @return [Array] - attr_accessor :supported_locales - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @screen_density = args[:screen_density] if args.key?(:screen_density) - @supported_abis = args[:supported_abis] if args.key?(:supported_abis) - @supported_locales = args[:supported_locales] if args.key?(:supported_locales) - end - end - - # + # An expansion file. The resource for ExpansionFilesService. class ExpansionFile include Google::Apis::Core::Hashable - # If set this field indicates that this APK has an Expansion File uploaded to it: - # this APK does not reference another APK's Expansion File. The field's value - # is the size of the uploaded Expansion File in bytes. + # If set, this field indicates that this APK has an expansion file uploaded + # to it: this APK does not reference another APK's expansion file. + # The field's value is the size of the uploaded expansion file in bytes. # Corresponds to the JSON property `fileSize` # @return [Fixnum] attr_accessor :file_size - # If set this APK's Expansion File references another APK's Expansion File. The - # file_size field will not be set. + # If set, this APK's expansion file references another APK's expansion file. + # The file_size field will not be set. # Corresponds to the JSON property `referencesVersion` # @return [Fixnum] attr_accessor :references_version @@ -557,11 +492,11 @@ module Google end end - # + # Response for uploading an expansion file. class ExpansionFilesUploadResponse include Google::Apis::Core::Hashable - # + # An expansion file. The resource for ExpansionFilesService. # Corresponds to the JSON property `expansionFile` # @return [Google::Apis::AndroidpublisherV3::ExpansionFile] attr_accessor :expansion_file @@ -576,10 +511,10 @@ module Google end end - # Defines an APK available for this application that is hosted externally and - # not uploaded to Google Play. This function is only available to enterprises - # who are using Google Play for Work, and whos application is restricted to the - # enterprise private channel + # Defines an APK available for this application that is hosted externally + # and not uploaded to Google Play. + # This function is only available to organizations using Managed Play whose + # application is configured to restrict distribution to the organizations. class ExternallyHostedApk include Google::Apis::Core::Hashable @@ -588,8 +523,8 @@ module Google # @return [String] attr_accessor :application_label - # A certificate (or array of certificates if a certificate-chain is used) used - # to signed this APK, represented as a base64 encoded byte array. + # A certificate (or array of certificates if a certificate-chain is used) + # used to sign this APK, represented as a base64 encoded byte array. # Corresponds to the JSON property `certificateBase64s` # @return [Array] attr_accessor :certificate_base64s @@ -599,12 +534,14 @@ module Google # @return [String] attr_accessor :externally_hosted_url - # The SHA1 checksum of this APK, represented as a base64 encoded byte array. + # The sha1 checksum of this APK, represented as a base64 encoded byte + # array. # Corresponds to the JSON property `fileSha1Base64` # @return [String] attr_accessor :file_sha1_base64 - # The SHA256 checksum of this APK, represented as a base64 encoded byte array. + # The sha256 checksum of this APK, represented as a base64 encoded byte + # array. # Corresponds to the JSON property `fileSha256Base64` # @return [String] attr_accessor :file_sha256_base64 @@ -646,7 +583,7 @@ module Google # The permissions requested by this APK. # Corresponds to the JSON property `usesPermissions` - # @return [Array] + # @return [Array] attr_accessor :uses_permissions # The version code of this APK. @@ -683,32 +620,7 @@ module Google end end - # A permission used by this APK. - class ExternallyHostedApkUsesPermission - include Google::Apis::Core::Hashable - - # Optionally, the maximum SDK version for which the permission is required. - # Corresponds to the JSON property `maxSdkVersion` - # @return [Fixnum] - attr_accessor :max_sdk_version - - # The name of the permission requested. - # 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) - @max_sdk_version = args[:max_sdk_version] if args.key?(:max_sdk_version) - @name = args[:name] if args.key?(:name) - end - end - - # + # An uploaded image. The resource for ImagesService. class Image include Google::Apis::Core::Hashable @@ -717,12 +629,12 @@ module Google # @return [String] attr_accessor :id - # A sha1 hash of the image that was uploaded. + # A sha1 hash of the image. # Corresponds to the JSON property `sha1` # @return [String] attr_accessor :sha1 - # A sha256 hash of the image that was uploaded. + # A sha256 hash of the image. # Corresponds to the JSON property `sha256` # @return [String] attr_accessor :sha256 @@ -745,11 +657,11 @@ module Google end end - # + # Response for deleting all images. class ImagesDeleteAllResponse include Google::Apis::Core::Hashable - # + # The deleted images. # Corresponds to the JSON property `deleted` # @return [Array] attr_accessor :deleted @@ -764,11 +676,11 @@ module Google end end - # + # Response listing all images. class ImagesListResponse include Google::Apis::Core::Hashable - # + # All listed Images. # Corresponds to the JSON property `images` # @return [Array] attr_accessor :images @@ -783,11 +695,11 @@ module Google end end - # + # Response for uploading an image. class ImagesUploadResponse include Google::Apis::Core::Hashable - # + # An uploaded image. The resource for ImagesService. # Corresponds to the JSON property `image` # @return [Google::Apis::AndroidpublisherV3::Image] attr_accessor :image @@ -802,81 +714,70 @@ module Google end end - # + # An in-app product. The resource for InappproductsService. class InAppProduct include Google::Apis::Core::Hashable - # The default language of the localized data, as defined by BCP 47. e.g. "en-US", - # "en-GB". + # Default language of the localized data, as defined by BCP-47. e.g. "en-US". # Corresponds to the JSON property `defaultLanguage` # @return [String] attr_accessor :default_language - # Default price cannot be zero. In-app products can never be free. Default price - # is always in the developer's Checkout merchant currency. + # Definition of a price, i.e. currency and units. # Corresponds to the JSON property `defaultPrice` # @return [Google::Apis::AndroidpublisherV3::Price] attr_accessor :default_price - # Grace period of the subscription, specified in ISO 8601 format. It will allow - # developers to give their subscribers a grace period when the payment for the - # new recurrence period is declined. Acceptable values = "P3D" (three days), " - # P7D" (seven days), "P14D" (fourteen days), and "P30D" (thirty days) + # Grace period of the subscription, specified in ISO 8601 format. Allows + # developers to give their subscribers a grace period when the payment + # for the new recurrence period is declined. + # Acceptable values are P0D (zero days), P3D (three days), P7D (seven days), + # P14D (14 days), and P30D (30 days). # Corresponds to the JSON property `gracePeriod` # @return [String] attr_accessor :grace_period - # List of localized title and description data. + # List of localized title and description data. Map key is the language of + # the localized data, as defined by BCP-47, e.g. "en-US". # Corresponds to the JSON property `listings` # @return [Hash] attr_accessor :listings - # The package name of the parent app. + # Package name of the parent app. # Corresponds to the JSON property `packageName` # @return [String] attr_accessor :package_name - # Prices per buyer region. None of these prices should be zero. In-app products - # can never be free. + # Prices per buyer region. None of these can be zero, as in-app products are + # never free. Map key is region code, as defined by ISO 3166-2. # Corresponds to the JSON property `prices` # @return [Hash] attr_accessor :prices - # Purchase type enum value. Unmodifiable after creation. + # The type of the product, e.g. a recurring subscription. # Corresponds to the JSON property `purchaseType` # @return [String] attr_accessor :purchase_type - # Whether or not the developer wants the specific subscription to be - # resubscribable. If the developer doesn't use PBL2.0, this value is ignored - # since the feature is only for developers using PBL2.0. This feature allows - # users to resubscribe to an expired subscription directly from the subscription - # center by clicking on a "Resubscribe" CTA under the entry for the expired - # subscription. - # Corresponds to the JSON property `resubscribeEligibility` - # @return [String] - attr_accessor :resubscribe_eligibility - - # The stock-keeping-unit (SKU) of the product, unique within an app. + # Stock-keeping-unit (SKU) of the product, unique within an app. # Corresponds to the JSON property `sku` # @return [String] attr_accessor :sku - # + # The status of the product, e.g. whether it's active. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Subscription period, specified in ISO 8601 format. Acceptable values are "P1W" - # (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and " - # P1Y" (one year). + # Subscription period, specified in ISO 8601 format. Acceptable values are + # P1W (one week), P1M (one month), P3M (three months), P6M (six months), + # and P1Y (one year). # Corresponds to the JSON property `subscriptionPeriod` # @return [String] attr_accessor :subscription_period # Trial period, specified in ISO 8601 format. Acceptable values are anything - # between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions - # cannot have a trial period. + # between P7D (seven days) and P999D (999 days). # Corresponds to the JSON property `trialPeriod` # @return [String] attr_accessor :trial_period @@ -894,7 +795,6 @@ module Google @package_name = args[:package_name] if args.key?(:package_name) @prices = args[:prices] if args.key?(:prices) @purchase_type = args[:purchase_type] if args.key?(:purchase_type) - @resubscribe_eligibility = args[:resubscribe_eligibility] if args.key?(:resubscribe_eligibility) @sku = args[:sku] if args.key?(:sku) @status = args[:status] if args.key?(:status) @subscription_period = args[:subscription_period] if args.key?(:subscription_period) @@ -902,23 +802,21 @@ module Google end end - # + # Store listing of a single in-app product. class InAppProductListing include Google::Apis::Core::Hashable - # The localized entitlement benefits of the in-app product. These are supported - # only for subscriptions. + # Localized entitlement benefits for a subscription. # Corresponds to the JSON property `benefits` # @return [Array] attr_accessor :benefits - # The localized description of the in-app product. These are deprecated for - # subscriptions. + # Description for the store listing. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # The localized title of the in-app product. + # Title for the store listing. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -935,27 +833,36 @@ module Google end end - # + # Response listing all in-app products. class InappproductsListResponse include Google::Apis::Core::Hashable - # + # All in-app products. # Corresponds to the JSON property `inappproduct` # @return [Array] attr_accessor :inappproduct - # Identifies what kind of resource this is. Value: the fixed string " - # androidpublisher#inappproductsListResponse". + # The kind of this response ("androidpublisher#inappproductsListResponse"). # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # + # 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::AndroidpublisherV3::PageInfo] attr_accessor :page_info - # + # Pagination information returned by a List operation when token pagination + # is enabled. + # List operations that supports paging return only one "page" of results. This + # protocol buffer message describes the page that has been returned. + # When using token pagination, clients should use the next/previous token + # to get another page of the result. The presence or absence of next/previous + # token indicates whether a next/previous page is available and provides a + # mean of accessing this page. ListRequest.page_token should be set to either + # next_page_token or previous_page_token to access another page. # Corresponds to the JSON property `tokenPagination` # @return [Google::Apis::AndroidpublisherV3::TokenPagination] attr_accessor :token_pagination @@ -973,25 +880,26 @@ module Google end end - # An artifact resource which gets created when uploading an APK or Android App - # Bundle through internal app sharing. + # An artifact resource which gets created when uploading an APK or Android + # App Bundle through internal app sharing. class InternalAppSharingArtifact include Google::Apis::Core::Hashable - # The SHA256 fingerprint of the certificate used to signed the generated + # The sha256 fingerprint of the certificate used to sign the generated # artifact. # Corresponds to the JSON property `certificateFingerprint` # @return [String] attr_accessor :certificate_fingerprint - # The download URL generated for the uploaded artifact. Users that are - # authorized to download can follow the link to the Play Store app to install it. + # The download URL generated for the uploaded artifact. + # Users that are authorized to download can follow the link to the Play + # Store app to install it. # Corresponds to the JSON property `downloadUrl` # @return [String] attr_accessor :download_url - # The SHA-256 hash of the artifact represented as a lowercase hexadecimal number, - # matching the output of the sha256sum command. + # The sha256 hash of the artifact represented as a lowercase hexadecimal + # number, matching the output of the sha256sum command. # Corresponds to the JSON property `sha256` # @return [String] attr_accessor :sha256 @@ -1012,17 +920,18 @@ module Google class IntroductoryPriceInfo include Google::Apis::Core::Hashable - # Introductory price of the subscription, not including tax. The currency is the - # same as price_currency_code. Price is expressed in micro-units, where 1,000, - # 000 micro-units represents one unit of the currency. For example, if the - # subscription price is €1.99, price_amount_micros is 1990000. + # Introductory price of the subscription, not including tax. + # The currency is the same as price_currency_code. Price is + # expressed in micro-units, where 1,000,000 micro-units represents one unit + # of the currency. For example, if the subscription price is €1.99, + # price_amount_micros is 1990000. # Corresponds to the JSON property `introductoryPriceAmountMicros` # @return [Fixnum] attr_accessor :introductory_price_amount_micros - # ISO 4217 currency code for the introductory subscription price. For example, - # if the price is specified in British pounds sterling, price_currency_code is " - # GBP". + # ISO 4217 currency code for the introductory subscription price. + # For example, if the price is specified in British pounds sterling, + # price_currency_code is "GBP". # Corresponds to the JSON property `introductoryPriceCurrencyCode` # @return [String] attr_accessor :introductory_price_currency_code @@ -1032,9 +941,10 @@ module Google # @return [Fixnum] attr_accessor :introductory_price_cycles - # Introductory price period, specified in ISO 8601 format. Common values are ( - # but not limited to) "P1W" (one week), "P1M" (one month), "P3M" (three months), - # "P6M" (six months), and "P1Y" (one year). + # Introductory price period, specified in ISO 8601 format. + # Common values are (but not limited to) "P1W" (one + # week), "P1M" (one month), "P3M" (three months), "P6M" (six months), + # and "P1Y" (one year). # Corresponds to the JSON property `introductoryPricePeriod` # @return [String] attr_accessor :introductory_price_period @@ -1052,27 +962,27 @@ module Google end end - # + # A localized store listing. The resource for ListingsService. class Listing include Google::Apis::Core::Hashable - # Full description of the app; this may be up to 4000 characters in length. + # Full description of the app. # Corresponds to the JSON property `fullDescription` # @return [String] attr_accessor :full_description - # Language localization code (for example, "de-AT" for Austrian German). + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). # Corresponds to the JSON property `language` # @return [String] attr_accessor :language - # Short description of the app (previously known as promo text); this may be up - # to 80 characters in length. + # Short description of the app. # Corresponds to the JSON property `shortDescription` # @return [String] attr_accessor :short_description - # App's localized title. + # Localized title of the app. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -1096,17 +1006,16 @@ module Google end end - # + # Response listing all localized listings. class ListingsListResponse include Google::Apis::Core::Hashable - # Identifies what kind of resource this is. Value: the fixed string " - # androidpublisher#listingsListResponse". + # The kind of this response ("androidpublisher#listingsListResponse"). # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # + # All localized listings. # Corresponds to the JSON property `listings` # @return [Array] attr_accessor :listings @@ -1122,16 +1031,17 @@ module Google end end - # + # Release notes specification, i.e. language and text. class LocalizedText include Google::Apis::Core::Hashable - # The language code, in BCP 47 format (eg "en-US"). + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). # Corresponds to the JSON property `language` # @return [String] attr_accessor :language - # The text in the given `language`. + # The text in the given language. # Corresponds to the JSON property `text` # @return [String] attr_accessor :text @@ -1147,46 +1057,25 @@ module Google end end - # - class ModRange - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `end` - # @return [Fixnum] - attr_accessor :end - - # - # Corresponds to the JSON property `start` - # @return [Fixnum] - attr_accessor :start - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @end = args[:end] if args.key?(:end) - @start = args[:start] if args.key?(:start) - end - end - - # + # 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. class PageInfo include Google::Apis::Core::Hashable - # + # Maximum number of results returned in one page. + # ! The number of results included in the API response. # Corresponds to the JSON property `resultPerPage` # @return [Fixnum] attr_accessor :result_per_page - # + # Index of the first result returned in the current page. # Corresponds to the JSON property `startIndex` # @return [Fixnum] attr_accessor :start_index - # + # Total number of results available on the backend + # ! The total number of results in the result set. # Corresponds to the JSON property `totalResults` # @return [Fixnum] attr_accessor :total_results @@ -1203,16 +1092,17 @@ module Google end end - # + # Definition of a price, i.e. currency and units. class Price include Google::Apis::Core::Hashable # 3 letter Currency code, as defined by ISO 4217. + # See java/com/google/common/money/CurrencyCode.java # Corresponds to the JSON property `currency` # @return [String] attr_accessor :currency - # The price in millionths of the currency base unit represented as a string. + # Price in 1/million of the currency base unit, represented as a string. # Corresponds to the JSON property `priceMicros` # @return [String] attr_accessor :price_micros @@ -1228,36 +1118,55 @@ module Google end end - # A ProductPurchase resource indicates the status of a user's inapp product - # purchase. + # A ProductPurchase resource indicates the status of a user's inapp + # product purchase. class ProductPurchase include Google::Apis::Core::Hashable # The acknowledgement state of the inapp product. Possible values are: - # - Yet to be acknowledged - # - Acknowledged + # 0. Yet to be acknowledged + # 1. Acknowledged # Corresponds to the JSON property `acknowledgementState` # @return [Fixnum] attr_accessor :acknowledgement_state # The consumption state of the inapp product. Possible values are: - # - Yet to be consumed - # - Consumed + # 0. Yet to be consumed + # 1. Consumed # Corresponds to the JSON property `consumptionState` # @return [Fixnum] attr_accessor :consumption_state - # A developer-specified string that contains supplemental information about an - # order. + # A developer-specified string that contains supplemental + # information about an order. # Corresponds to the JSON property `developerPayload` # @return [String] attr_accessor :developer_payload - # This kind represents an inappPurchase object in the androidpublisher service. + # This kind represents an inappPurchase object in the androidpublisher + # service. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind + # An obfuscated version of the id that is uniquely associated with the + # user's account in your app. Only present if specified using + # https://developer.android.com/reference/com/android/billingclient/api/ + # BillingFlowParams.Builder#setobfuscatedaccountid + # when the purchase was made. + # Corresponds to the JSON property `obfuscatedExternalAccountId` + # @return [String] + attr_accessor :obfuscated_external_account_id + + # An obfuscated version of the id that is uniquely associated with the + # user's profile in your app. Only present if specified using + # https://developer.android.com/reference/com/android/billingclient/api/ + # BillingFlowParams.Builder#setobfuscatedprofileid + # when the purchase was made. + # Corresponds to the JSON property `obfuscatedExternalProfileId` + # @return [String] + attr_accessor :obfuscated_external_profile_id + # The order id associated with the purchase of the inapp product. # Corresponds to the JSON property `orderId` # @return [String] @@ -1269,15 +1178,15 @@ module Google attr_accessor :product_id # The purchase state of the order. Possible values are: - # - Purchased - # - Canceled - # - Pending + # 0. Purchased + # 1. Canceled + # 2. Pending # Corresponds to the JSON property `purchaseState` # @return [Fixnum] attr_accessor :purchase_state - # The time the product was purchased, in milliseconds since the epoch (Jan 1, - # 1970). + # The time the product was purchased, in milliseconds since the + # epoch (Jan 1, 1970). # Corresponds to the JSON property `purchaseTimeMillis` # @return [Fixnum] attr_accessor :purchase_time_millis @@ -1287,12 +1196,12 @@ module Google # @return [String] attr_accessor :purchase_token - # The type of purchase of the inapp product. This field is only set if this - # purchase was not made using the standard in-app billing flow. Possible values - # are: - # - Test (i.e. purchased from a license testing account) - # - Promo (i.e. purchased using a promo code) - # - Rewarded (i.e. from watching a video ad instead of paying) + # The type of purchase of the inapp product. This field is only set if + # this purchase was not made using the standard in-app billing flow. + # Possible values are: + # 0. Test (i.e. purchased from a license testing account) + # 1. Promo (i.e. purchased using a promo code) + # 2. Rewarded (i.e. from watching a video ad instead of paying) # Corresponds to the JSON property `purchaseType` # @return [Fixnum] attr_accessor :purchase_type @@ -1312,6 +1221,8 @@ module Google @consumption_state = args[:consumption_state] if args.key?(:consumption_state) @developer_payload = args[:developer_payload] if args.key?(:developer_payload) @kind = args[:kind] if args.key?(:kind) + @obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id) + @obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id) @order_id = args[:order_id] if args.key?(:order_id) @product_id = args[:product_id] if args.key?(:product_id) @purchase_state = args[:purchase_state] if args.key?(:purchase_state) @@ -1322,7 +1233,7 @@ module Google end end - # + # Request for the product.purchases.acknowledge API. class ProductPurchasesAcknowledgeRequest include Google::Apis::Core::Hashable @@ -1341,7 +1252,7 @@ module Google end end - # + # An Android app review. class Review include Google::Apis::Core::Hashable @@ -1372,11 +1283,14 @@ module Google end end - # + # The result of replying/updating a reply to review. class ReviewReplyResult include Google::Apis::Core::Hashable - # The time at which the reply took effect. + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970. # Corresponds to the JSON property `lastEdited` # @return [Google::Apis::AndroidpublisherV3::Timestamp] attr_accessor :last_edited @@ -1397,21 +1311,31 @@ module Google end end - # + # Response listing reviews. class ReviewsListResponse include Google::Apis::Core::Hashable - # + # 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::AndroidpublisherV3::PageInfo] attr_accessor :page_info - # + # List of reviews. # Corresponds to the JSON property `reviews` # @return [Array] attr_accessor :reviews - # + # Pagination information returned by a List operation when token pagination + # is enabled. + # List operations that supports paging return only one "page" of results. This + # protocol buffer message describes the page that has been returned. + # When using token pagination, clients should use the next/previous token + # to get another page of the result. The presence or absence of next/previous + # token indicates whether a next/previous page is available and provides a + # mean of accessing this page. ListRequest.page_token should be set to either + # next_page_token or previous_page_token to access another page. # Corresponds to the JSON property `tokenPagination` # @return [Google::Apis::AndroidpublisherV3::TokenPagination] attr_accessor :token_pagination @@ -1428,7 +1352,7 @@ module Google end end - # + # Request to reply to review or update existing reply. class ReviewsReplyRequest include Google::Apis::Core::Hashable @@ -1448,11 +1372,11 @@ module Google end end - # + # Response on status of replying to a review. class ReviewsReplyResponse include Google::Apis::Core::Hashable - # + # The result of replying/updating a reply to review. # Corresponds to the JSON property `result` # @return [Google::Apis::AndroidpublisherV3::ReviewReplyResult] attr_accessor :result @@ -1467,105 +1391,18 @@ module Google end end - # - class Sampling - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `modRanges` - # @return [Array] - attr_accessor :mod_ranges - - # - # Corresponds to the JSON property `modulus` - # @return [Fixnum] - attr_accessor :modulus - - # - # Corresponds to the JSON property `salt` - # @return [Fixnum] - attr_accessor :salt - - # - # Corresponds to the JSON property `stratifiedSamplings` - # @return [Array] - attr_accessor :stratified_samplings - - # - # Corresponds to the JSON property `useAndroidId` - # @return [Boolean] - attr_accessor :use_android_id - alias_method :use_android_id?, :use_android_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @mod_ranges = args[:mod_ranges] if args.key?(:mod_ranges) - @modulus = args[:modulus] if args.key?(:modulus) - @salt = args[:salt] if args.key?(:salt) - @stratified_samplings = args[:stratified_samplings] if args.key?(:stratified_samplings) - @use_android_id = args[:use_android_id] if args.key?(:use_android_id) - end - end - - # - class StratifiedSampling - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `modRanges` - # @return [Array] - attr_accessor :mod_ranges - - # - # Corresponds to the JSON property `stratum` - # @return [Google::Apis::AndroidpublisherV3::Stratum] - attr_accessor :stratum - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @mod_ranges = args[:mod_ranges] if args.key?(:mod_ranges) - @stratum = args[:stratum] if args.key?(:stratum) - end - end - - # - class Stratum - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `brand` - # @return [String] - attr_accessor :brand - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @brand = args[:brand] if args.key?(:brand) - end - end - # Information provided by the user when they complete the subscription # cancellation flow (cancellation reason survey). class SubscriptionCancelSurveyResult include Google::Apis::Core::Hashable - # The cancellation reason the user chose in the survey. Possible values are: - # - Other - # - I don't use this service enough - # - Technical issues - # - Cost-related reasons - # - I found a better app + # The cancellation reason the user chose in the survey. + # Possible values are: + # 0. Other + # 1. I don't use this service enough + # 2. Technical issues + # 3. Cost-related reasons + # 4. I found a better app # Corresponds to the JSON property `cancelSurveyReason` # @return [Fixnum] attr_accessor :cancel_survey_reason @@ -1587,20 +1424,21 @@ module Google end end - # A SubscriptionDeferralInfo contains the data needed to defer a subscription - # purchase to a future expiry time. + # A SubscriptionDeferralInfo contains the data needed to defer a + # subscription purchase to a future expiry time. class SubscriptionDeferralInfo include Google::Apis::Core::Hashable - # The desired next expiry time to assign to the subscription, in milliseconds - # since the Epoch. The given time must be later/greater than the current expiry - # time for the subscription. + # The desired next expiry time to assign to the subscription, in + # milliseconds since the Epoch. The given time must be later/greater + # than the current expiry time for the subscription. # Corresponds to the JSON property `desiredExpiryTimeMillis` # @return [Fixnum] attr_accessor :desired_expiry_time_millis - # The expected expiry time for the subscription. If the current expiry time for - # the subscription is not the value specified here, the deferral will not occur. + # The expected expiry time for the subscription. If the current + # expiry time for the subscription is not the value specified + # here, the deferral will not occur. # Corresponds to the JSON property `expectedExpiryTimeMillis` # @return [Fixnum] attr_accessor :expected_expiry_time_millis @@ -1623,20 +1461,19 @@ module Google class SubscriptionPriceChange include Google::Apis::Core::Hashable - # The new price the subscription will renew with if the price change is accepted - # by the user. + # Definition of a price, i.e. currency and units. # Corresponds to the JSON property `newPrice` # @return [Google::Apis::AndroidpublisherV3::Price] attr_accessor :new_price # The current state of the price change. Possible values are: - # - Outstanding: State for a pending price change waiting for the user to agree. - # In this state, you can optionally seek confirmation from the user using the In- - # App API. - # - Accepted: State for an accepted price change that the subscription will - # renew with unless it's canceled. The price change takes effect on a future - # date when the subscription renews. Note that the change might not occur when - # the subscription is renewed next. + # 0. Outstanding: State for a pending price change waiting for the user to + # agree. In this state, you can optionally seek confirmation from the + # user using the In-App API. + # 1. Accepted: State for an accepted price change that the subscription + # will renew with unless it's canceled. The price change takes effect on + # a future date when the subscription renews. Note that the change might + # not occur when the subscription is renewed next. # Corresponds to the JSON property `state` # @return [Fixnum] attr_accessor :state @@ -1652,39 +1489,40 @@ module Google end end - # A SubscriptionPurchase resource indicates the status of a user's subscription - # purchase. + # A SubscriptionPurchase resource indicates the status of a user's + # subscription purchase. class SubscriptionPurchase include Google::Apis::Core::Hashable - # The acknowledgement state of the subscription product. Possible values are: - # - Yet to be acknowledged - # - Acknowledged + # The acknowledgement state of the subscription product. Possible values + # are: + # 0. Yet to be acknowledged + # 1. Acknowledged # Corresponds to the JSON property `acknowledgementState` # @return [Fixnum] attr_accessor :acknowledgement_state - # Whether the subscription will automatically be renewed when it reaches its - # current expiry time. + # Whether the subscription will automatically be renewed when it + # reaches its current expiry time. # Corresponds to the JSON property `autoRenewing` # @return [Boolean] attr_accessor :auto_renewing alias_method :auto_renewing?, :auto_renewing - # Time at which the subscription will be automatically resumed, in milliseconds - # since the Epoch. Only present if the user has requested to pause the - # subscription. + # Time at which the subscription will be automatically resumed, in + # milliseconds since the Epoch. Only present if the user has requested to + # pause the subscription. # Corresponds to the JSON property `autoResumeTimeMillis` # @return [Fixnum] attr_accessor :auto_resume_time_millis - # The reason why a subscription was canceled or is not auto-renewing. Possible - # values are: - # - User canceled the subscription - # - Subscription was canceled by the system, for example because of a billing - # problem - # - Subscription was replaced with a new subscription - # - Subscription was canceled by the developer + # The reason why a subscription was canceled or is not auto-renewing. + # Possible values are: + # 0. User canceled the subscription + # 1. Subscription was canceled by the system, + # for example because of a billing problem + # 2. Subscription was replaced with a new subscription + # 3. Subscription was canceled by the developer # Corresponds to the JSON property `cancelReason` # @return [Fixnum] attr_accessor :cancel_reason @@ -1695,43 +1533,45 @@ module Google # @return [Google::Apis::AndroidpublisherV3::SubscriptionCancelSurveyResult] attr_accessor :cancel_survey_result - # ISO 3166-1 alpha-2 billing country/region code of the user at the time the - # subscription was granted. + # ISO 3166-1 alpha-2 billing country/region code of the user at the time + # the subscription was granted. # Corresponds to the JSON property `countryCode` # @return [String] attr_accessor :country_code - # A developer-specified string that contains supplemental information about an - # order. + # A developer-specified string that contains supplemental + # information about an order. # Corresponds to the JSON property `developerPayload` # @return [String] attr_accessor :developer_payload - # The email address of the user when the subscription was purchased. Only - # present for purchases made with 'Subscribe with Google'. + # The email address of the user when the subscription was purchased. + # Only present for purchases made with 'Subscribe with Google'. # Corresponds to the JSON property `emailAddress` # @return [String] attr_accessor :email_address - # Time at which the subscription will expire, in milliseconds since the Epoch. + # Time at which the subscription will expire, in milliseconds + # since the Epoch. # Corresponds to the JSON property `expiryTimeMillis` # @return [Fixnum] attr_accessor :expiry_time_millis - # User account identifier in the third-party service. Only present if account - # linking happened as part of the subscription purchase flow. + # User account identifier in the third-party service. + # Only present if account linking happened as part of the subscription + # purchase flow. # Corresponds to the JSON property `externalAccountId` # @return [String] attr_accessor :external_account_id - # The family name of the user when the subscription was purchased. Only present - # for purchases made with 'Subscribe with Google'. + # The family name of the user when the subscription was purchased. + # Only present for purchases made with 'Subscribe with Google'. # Corresponds to the JSON property `familyName` # @return [String] attr_accessor :family_name - # The given name of the user when the subscription was purchased. Only present - # for purchases made with 'Subscribe with Google'. + # The given name of the user when the subscription was purchased. + # Only present for purchases made with 'Subscribe with Google'. # Corresponds to the JSON property `givenName` # @return [String] attr_accessor :given_name @@ -1747,39 +1587,61 @@ module Google # @return [String] attr_accessor :kind - # The purchase token of the originating purchase if this subscription is one of - # the following: - # - Re-signup of a canceled but non-lapsed subscription - # - Upgrade/downgrade from a previous subscription For example, suppose a user - # originally signs up and you receive purchase token X, then the user cancels - # and goes through the resignup flow (before their subscription lapses) and you - # receive purchase token Y, and finally the user upgrades their subscription and - # you receive purchase token Z. If you call this API with purchase token Z, this - # field will be set to Y. If you call this API with purchase token Y, this field - # will be set to X. If you call this API with purchase token X, this field will - # not be set. + # The purchase token of the originating purchase if this subscription + # is one of the following: + # 0. Re-signup of a canceled but non-lapsed subscription + # 1. Upgrade/downgrade from a previous subscription + # For example, suppose a user originally signs up and you receive + # purchase token X, then the user cancels and goes through the + # resignup flow (before their subscription lapses) and you receive + # purchase token Y, and finally the user upgrades their subscription + # and you receive purchase token Z. If you call this API with purchase + # token Z, this field will be set to Y. If you call this API with + # purchase token Y, this field will be set to X. If you call this API + # with purchase token X, this field will not be set. # Corresponds to the JSON property `linkedPurchaseToken` # @return [String] attr_accessor :linked_purchase_token - # The order id of the latest recurring order associated with the purchase of the - # subscription. + # An obfuscated version of the id that is uniquely associated with the + # user's account in your app. Present for the following purchases: + # * If account linking happened as part of the subscription purchase flow. + # * It was specified using + # https://developer.android.com/reference/com/android/billingclient/api/ + # BillingFlowParams.Builder#setobfuscatedaccountid + # when the purchase was made. + # Corresponds to the JSON property `obfuscatedExternalAccountId` + # @return [String] + attr_accessor :obfuscated_external_account_id + + # An obfuscated version of the id that is uniquely associated with the + # user's profile in your app. Only present if specified using + # https://developer.android.com/reference/com/android/billingclient/api/ + # BillingFlowParams.Builder#setobfuscatedprofileid + # when the purchase was made. + # Corresponds to the JSON property `obfuscatedExternalProfileId` + # @return [String] + attr_accessor :obfuscated_external_profile_id + + # The order id of the latest recurring order associated with + # the purchase of the subscription. # Corresponds to the JSON property `orderId` # @return [String] attr_accessor :order_id # The payment state of the subscription. Possible values are: - # - Payment pending - # - Payment received - # - Free trial - # - Pending deferred upgrade/downgrade + # 0. Payment pending + # 1. Payment received + # 2. Free trial + # 3. Pending deferred upgrade/downgrade # Corresponds to the JSON property `paymentState` # @return [Fixnum] attr_accessor :payment_state - # Price of the subscription, not including tax. Price is expressed in micro- - # units, where 1,000,000 micro-units represents one unit of the currency. For - # example, if the subscription price is €1.99, price_amount_micros is 1990000. + # Price of the subscription, not including tax. Price is expressed + # in micro-units, where 1,000,000 micro-units represents one unit of + # the currency. For example, if the subscription price is €1.99, + # price_amount_micros is 1990000. # Corresponds to the JSON property `priceAmountMicros` # @return [Fixnum] attr_accessor :price_amount_micros @@ -1792,55 +1654,57 @@ module Google # @return [Google::Apis::AndroidpublisherV3::SubscriptionPriceChange] attr_accessor :price_change - # ISO 4217 currency code for the subscription price. For example, if the price - # is specified in British pounds sterling, price_currency_code is "GBP". + # ISO 4217 currency code for the subscription price. For example, + # if the price is specified in British pounds sterling, + # price_currency_code is "GBP". # Corresponds to the JSON property `priceCurrencyCode` # @return [String] attr_accessor :price_currency_code - # The Google profile id of the user when the subscription was purchased. Only - # present for purchases made with 'Subscribe with Google'. + # The Google profile id of the user when the subscription was purchased. + # Only present for purchases made with 'Subscribe with Google'. # Corresponds to the JSON property `profileId` # @return [String] attr_accessor :profile_id - # The profile name of the user when the subscription was purchased. Only present - # for purchases made with 'Subscribe with Google'. + # The profile name of the user when the subscription was purchased. + # Only present for purchases made with 'Subscribe with Google'. # Corresponds to the JSON property `profileName` # @return [String] attr_accessor :profile_name - # The promotion code applied on this purchase. This field is only set if a - # vanity code promotion is applied when the subscription was purchased. + # The promotion code applied on this purchase. This field is only set if + # a vanity code promotion is applied when the subscription was purchased. # Corresponds to the JSON property `promotionCode` # @return [String] attr_accessor :promotion_code - # The type of promotion applied on this purchase. This field is only set if a - # promotion is applied when the subscription was purchased. Possible values are: - # - # - One time code - # - Vanity code + # The type of promotion applied on this purchase. This field is only set if + # a promotion is applied when the subscription was purchased. Possible + # values are: + # 0. One time code + # 1. Vanity code # Corresponds to the JSON property `promotionType` # @return [Fixnum] attr_accessor :promotion_type - # The type of purchase of the subscription. This field is only set if this - # purchase was not made using the standard in-app billing flow. Possible values - # are: - # - Test (i.e. purchased from a license testing account) - # - Promo (i.e. purchased using a promo code) + # The type of purchase of the subscription. This field is only set if + # this purchase was not made using the standard in-app billing flow. + # Possible values are: + # 0. Test (i.e. purchased from a license testing account) + # 1. Promo (i.e. purchased using a promo code) # Corresponds to the JSON property `purchaseType` # @return [Fixnum] attr_accessor :purchase_type - # Time at which the subscription was granted, in milliseconds since the Epoch. + # Time at which the subscription was granted, in milliseconds + # since the Epoch. # Corresponds to the JSON property `startTimeMillis` # @return [Fixnum] attr_accessor :start_time_millis - # The time at which the subscription was canceled by the user, in milliseconds - # since the epoch. Only present if cancelReason is 0. + # The time at which the subscription was canceled by the user, in + # milliseconds since the epoch. Only present if cancelReason is 0. # Corresponds to the JSON property `userCancellationTimeMillis` # @return [Fixnum] attr_accessor :user_cancellation_time_millis @@ -1866,6 +1730,8 @@ module Google @introductory_price_info = args[:introductory_price_info] if args.key?(:introductory_price_info) @kind = args[:kind] if args.key?(:kind) @linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token) + @obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id) + @obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id) @order_id = args[:order_id] if args.key?(:order_id) @payment_state = args[:payment_state] if args.key?(:payment_state) @price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros) @@ -1881,7 +1747,7 @@ module Google end end - # + # Request for the purchases.subscriptions.acknowledge API. class SubscriptionPurchasesAcknowledgeRequest include Google::Apis::Core::Hashable @@ -1900,12 +1766,12 @@ module Google end end - # + # Request for the purchases.subscriptions.defer API. class SubscriptionPurchasesDeferRequest include Google::Apis::Core::Hashable - # A SubscriptionDeferralInfo contains the data needed to defer a subscription - # purchase to a future expiry time. + # A SubscriptionDeferralInfo contains the data needed to defer a + # subscription purchase to a future expiry time. # Corresponds to the JSON property `deferralInfo` # @return [Google::Apis::AndroidpublisherV3::SubscriptionDeferralInfo] attr_accessor :deferral_info @@ -1920,7 +1786,7 @@ module Google end end - # + # Response for the purchases.subscriptions.defer API. class SubscriptionPurchasesDeferResponse include Google::Apis::Core::Hashable @@ -1939,65 +1805,11 @@ module Google end end - # - class SystemApkVariantsCreateRequest - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `deviceSpec` - # @return [Google::Apis::AndroidpublisherV3::DeviceSpec] - attr_accessor :device_spec - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @device_spec = args[:device_spec] if args.key?(:device_spec) - end - end - - # - class SystemApkVariantsListResponse - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `variants` - # @return [Array] - attr_accessor :variants - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @variants = args[:variants] if args.key?(:variants) - end - end - - # + # The testers of an app. The resource for TestersService. class Testers include Google::Apis::Core::Hashable - # - # Corresponds to the JSON property `autoEnrolledAndroidGroups` - # @return [Array] - attr_accessor :auto_enrolled_android_groups - - # - # Corresponds to the JSON property `autoEnrolledGoogleGroups` - # @return [Array] - attr_accessor :auto_enrolled_google_groups - - # - # Corresponds to the JSON property `excludedGoogleGroups` - # @return [Array] - attr_accessor :excluded_google_groups - - # A list of all Google Groups, as email addresses, that define testers for this - # track. + # All testing Google Groups, as email addresses. # Corresponds to the JSON property `googleGroups` # @return [Array] attr_accessor :google_groups @@ -2008,23 +1820,24 @@ module Google # Update properties of this object def update!(**args) - @auto_enrolled_android_groups = args[:auto_enrolled_android_groups] if args.key?(:auto_enrolled_android_groups) - @auto_enrolled_google_groups = args[:auto_enrolled_google_groups] if args.key?(:auto_enrolled_google_groups) - @excluded_google_groups = args[:excluded_google_groups] if args.key?(:excluded_google_groups) @google_groups = args[:google_groups] if args.key?(:google_groups) end end - # + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970. class Timestamp include Google::Apis::Core::Hashable - # + # Non-negative fractions of a second at nanosecond resolution. + # Must be from 0 to 999,999,999 inclusive. # Corresponds to the JSON property `nanos` # @return [Fixnum] attr_accessor :nanos - # + # Represents seconds of UTC time since Unix epoch. # Corresponds to the JSON property `seconds` # @return [Fixnum] attr_accessor :seconds @@ -2040,11 +1853,20 @@ module Google end end - # + # Pagination information returned by a List operation when token pagination + # is enabled. + # List operations that supports paging return only one "page" of results. This + # protocol buffer message describes the page that has been returned. + # When using token pagination, clients should use the next/previous token + # to get another page of the result. The presence or absence of next/previous + # token indicates whether a next/previous page is available and provides a + # mean of accessing this page. ListRequest.page_token should be set to either + # next_page_token or previous_page_token to access another page. class TokenPagination include Google::Apis::Core::Hashable - # + # Tokens to pass to the standard list field 'page_token'. Whenever available, + # tokens are preferred over manipulating start_index. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -2065,17 +1887,17 @@ module Google end end - # + # A track configuration. The resource for TracksService. class Track include Google::Apis::Core::Hashable - # A list of all active releases in this track during a read request. On an - # update request, it represents desired changes. + # In a read request, represents all active releases in the track. + # In an update request, represents desired changes. # Corresponds to the JSON property `releases` # @return [Array] attr_accessor :releases - # Identifier for this track. + # Identifier of the track. # Corresponds to the JSON property `track` # @return [String] attr_accessor :track @@ -2091,72 +1913,49 @@ module Google end end - # + # A release within a track. class TrackRelease include Google::Apis::Core::Hashable - # - # Corresponds to the JSON property `controls` - # @return [Array] - attr_accessor :controls - - # + # Country targeting specification. # Corresponds to the JSON property `countryTargeting` # @return [Google::Apis::AndroidpublisherV3::CountryTargeting] attr_accessor :country_targeting - # In-app update priority of the release. All newly added APKs in the release - # will be considered at this priority. in_app_update_priority can take values - # between [0, 5]. 5 is the highest priority. Default priority is 0. - # in_app_update_priority can not be updated once the release is rolled out. See - # https://developer.android.com/guide/playcore/in-app-updates. + # In-app update priority of the release. All newly added APKs in the + # release will be considered at this priority. Can take values in the range + # [0, 5], with 5 the highest priority. Defaults to 0. + # in_app_update_priority can not be updated once the release is rolled out. + # See https://developer.android.com/guide/playcore/in-app-updates. # Corresponds to the JSON property `inAppUpdatePriority` # @return [Fixnum] attr_accessor :in_app_update_priority - # The release name, used to identify this release in the Play Console UI. Not - # required to be unique. This is optional, if not set it will be generated from - # the version_name in the APKs. + # The release name. Not required to be unique. If not set, the name is + # generated from the APK's version_name. If the release contains multiple + # APKs, the name is generated from the date. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # - # Corresponds to the JSON property `pinnedVersions` - # @return [Array] - attr_accessor :pinned_versions - - # The description of what is new in the app in this release. + # A description of what is new in this release. # Corresponds to the JSON property `releaseNotes` # @return [Array] attr_accessor :release_notes - # - # Corresponds to the JSON property `rollbackEnabled` - # @return [Boolean] - attr_accessor :rollback_enabled - alias_method :rollback_enabled?, :rollback_enabled - - # - # Corresponds to the JSON property `sampling` - # @return [Google::Apis::AndroidpublisherV3::Sampling] - attr_accessor :sampling - - # The desired status of this release. + # The status of the release. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Fraction of users who are eligible to receive the release. 0 < fraction < 1. - # To be set, release status must be "inProgress" or "halted". + # Fraction of users who are eligible for a staged release. 0 < fraction < 1. + # Can only be set when status is "inProgress" or "halted". # Corresponds to the JSON property `userFraction` # @return [Float] attr_accessor :user_fraction - # A list of all version codes of APKs that will be exposed to the users of this - # track when this release is rolled out. Note that this list should contain all - # versions you wish to be active, including those you wish to retain from - # previous releases. + # Version codes of all APKs in the release. Must include version codes to + # retain from previous releases. # Corresponds to the JSON property `versionCodes` # @return [Array] attr_accessor :version_codes @@ -2167,124 +1966,26 @@ module Google # Update properties of this object def update!(**args) - @controls = args[:controls] if args.key?(:controls) @country_targeting = args[:country_targeting] if args.key?(:country_targeting) @in_app_update_priority = args[:in_app_update_priority] if args.key?(:in_app_update_priority) @name = args[:name] if args.key?(:name) - @pinned_versions = args[:pinned_versions] if args.key?(:pinned_versions) @release_notes = args[:release_notes] if args.key?(:release_notes) - @rollback_enabled = args[:rollback_enabled] if args.key?(:rollback_enabled) - @sampling = args[:sampling] if args.key?(:sampling) @status = args[:status] if args.key?(:status) @user_fraction = args[:user_fraction] if args.key?(:user_fraction) @version_codes = args[:version_codes] if args.key?(:version_codes) end end - # - class TrackReleasePin - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `targetings` - # @return [Array] - attr_accessor :targetings - - # - # Corresponds to the JSON property `versionCodes` - # @return [Array] - attr_accessor :version_codes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @targetings = args[:targetings] if args.key?(:targetings) - @version_codes = args[:version_codes] if args.key?(:version_codes) - end - end - - # - class TrackReleasePinPinTargeting - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `countryCodes` - # @return [Array] - attr_accessor :country_codes - - # - # Corresponds to the JSON property `devices` - # @return [Array] - attr_accessor :devices - - # - # Corresponds to the JSON property `phoneskyVersions` - # @return [Array] - attr_accessor :phonesky_versions - - # - # Corresponds to the JSON property `sdkVersions` - # @return [Array] - attr_accessor :sdk_versions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @country_codes = args[:country_codes] if args.key?(:country_codes) - @devices = args[:devices] if args.key?(:devices) - @phonesky_versions = args[:phonesky_versions] if args.key?(:phonesky_versions) - @sdk_versions = args[:sdk_versions] if args.key?(:sdk_versions) - end - end - - # - class TrackReleasePinPinTargetingDevicePin - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `brand` - # @return [String] - attr_accessor :brand - - # - # Corresponds to the JSON property `device` - # @return [String] - attr_accessor :device - - # - # Corresponds to the JSON property `product` - # @return [String] - attr_accessor :product - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @brand = args[:brand] if args.key?(:brand) - @device = args[:device] if args.key?(:device) - @product = args[:product] if args.key?(:product) - end - end - - # + # Response listing all tracks. class TracksListResponse include Google::Apis::Core::Hashable - # Identifies what kind of resource this is. Value: the fixed string " - # androidpublisher#tracksListResponse". + # The kind of this response ("androidpublisher#tracksListResponse"). # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # + # All tracks. # Corresponds to the JSON property `tracks` # @return [Array] attr_accessor :tracks @@ -2300,24 +2001,24 @@ module Google end end - # + # User entry from conversation between user and developer. class UserComment include Google::Apis::Core::Hashable - # Integer Android SDK version of the user's device at the time the review was - # written, e.g. 23 is Marshmallow. May be absent. + # Integer Android SDK version of the user's device at the time the + # review was written, e.g. 23 is Marshmallow. May be absent. # Corresponds to the JSON property `androidOsVersion` # @return [Fixnum] attr_accessor :android_os_version - # Integer version code of the app as installed at the time the review was - # written. May be absent. + # Integer version code of the app as installed at the time the + # review was written. May be absent. # Corresponds to the JSON property `appVersionCode` # @return [Fixnum] attr_accessor :app_version_code - # String version name of the app as installed at the time the review was written. - # May be absent. + # String version name of the app as installed at the time the + # review was written. May be absent. # Corresponds to the JSON property `appVersionName` # @return [String] attr_accessor :app_version_name @@ -2327,24 +2028,28 @@ module Google # @return [String] attr_accessor :device - # Some information about the characteristics of the user's device + # Characteristics of the user's device. # Corresponds to the JSON property `deviceMetadata` # @return [Google::Apis::AndroidpublisherV3::DeviceMetadata] attr_accessor :device_metadata - # The last time at which this comment was updated. + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970. # Corresponds to the JSON property `lastModified` # @return [Google::Apis::AndroidpublisherV3::Timestamp] attr_accessor :last_modified - # Untranslated text of the review, in the case where the review has been - # translated. If the review has not been translated this is left blank. + # Untranslated text of the review, where the review was translated. + # If the review was not translated this is left blank. # Corresponds to the JSON property `originalText` # @return [String] attr_accessor :original_text - # Language code for the reviewer. This is taken from the device settings so is - # not guaranteed to match the language the review is written in. May be absent. + # Language code for the reviewer. This is taken from the device + # settings so is not guaranteed to match the language the review + # is written in. May be absent. # Corresponds to the JSON property `reviewerLanguage` # @return [String] attr_accessor :reviewer_language @@ -2354,19 +2059,20 @@ module Google # @return [Fixnum] attr_accessor :star_rating - # The content of the comment, i.e. review body. In some cases users have been - # able to write a review with separate title and body; in those cases the title - # and body are concatenated and separated by a tab character. + # The content of the comment, i.e. review body. In some cases + # users have been able to write a review with separate title and + # body; in those cases the title and body are concatenated and + # separated by a tab character. # Corresponds to the JSON property `text` # @return [String] attr_accessor :text - # Number of users who have given this review a thumbs down + # Number of users who have given this review a thumbs down. # Corresponds to the JSON property `thumbsDownCount` # @return [Fixnum] attr_accessor :thumbs_down_count - # Number of users who have given this review a thumbs up + # Number of users who have given this review a thumbs up. # Corresponds to the JSON property `thumbsUpCount` # @return [Fixnum] attr_accessor :thumbs_up_count @@ -2392,19 +2098,20 @@ module Google end end - # Represents the variant of a generated system APK from an uploaded App Bundle. - class Variant + # A permission used by this APK. + class UsesPermission include Google::Apis::Core::Hashable - # - # Corresponds to the JSON property `deviceSpec` - # @return [Google::Apis::AndroidpublisherV3::DeviceSpec] - attr_accessor :device_spec - - # - # Corresponds to the JSON property `variantId` + # Optionally, the maximum SDK version for which the permission is + # required. + # Corresponds to the JSON property `maxSdkVersion` # @return [Fixnum] - attr_accessor :variant_id + attr_accessor :max_sdk_version + + # The name of the permission requested. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name def initialize(**args) update!(**args) @@ -2412,17 +2119,18 @@ module Google # Update properties of this object def update!(**args) - @device_spec = args[:device_spec] if args.key?(:device_spec) - @variant_id = args[:variant_id] if args.key?(:variant_id) + @max_sdk_version = args[:max_sdk_version] if args.key?(:max_sdk_version) + @name = args[:name] if args.key?(:name) end end - # A VoidedPurchase resource indicates a purchase that was either canceled/ - # refunded/charged-back. + # A VoidedPurchase resource indicates a purchase that was either + # canceled/refunded/charged-back. class VoidedPurchase include Google::Apis::Core::Hashable - # This kind represents a voided purchase object in the androidpublisher service. + # This kind represents a voided purchase object in the androidpublisher + # service. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2433,42 +2141,42 @@ module Google # @return [String] attr_accessor :order_id - # The time at which the purchase was made, in milliseconds since the epoch (Jan - # 1, 1970). + # The time at which the purchase was made, in milliseconds since the + # epoch (Jan 1, 1970). # Corresponds to the JSON property `purchaseTimeMillis` # @return [Fixnum] attr_accessor :purchase_time_millis - # The token which uniquely identifies a one-time purchase or subscription. To - # uniquely identify subscription renewals use order_id (available starting from - # version 3 of the API). + # The token which uniquely identifies a one-time purchase or subscription. + # To uniquely identify subscription renewals use order_id (available + # starting from version 3 of the API). # Corresponds to the JSON property `purchaseToken` # @return [String] attr_accessor :purchase_token # The reason why the purchase was voided, possible values are: - # - Other - # - Remorse - # - Not_received - # - Defective - # - Accidental_purchase - # - Fraud - # - Friendly_fraud - # - Chargeback + # 0. Other + # 1. Remorse + # 2. Not_received + # 3. Defective + # 4. Accidental_purchase + # 5. Fraud + # 6. Friendly_fraud + # 7. Chargeback # Corresponds to the JSON property `voidedReason` # @return [Fixnum] attr_accessor :voided_reason # The initiator of voided purchase, possible values are: - # - User - # - Developer - # - Google + # 0. User + # 1. Developer + # 2. Google # Corresponds to the JSON property `voidedSource` # @return [Fixnum] attr_accessor :voided_source - # The time at which the purchase was canceled/refunded/charged-back, in - # milliseconds since the epoch (Jan 1, 1970). + # The time at which the purchase was canceled/refunded/charged-back, + # in milliseconds since the epoch (Jan 1, 1970). # Corresponds to the JSON property `voidedTimeMillis` # @return [Fixnum] attr_accessor :voided_time_millis @@ -2489,16 +2197,26 @@ module Google end end - # + # Response for the voidedpurchases.list API. class VoidedPurchasesListResponse include Google::Apis::Core::Hashable - # + # 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::AndroidpublisherV3::PageInfo] attr_accessor :page_info - # + # Pagination information returned by a List operation when token pagination + # is enabled. + # List operations that supports paging return only one "page" of results. This + # protocol buffer message describes the page that has been returned. + # When using token pagination, clients should use the next/previous token + # to get another page of the result. The presence or absence of next/previous + # token indicates whether a next/previous page is available and provides a + # mean of accessing this page. ListRequest.page_token should be set to either + # next_page_token or previous_page_token to access another page. # Corresponds to the JSON property `tokenPagination` # @return [Google::Apis::AndroidpublisherV3::TokenPagination] attr_accessor :token_pagination diff --git a/generated/google/apis/androidpublisher_v3/representations.rb b/generated/google/apis/androidpublisher_v3/representations.rb index b735ac259..8367dfef8 100644 --- a/generated/google/apis/androidpublisher_v3/representations.rb +++ b/generated/google/apis/androidpublisher_v3/representations.rb @@ -82,12 +82,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Control - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CountryTargeting class Representation < Google::Apis::Core::JsonRepresentation; end @@ -118,12 +112,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DeviceSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ExpansionFile class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,12 +130,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ExternallyHostedApkUsesPermission - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Image class Representation < Google::Apis::Core::JsonRepresentation; end @@ -220,12 +202,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ModRange - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class PageInfo class Representation < Google::Apis::Core::JsonRepresentation; end @@ -280,24 +256,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Sampling - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StratifiedSampling - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Stratum - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SubscriptionCancelSurveyResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -340,18 +298,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SystemApkVariantsCreateRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SystemApkVariantsListResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Testers class Representation < Google::Apis::Core::JsonRepresentation; end @@ -382,24 +328,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TrackReleasePin - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TrackReleasePinPinTargeting - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TrackReleasePinPinTargetingDevicePin - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class TracksListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -412,7 +340,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Variant + class UsesPermission class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -435,8 +363,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :binary, as: 'binary', class: Google::Apis::AndroidpublisherV3::ApkBinary, decorator: Google::Apis::AndroidpublisherV3::ApkBinary::Representation - property :test_binary, as: 'testBinary', class: Google::Apis::AndroidpublisherV3::ApkBinary, decorator: Google::Apis::AndroidpublisherV3::ApkBinary::Representation - property :version_code, as: 'versionCode' end end @@ -520,17 +446,6 @@ module Google end end - class Control - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :mod_ranges, as: 'modRanges', class: Google::Apis::AndroidpublisherV3::ModRange, decorator: Google::Apis::AndroidpublisherV3::ModRange::Representation - - collection :stratified_samplings, as: 'stratifiedSamplings', class: Google::Apis::AndroidpublisherV3::StratifiedSampling, decorator: Google::Apis::AndroidpublisherV3::StratifiedSampling::Representation - - collection :version_codes, as: 'versionCodes' - end - end - class CountryTargeting # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -580,15 +495,6 @@ module Google end end - class DeviceSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :screen_density, as: 'screenDensity' - collection :supported_abis, as: 'supportedAbis' - collection :supported_locales, as: 'supportedLocales' - end - end - class ExpansionFile # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -620,21 +526,13 @@ module Google collection :native_codes, as: 'nativeCodes' property :package_name, as: 'packageName' collection :uses_features, as: 'usesFeatures' - collection :uses_permissions, as: 'usesPermissions', class: Google::Apis::AndroidpublisherV3::ExternallyHostedApkUsesPermission, decorator: Google::Apis::AndroidpublisherV3::ExternallyHostedApkUsesPermission::Representation + collection :uses_permissions, as: 'usesPermissions', class: Google::Apis::AndroidpublisherV3::UsesPermission, decorator: Google::Apis::AndroidpublisherV3::UsesPermission::Representation property :version_code, as: 'versionCode' property :version_name, as: 'versionName' end end - class ExternallyHostedApkUsesPermission - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :max_sdk_version, as: 'maxSdkVersion' - property :name, as: 'name' - end - end - class Image # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -682,7 +580,6 @@ module Google hash :prices, as: 'prices', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation property :purchase_type, as: 'purchaseType' - property :resubscribe_eligibility, as: 'resubscribeEligibility' property :sku, as: 'sku' property :status, as: 'status' property :subscription_period, as: 'subscriptionPeriod' @@ -759,14 +656,6 @@ module Google end end - class ModRange - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end, :numeric_string => true, as: 'end' - property :start, :numeric_string => true, as: 'start' - end - end - class PageInfo # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -791,6 +680,8 @@ module Google property :consumption_state, as: 'consumptionState' property :developer_payload, as: 'developerPayload' property :kind, as: 'kind' + property :obfuscated_external_account_id, as: 'obfuscatedExternalAccountId' + property :obfuscated_external_profile_id, as: 'obfuscatedExternalProfileId' property :order_id, as: 'orderId' property :product_id, as: 'productId' property :purchase_state, as: 'purchaseState' @@ -854,36 +745,6 @@ module Google end end - class Sampling - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :mod_ranges, as: 'modRanges', class: Google::Apis::AndroidpublisherV3::ModRange, decorator: Google::Apis::AndroidpublisherV3::ModRange::Representation - - property :modulus, :numeric_string => true, as: 'modulus' - property :salt, as: 'salt' - collection :stratified_samplings, as: 'stratifiedSamplings', class: Google::Apis::AndroidpublisherV3::StratifiedSampling, decorator: Google::Apis::AndroidpublisherV3::StratifiedSampling::Representation - - property :use_android_id, as: 'useAndroidId' - end - end - - class StratifiedSampling - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :mod_ranges, as: 'modRanges', class: Google::Apis::AndroidpublisherV3::ModRange, decorator: Google::Apis::AndroidpublisherV3::ModRange::Representation - - property :stratum, as: 'stratum', class: Google::Apis::AndroidpublisherV3::Stratum, decorator: Google::Apis::AndroidpublisherV3::Stratum::Representation - - end - end - - class Stratum - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :brand, as: 'brand' - end - end - class SubscriptionCancelSurveyResult # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -929,6 +790,8 @@ module Google property :kind, as: 'kind' property :linked_purchase_token, as: 'linkedPurchaseToken' + property :obfuscated_external_account_id, as: 'obfuscatedExternalAccountId' + property :obfuscated_external_profile_id, as: 'obfuscatedExternalProfileId' property :order_id, as: 'orderId' property :payment_state, as: 'paymentState' property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros' @@ -967,28 +830,9 @@ module Google end end - class SystemApkVariantsCreateRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :device_spec, as: 'deviceSpec', class: Google::Apis::AndroidpublisherV3::DeviceSpec, decorator: Google::Apis::AndroidpublisherV3::DeviceSpec::Representation - - end - end - - class SystemApkVariantsListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :variants, as: 'variants', class: Google::Apis::AndroidpublisherV3::Variant, decorator: Google::Apis::AndroidpublisherV3::Variant::Representation - - end - end - class Testers # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :auto_enrolled_android_groups, as: 'autoEnrolledAndroidGroups' - collection :auto_enrolled_google_groups, as: 'autoEnrolledGoogleGroups' - collection :excluded_google_groups, as: 'excludedGoogleGroups' collection :google_groups, as: 'googleGroups' end end @@ -1021,54 +865,18 @@ module Google class TrackRelease # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :controls, as: 'controls', class: Google::Apis::AndroidpublisherV3::Control, decorator: Google::Apis::AndroidpublisherV3::Control::Representation - property :country_targeting, as: 'countryTargeting', class: Google::Apis::AndroidpublisherV3::CountryTargeting, decorator: Google::Apis::AndroidpublisherV3::CountryTargeting::Representation property :in_app_update_priority, as: 'inAppUpdatePriority' property :name, as: 'name' - collection :pinned_versions, as: 'pinnedVersions', class: Google::Apis::AndroidpublisherV3::TrackReleasePin, decorator: Google::Apis::AndroidpublisherV3::TrackReleasePin::Representation - collection :release_notes, as: 'releaseNotes', class: Google::Apis::AndroidpublisherV3::LocalizedText, decorator: Google::Apis::AndroidpublisherV3::LocalizedText::Representation - property :rollback_enabled, as: 'rollbackEnabled' - property :sampling, as: 'sampling', class: Google::Apis::AndroidpublisherV3::Sampling, decorator: Google::Apis::AndroidpublisherV3::Sampling::Representation - property :status, as: 'status' property :user_fraction, as: 'userFraction' collection :version_codes, as: 'versionCodes' end end - class TrackReleasePin - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :targetings, as: 'targetings', class: Google::Apis::AndroidpublisherV3::TrackReleasePinPinTargeting, decorator: Google::Apis::AndroidpublisherV3::TrackReleasePinPinTargeting::Representation - - collection :version_codes, as: 'versionCodes' - end - end - - class TrackReleasePinPinTargeting - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :country_codes, as: 'countryCodes' - collection :devices, as: 'devices', class: Google::Apis::AndroidpublisherV3::TrackReleasePinPinTargetingDevicePin, decorator: Google::Apis::AndroidpublisherV3::TrackReleasePinPinTargetingDevicePin::Representation - - collection :phonesky_versions, as: 'phoneskyVersions' - collection :sdk_versions, as: 'sdkVersions' - end - end - - class TrackReleasePinPinTargetingDevicePin - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :brand, as: 'brand' - property :device, as: 'device' - property :product, as: 'product' - end - end - class TracksListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1098,12 +906,11 @@ module Google end end - class Variant + class UsesPermission # @private class Representation < Google::Apis::Core::JsonRepresentation - property :device_spec, as: 'deviceSpec', class: Google::Apis::AndroidpublisherV3::DeviceSpec, decorator: Google::Apis::AndroidpublisherV3::DeviceSpec::Representation - - property :variant_id, as: 'variantId' + property :max_sdk_version, as: 'maxSdkVersion' + property :name, as: 'name' end end diff --git a/generated/google/apis/androidpublisher_v3/service.rb b/generated/google/apis/androidpublisher_v3/service.rb index 3034df257..ea1e9db5f 100644 --- a/generated/google/apis/androidpublisher_v3/service.rb +++ b/generated/google/apis/androidpublisher_v3/service.rb @@ -20,9 +20,9 @@ require 'google/apis/errors' module Google module Apis module AndroidpublisherV3 - # Google Play Developer API + # Google Play Android Developer API # - # Accesses Android application developers' Google Play accounts. + # Lets Android application developers access their Google Play accounts. # # @example # require 'google/apis/androidpublisher_v3' @@ -38,32 +38,25 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'androidpublisher/v3/applications/') - @batch_path = 'batch/androidpublisher/v3' + super('https://www.googleapis.com/', '') + @batch_path = 'batch/androidpublisher' end - # Commits/applies the changes made in this edit back to the app. + # Commits an app edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -76,33 +69,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 commit_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/edits/{editId}:commit', options) + def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}:commit', options) command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation command.response_class = Google::Apis::AndroidpublisherV3::AppEdit command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Deletes an edit for an app. Creating a new edit will automatically delete any - # of your previous edits so this method need only be called if you want to - # preemptively abandon an edit. + # Deletes an app edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -115,30 +102,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 delete_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{packageName}/edits/{editId}', options) + def delete_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 information about the edit specified. Calls will fail if the edit is - # no long active (e.g. has been deleted, superseded or expired). + # Gets an app edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -151,30 +133,26 @@ 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_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}', options) + def get_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}', options) command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation command.response_class = Google::Apis::AndroidpublisherV3::AppEdit command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 edit for an app, populated with the app's current state. + # Creates a new edit for an app. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [Google::Apis::AndroidpublisherV3::AppEdit] app_edit_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 # @@ -187,8 +165,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_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/edits', options) + def insert_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits', options) command.request_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation command.request_object = app_edit_object command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation @@ -196,24 +174,19 @@ module Google command.params['packageName'] = package_name unless package_name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Checks that the edit can be successfully committed. The edit's changes are not - # applied to the live app. + # Validates an app edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -226,35 +199,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 validate_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/edits/{editId}:validate', options) + def validate_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}:validate', options) command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation command.response_class = Google::Apis::AndroidpublisherV3::AppEdit command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 APK without uploading the APK itself to Google Play, instead # hosting the APK at a specified URL. This function is only available to - # enterprises using Google Play for Work whose application is configured to - # restrict distribution to the enterprise domain. + # organizations using Managed Play whose application is configured to + # restrict distribution to the organizations. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedRequest] apks_add_externally_hosted_request_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 # @@ -267,8 +236,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 addexternallyhosted_edit_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options) + def addexternallyhosted_edit_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted', options) command.request_representation = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedRequest::Representation command.request_object = apks_add_externally_hosted_request_object command.response_representation = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse::Representation @@ -277,23 +246,19 @@ module Google command.params['editId'] = edit_id unless edit_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 current APKs of the app and edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -306,31 +271,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 list_edit_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/apks', options) + def list_edit_apks(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks', options) command.response_representation = Google::Apis::AndroidpublisherV3::ApksListResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::ApksListResponse command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 - # + # Uploads an APK and adds to the current edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 [IO, String] upload_source # IO stream or filename containing content to upload # @param [String] content_type @@ -347,11 +308,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 upload_edit_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def upload_edit_apk(package_name, edit_id, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks', options) else - command = make_upload_command(:post, '{packageName}/edits/{editId}/apks', options) + command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -361,23 +322,19 @@ module Google command.params['editId'] = edit_id unless edit_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 current Android App Bundles of the app and edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -390,39 +347,38 @@ 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_edit_bundles(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/bundles', options) + def list_edit_bundles(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', options) command.response_representation = Google::Apis::AndroidpublisherV3::BundlesListResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::BundlesListResponse command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 - # Uploads a new Android App Bundle to this edit. If you are using the Google API - # client libraries, please increase the timeout of the http request before - # calling this endpoint (a timeout of 2 minutes is recommended). See: https:// - # developers.google.com/api-client-library/java/google-api-java-client/errors + # Uploads a new Android App Bundle to this edit. + # If you are using the Google API client libraries, please increase the + # timeout of the http request before calling this endpoint + # (a timeout of 2 minutes is recommended). + # See [Timeouts and + # Errors](https://developers.google.com/api-client-library/java/google-api-java- + # client/errors) # for an example in java. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [Boolean] ack_bundle_installation_warning - # Must be set to true if the bundle installation may trigger a warning on user - # devices (for example, if installation size may be over a threshold, typically - # 100 MB). + # Must be set to true if the bundle installation may trigger a warning on + # user devices (for example, if installation size may be over a threshold, + # typically 100 MB). # @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 [IO, String] upload_source # IO stream or filename containing content to upload # @param [String] content_type @@ -439,11 +395,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 upload_edit_bundle(package_name, edit_id, ack_bundle_installation_warning: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def upload_edit_bundle(package_name, edit_id, ack_bundle_installation_warning: nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:post, '{packageName}/edits/{editId}/bundles', options) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', options) else - command = make_upload_command(:post, '{packageName}/edits/{editId}/bundles', options) + command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -454,28 +410,24 @@ module Google command.query['ackBundleInstallationWarning'] = ack_bundle_installation_warning unless ack_bundle_installation_warning.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 - # Uploads the deobfuscation file of the specified APK. If a deobfuscation or - # symbolication file already exists, it will be replaced. See https://developer. - # android.com/studio/build/shrink-code to learn more about deobfuscation files. + # Uploads a new deobfuscation file and attaches to the specified APK. # @param [String] package_name - # Unique identifier of the Android app for which the deobfuscation files are - # being uploaded; for example, "com.spiffygame". + # Unique identifier for the Android app. # @param [String] edit_id # Unique identifier for this edit. # @param [Fixnum] apk_version_code - # The version code of the APK whose deobfuscation file is being uploaded. + # The version code of the APK whose Deobfuscation File is being + # uploaded. # @param [String] deobfuscation_file_type + # The type of the deobfuscation file. # @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 [IO, String] upload_source # IO stream or filename containing content to upload # @param [String] content_type @@ -492,11 +444,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 upload_edit_deobfuscationfile(package_name, edit_id, apk_version_code, deobfuscation_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def upload_edit_deobfuscationfile(package_name, edit_id, apk_version_code, deobfuscation_file_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options) else - command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options) + command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -508,24 +460,19 @@ module Google command.params['deobfuscationFileType'] = deobfuscation_file_type unless deobfuscation_file_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 - # Fetches app details for this edit. This includes the default language and - # developer support contact information. + # Gets details of an app. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -538,32 +485,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_edit_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/details', options) + def get_edit_detail(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', options) command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation command.response_class = Google::Apis::AndroidpublisherV3::AppDetails command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 app details for this edit. This method supports patch semantics. + # Patches details of an app. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [Google::Apis::AndroidpublisherV3::AppDetails] app_details_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 # @@ -576,8 +519,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 patch_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options) + def patch_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', options) command.request_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation command.request_object = app_details_object command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation @@ -586,24 +529,20 @@ module Google command.params['editId'] = edit_id unless edit_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 app details for this edit. + # Updates details of an app. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [Google::Apis::AndroidpublisherV3::AppDetails] app_details_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 # @@ -616,8 +555,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_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{packageName}/edits/{editId}/details', options) + def update_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', options) command.request_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation command.request_object = app_details_object command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation @@ -626,27 +565,24 @@ module Google command.params['editId'] = edit_id unless edit_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 - # Fetches the Expansion File configuration for the APK specified. + # Fetches the expansion file configuration for the specified APK. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [Fixnum] apk_version_code - # The version code of the APK whose Expansion File configuration is being read - # or modified. + # The version code of the APK whose expansion file configuration is being + # read or modified. # @param [String] expansion_file_type + # The file type of the file configuration which is being read or modified. # @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 # @@ -659,8 +595,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_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + def get_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile command.params['packageName'] = package_name unless package_name.nil? @@ -669,30 +605,27 @@ module Google command.params['expansionFileType'] = expansion_file_type unless expansion_file_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 - # Updates the APK's Expansion File configuration to reference another APK's - # Expansion Files. To add a new Expansion File use the Upload method. This - # method supports patch semantics. + # Patches the APK's expansion file configuration to reference another APK's + # expansion file. + # To add a new expansion file use the Upload method. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [Fixnum] apk_version_code - # The version code of the APK whose Expansion File configuration is being read - # or modified. + # The version code of the APK whose expansion file configuration is being + # read or modified. # @param [String] expansion_file_type + # The file type of the expansion file configuration which is being updated. # @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_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 # @@ -705,8 +638,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 patch_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + def patch_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command.request_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation command.request_object = expansion_file_object command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation @@ -717,29 +650,27 @@ module Google command.params['expansionFileType'] = expansion_file_type unless expansion_file_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 - # Updates the APK's Expansion File configuration to reference another APK's - # Expansion Files. To add a new Expansion File use the Upload method. + # Updates the APK's expansion file configuration to reference another APK's + # expansion file. + # To add a new expansion file use the Upload method. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [Fixnum] apk_version_code - # The version code of the APK whose Expansion File configuration is being read - # or modified. + # The version code of the APK whose expansion file configuration is being + # read or modified. # @param [String] expansion_file_type + # The file type of the file configuration which is being read or modified. # @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_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 # @@ -752,8 +683,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_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + def update_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command.request_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation command.request_object = expansion_file_object command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation @@ -764,27 +695,24 @@ module Google command.params['expansionFileType'] = expansion_file_type unless expansion_file_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 - # Uploads and attaches a new Expansion File to the APK specified. + # Uploads a new expansion file and attaches to the specified APK. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [Fixnum] apk_version_code - # The version code of the APK whose Expansion File configuration is being read - # or modified. + # The version code of the APK whose expansion file configuration is being + # read or modified. # @param [String] expansion_file_type + # The file type of the expansion file configuration which is being updated. # @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 [IO, String] upload_source # IO stream or filename containing content to upload # @param [String] content_type @@ -801,11 +729,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 upload_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def upload_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) else - command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -817,30 +745,26 @@ module Google command.params['expansionFileType'] = expansion_file_type unless expansion_file_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 # Deletes the image (specified by id) from the edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] language - # The language code (a BCP-47 language tag) of the localized listing whose - # images are to read or modified. For example, to select Austrian German, pass " - # de-AT". + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). # @param [String] image_type + # Type of the Image. # @param [String] image_id # Unique identifier an image within the set of images attached to this edit. # @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 # @@ -853,8 +777,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 delete_edit_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options) + def delete_edit_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.params['language'] = language unless language.nil? @@ -862,28 +786,27 @@ module Google command.params['imageId'] = image_id unless image_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deletes all images for the specified language and image type. + # Returns an empty response if no images are found. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] language - # The language code (a BCP-47 language tag) of the localized listing whose - # images are to read or modified. For example, to select Austrian German, pass " - # de-AT". + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). + # Providing a language that is not supported by the App is a no-op. # @param [String] image_type + # Type of the Image. + # Providing an image type that refers to no images is a no-op. # @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 # @@ -896,8 +819,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 deleteall_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) + def deleteall_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options) command.response_representation = Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse command.params['packageName'] = package_name unless package_name.nil? @@ -906,28 +829,26 @@ module Google command.params['imageType'] = image_type unless image_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 - # Lists all images for the specified language and image type. + # Lists all images. The response may be empty. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] language - # The language code (a BCP-47 language tag) of the localized listing whose - # images are to read or modified. For example, to select Austrian German, pass " - # de-AT". + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). + # There must be a store listing for the specified language. # @param [String] image_type + # Type of the Image. Providing an image type that refers to no images will + # return an empty response. # @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 # @@ -940,8 +861,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_edit_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) + def list_edit_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options) command.response_representation = Google::Apis::AndroidpublisherV3::ImagesListResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::ImagesListResponse command.params['packageName'] = package_name unless package_name.nil? @@ -950,29 +871,26 @@ module Google command.params['imageType'] = image_type unless image_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 - # Uploads a new image and adds it to the list of images for the specified - # language and image type. + # Uploads an image of the specified language and image type, and adds to the + # edit. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] language - # The language code (a BCP-47 language tag) of the localized listing whose - # images are to read or modified. For example, to select Austrian German, pass " - # de-AT". + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). + # Providing a language that is not supported by the App is a no-op. # @param [String] image_type + # Type of the Image. # @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 [IO, String] upload_source # IO stream or filename containing content to upload # @param [String] content_type @@ -989,11 +907,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 upload_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def upload_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options) else - command = make_upload_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) + command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1005,26 +923,22 @@ module Google command.params['imageType'] = image_type unless image_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 - # Deletes the specified localized store listing from an edit. + # Deletes a localized store listing. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] language - # The language code (a BCP-47 language tag) of the localized listing to read or - # modify. For example, to select Austrian German, pass "de-AT". + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). # @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 # @@ -1037,30 +951,26 @@ 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_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options) + def delete_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.params['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 - # Deletes all localized listings from an edit. + # Deletes all store listings. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -1073,32 +983,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 deleteall_edit_listing(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options) + def deleteall_edit_listing(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings', options) command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 - # Fetches information about a localized store listing. + # Gets a localized store listing. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] language - # The language code (a BCP-47 language tag) of the localized listing to read or - # modify. For example, to select Austrian German, pass "de-AT". + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). # @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 # @@ -1111,8 +1017,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_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options) + def get_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', options) command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation command.response_class = Google::Apis::AndroidpublisherV3::Listing command.params['packageName'] = package_name unless package_name.nil? @@ -1120,23 +1026,19 @@ module Google command.params['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 - # Returns all of the localized store listings attached to this edit. + # Lists all localized store listings. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -1149,36 +1051,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 list_edit_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options) + def list_edit_listings(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings', options) command.response_representation = Google::Apis::AndroidpublisherV3::ListingsListResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::ListingsListResponse command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 or updates a localized store listing. This method supports patch - # semantics. + # Patches a localized store listing. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] language - # The language code (a BCP-47 language tag) of the localized listing to read or - # modify. For example, to select Austrian German, pass "de-AT". + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). # @param [Google::Apis::AndroidpublisherV3::Listing] listing_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 # @@ -1191,8 +1088,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 patch_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options) + def patch_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', options) command.request_representation = Google::Apis::AndroidpublisherV3::Listing::Representation command.request_object = listing_object command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation @@ -1202,27 +1099,23 @@ module Google command.params['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 # Creates or updates a localized store listing. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] language - # The language code (a BCP-47 language tag) of the localized listing to read or - # modify. For example, to select Austrian German, pass "de-AT". + # Language localization code (a BCP-47 language tag; for example, "de-AT" + # for Austrian German). # @param [Google::Apis::AndroidpublisherV3::Listing] listing_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 # @@ -1235,8 +1128,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_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options) + def update_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', options) command.request_representation = Google::Apis::AndroidpublisherV3::Listing::Representation command.request_object = listing_object command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation @@ -1246,25 +1139,21 @@ module Google command.params['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 - # + # Gets testers. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] track - # The track to read or modify. + # The track to read from. # @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 # @@ -1277,8 +1166,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_edit_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options) + def get_edit_tester(package_name, edit_id, track, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', options) command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation command.response_class = Google::Apis::AndroidpublisherV3::Testers command.params['packageName'] = package_name unless package_name.nil? @@ -1286,26 +1175,22 @@ module Google command.params['track'] = track unless track.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 - # + # Patches testers. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] track - # The track to read or modify. + # The track to update. # @param [Google::Apis::AndroidpublisherV3::Testers] testers_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 # @@ -1318,8 +1203,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 patch_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options) + def patch_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', options) command.request_representation = Google::Apis::AndroidpublisherV3::Testers::Representation command.request_object = testers_object command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation @@ -1329,26 +1214,22 @@ module Google command.params['track'] = track unless track.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 testers. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] track - # The track to read or modify. + # The track to update. # @param [Google::Apis::AndroidpublisherV3::Testers] testers_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 # @@ -1361,8 +1242,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_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options) + def update_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', options) command.request_representation = Google::Apis::AndroidpublisherV3::Testers::Representation command.request_object = testers_object command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation @@ -1372,26 +1253,21 @@ module Google command.params['track'] = track unless track.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 - # Fetches the track configuration for the specified track type. Includes the APK - # version codes that are in this track. + # Gets a track. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] track - # The track to read or modify. + # Identifier of the track. # @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 # @@ -1404,8 +1280,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_edit_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options) + def get_edit_track(package_name, edit_id, track, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', options) command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation command.response_class = Google::Apis::AndroidpublisherV3::Track command.params['packageName'] = package_name unless package_name.nil? @@ -1413,23 +1289,19 @@ module Google command.params['track'] = track unless track.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 track configurations for this edit. + # Lists all tracks. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @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 # @@ -1442,35 +1314,30 @@ 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_edit_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options) + def list_edit_tracks(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks', options) command.response_representation = Google::Apis::AndroidpublisherV3::TracksListResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::TracksListResponse command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_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 track configuration for the specified track type. This method - # supports patch semantics. + # Patches a track. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] track - # The track to read or modify. + # Identifier of the track. # @param [Google::Apis::AndroidpublisherV3::Track] track_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 # @@ -1483,8 +1350,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 patch_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options) + def patch_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', options) command.request_representation = Google::Apis::AndroidpublisherV3::Track::Representation command.request_object = track_object command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation @@ -1494,26 +1361,22 @@ module Google command.params['track'] = track unless track.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 track configuration for the specified track type. + # Updates a track. # @param [String] package_name - # Unique identifier for the Android app that is being updated; for example, "com. - # spiffygame". + # Package name of the app. # @param [String] edit_id - # Unique identifier for this edit. + # Identifier of the edit. # @param [String] track - # The track to read or modify. + # Identifier of the track. # @param [Google::Apis::AndroidpublisherV3::Track] track_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 # @@ -1526,8 +1389,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_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options) + def update_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', options) command.request_representation = Google::Apis::AndroidpublisherV3::Track::Representation command.request_object = track_object command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation @@ -1537,23 +1400,19 @@ module Google command.params['track'] = track unless track.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 - # Delete an in-app product for an app. + # Deletes an in-app product (i.e. a managed product or a subscriptions). # @param [String] package_name - # Unique identifier for the Android app with the in-app product; for example, " - # com.spiffygame". + # Package name of the app. # @param [String] sku # Unique identifier for the in-app product. # @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 # @@ -1566,27 +1425,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 delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options) + def delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options) command.params['packageName'] = package_name unless package_name.nil? command.params['sku'] = sku unless sku.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 information about the in-app product specified. + # Gets an in-app product, which can be a managed product or a subscription. # @param [String] package_name + # Package name of the app. # @param [String] sku # Unique identifier for the in-app product. # @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 # @@ -1599,33 +1456,30 @@ 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_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options) + def get_inappproduct(package_name, sku, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options) command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct command.params['packageName'] = package_name unless package_name.nil? command.params['sku'] = sku unless sku.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 in-app product for an app. + # Creates an in-app product (i.e. a managed product or a subscriptions). # @param [String] package_name - # Unique identifier for the Android app; for example, "com.spiffygame". + # Package name of the app. # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object # @param [Boolean] auto_convert_missing_prices - # If true the prices for all regions targeted by the parent app that don't have - # a price specified for this in-app product will be auto converted to the target - # currency based on the default price. Defaults to false. + # If true the prices for all regions targeted by the parent app that don't + # have a price specified for this in-app product will be auto converted to + # the target currency based on the default price. Defaults to false. # @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 # @@ -1638,8 +1492,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_inappproduct(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/inappproducts', options) + def insert_inappproduct(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/inappproducts', options) command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation command.request_object = in_app_product_object command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation @@ -1648,25 +1502,23 @@ module Google command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.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 - # List all the in-app products for an Android app, both subscriptions and - # managed in-app products.. + # Lists all in-app products - both managed products and subscriptions. # @param [String] package_name - # Unique identifier for the Android app with in-app products; for example, "com. - # spiffygame". + # Package name of the app. # @param [Fixnum] max_results + # How many results the list operation should return. # @param [Fixnum] start_index + # The index of the first element to return. # @param [String] token + # Pagination token. If empty, list starts at the first product. # @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 # @@ -1679,8 +1531,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_inappproducts(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/inappproducts', options) + def list_inappproducts(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/inappproducts', options) command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsListResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::InappproductsListResponse command.params['packageName'] = package_name unless package_name.nil? @@ -1689,28 +1541,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 - # Updates the details of an in-app product. This method supports patch semantics. + # Patches an in-app product (i.e. a managed product or a subscriptions). # @param [String] package_name - # Unique identifier for the Android app with the in-app product; for example, " - # com.spiffygame". + # Package name of the app. # @param [String] sku # Unique identifier for the in-app product. # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object # @param [Boolean] auto_convert_missing_prices - # If true the prices for all regions targeted by the parent app that don't have - # a price specified for this in-app product will be auto converted to the target - # currency based on the default price. Defaults to false. + # If true the prices for all regions targeted by the parent app that don't + # have a price specified for this in-app product will be auto converted to + # the target currency based on the default price. Defaults to false. # @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 # @@ -1723,8 +1571,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 patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options) + def patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options) command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation command.request_object = in_app_product_object command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation @@ -1734,28 +1582,24 @@ module Google command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.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 in-app product. + # Updates an in-app product (i.e. a managed product or a subscriptions). # @param [String] package_name - # Unique identifier for the Android app with the in-app product; for example, " - # com.spiffygame". + # Package name of the app. # @param [String] sku # Unique identifier for the in-app product. # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object # @param [Boolean] auto_convert_missing_prices - # If true the prices for all regions targeted by the parent app that don't have - # a price specified for this in-app product will be auto converted to the target - # currency based on the default price. Defaults to false. + # If true the prices for all regions targeted by the parent app that don't + # have a price specified for this in-app product will be auto converted to + # the target currency based on the default price. Defaults to false. # @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 # @@ -1768,8 +1612,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_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options) + def update_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options) command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation command.request_object = in_app_product_object command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation @@ -1779,71 +1623,24 @@ module Google command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.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 - # Uploads an APK to internal app sharing. If you are using the Google API client - # libraries, please increase the timeout of the http request before calling this - # endpoint (a timeout of 2 minutes is recommended). See: https://developers. - # google.com/api-client-library/java/google-api-java-client/errors for an - # example in java. - # @param [String] package_name - # Unique identifier for the Android app; for example, "com.spiffygame". - # @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 [IO, String] upload_source - # IO stream or filename containing content to upload - # @param [String] content_type - # Content type of the uploaded content. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] - # - # @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 uploadapk_internalappsharingartifact(package_name, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - if upload_source.nil? - command = make_simple_command(:post, 'internalappsharing/{packageName}/artifacts/apk', options) - else - command = make_upload_command(:post, 'internalappsharing/{packageName}/artifacts/apk', options) - command.upload_source = upload_source - command.upload_content_type = content_type - end - command.response_representation = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact::Representation - command.response_class = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact - command.params['packageName'] = package_name unless package_name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Uploads an app bundle to internal app sharing. If you are using the Google API - # client libraries, please increase the timeout of the http request before - # calling this endpoint (a timeout of 2 minutes is recommended). See: https:// - # developers.google.com/api-client-library/java/google-api-java-client/errors + # Uploads an APK to internal app sharing. + # If you are using the Google API client libraries, please increase the + # timeout of the http request before calling this endpoint + # (a timeout of 2 minutes is recommended). + # See [Timeouts and + # Errors](https://developers.google.com/api-client-library/java/google-api-java- + # client/errors) # for an example in java. # @param [String] package_name - # Unique identifier for the Android app; for example, "com.spiffygame". + # Package name of the app. # @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 [IO, String] upload_source # IO stream or filename containing content to upload # @param [String] content_type @@ -1860,11 +1657,58 @@ 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 uploadbundle_internalappsharingartifact(package_name, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + def uploadapk_internalappsharingartifact(package_name, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? - command = make_simple_command(:post, 'internalappsharing/{packageName}/artifacts/bundle', options) + command = make_simple_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk', options) else - command = make_upload_command(:post, 'internalappsharing/{packageName}/artifacts/bundle', options) + command = make_upload_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.response_representation = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact::Representation + command.response_class = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact + command.params['packageName'] = package_name unless package_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Uploads an app bundle to internal app sharing. + # If you are using the Google API client libraries, please increase the + # timeout of the http request before calling this endpoint + # (a timeout of 2 minutes is recommended). + # See [Timeouts and + # Errors](https://developers.google.com/api-client-library/java/google-api-java- + # client/errors) + # for an example in java. + # @param [String] package_name + # Package name of the app. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] + # + # @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 uploadbundle_internalappsharingartifact(package_name, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle', options) + else + command = make_upload_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle', options) command.upload_source = upload_source command.upload_content_type = content_type end @@ -1873,29 +1717,26 @@ module Google command.params['packageName'] = package_name unless package_name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Refund a user's subscription or in-app purchase order. # @param [String] package_name - # The package name of the application for which this subscription or in-app item - # was purchased (for example, 'com.some.thing'). + # The package name of the application for which this subscription or in-app + # item was purchased (for example, 'com.some.thing'). # @param [String] order_id # The order ID provided to the user when the subscription or in-app order was # purchased. # @param [Boolean] revoke # Whether to revoke the purchased item. If set to true, access to the - # subscription or in-app item will be terminated immediately. If the item is a - # recurring subscription, all future payments will also be terminated. Consumed - # in-app items need to be handled by developer's app. (optional) + # subscription or in-app item will be terminated immediately. If the item is + # a recurring subscription, all future payments will also be terminated. + # Consumed in-app items need to be handled by developer's app. (optional). # @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 # @@ -1908,33 +1749,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 refund_order(package_name, order_id, revoke: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/orders/{orderId}:refund', options) + def refund_order(package_name, order_id, revoke: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund', options) command.params['packageName'] = package_name unless package_name.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['revoke'] = revoke unless revoke.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 a purchase of an inapp item. # @param [String] package_name - # The package name of the application the inapp product was sold in (for example, - # 'com.some.thing'). + # The package name of the application the inapp product was sold in (for + # example, 'com.some.thing'). # @param [String] product_id # The inapp product SKU (for example, 'com.some.thing.inapp1'). # @param [String] token - # The token provided to the user's device when the subscription was purchased. + # The token provided to the user's device when the inapp product was + # purchased. # @param [Google::Apis::AndroidpublisherV3::ProductPurchasesAcknowledgeRequest] product_purchases_acknowledge_request_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 # @@ -1947,8 +1786,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 acknowledge_purchase_product(package_name, product_id, token, product_purchases_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge', options) + def acknowledge_purchase_product(package_name, product_id, token, product_purchases_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge', options) command.request_representation = Google::Apis::AndroidpublisherV3::ProductPurchasesAcknowledgeRequest::Representation command.request_object = product_purchases_acknowledge_request_object command.params['packageName'] = package_name unless package_name.nil? @@ -1956,25 +1795,23 @@ module Google command.params['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 # Checks the purchase and consumption status of an inapp item. # @param [String] package_name - # The package name of the application the inapp product was sold in (for example, - # 'com.some.thing'). + # The package name of the application the inapp product was sold in (for + # example, 'com.some.thing'). # @param [String] product_id # The inapp product SKU (for example, 'com.some.thing.inapp1'). # @param [String] token - # The token provided to the user's device when the inapp product was purchased. + # The token provided to the user's device when the inapp product was + # purchased. # @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 # @@ -1987,8 +1824,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_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/purchases/products/{productId}/tokens/{token}', options) + def get_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}', options) command.response_representation = Google::Apis::AndroidpublisherV3::ProductPurchase::Representation command.response_class = Google::Apis::AndroidpublisherV3::ProductPurchase command.params['packageName'] = package_name unless package_name.nil? @@ -1996,26 +1833,24 @@ module Google command.params['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 # Acknowledges a subscription purchase. # @param [String] package_name - # The package name of the application for which this subscription was purchased ( - # for example, 'com.some.thing'). + # The package name of the application for which this subscription was + # purchased (for example, 'com.some.thing'). # @param [String] subscription_id # The purchased subscription ID (for example, 'monthly001'). # @param [String] token - # The token provided to the user's device when the subscription was purchased. + # The token provided to the user's device when the subscription was + # purchased. # @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesAcknowledgeRequest] subscription_purchases_acknowledge_request_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 # @@ -2028,8 +1863,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 acknowledge_purchase_subscription(package_name, subscription_id, token, subscription_purchases_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge', options) + def acknowledge_purchase_subscription(package_name, subscription_id, token, subscription_purchases_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge', options) command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesAcknowledgeRequest::Representation command.request_object = subscription_purchases_acknowledge_request_object command.params['packageName'] = package_name unless package_name.nil? @@ -2037,26 +1872,24 @@ module Google command.params['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 - # Cancels a user's subscription purchase. The subscription remains valid until - # its expiration time. + # Cancels a user's subscription purchase. The subscription remains valid + # until its expiration time. # @param [String] package_name - # The package name of the application for which this subscription was purchased ( - # for example, 'com.some.thing'). + # The package name of the application for which this subscription was + # purchased (for example, 'com.some.thing'). # @param [String] subscription_id # The purchased subscription ID (for example, 'monthly001'). # @param [String] token - # The token provided to the user's device when the subscription was purchased. + # The token provided to the user's device when the subscription was + # purchased. # @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 # @@ -2069,33 +1902,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 cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options) + def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options) command.params['packageName'] = package_name unless package_name.nil? command.params['subscriptionId'] = subscription_id unless subscription_id.nil? command.params['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 - # Defers a user's subscription purchase until a specified future expiration time. + # Defers a user's subscription purchase until a specified future expiration + # time. # @param [String] package_name - # The package name of the application for which this subscription was purchased ( - # for example, 'com.some.thing'). + # The package name of the application for which this subscription was + # purchased (for example, 'com.some.thing'). # @param [String] subscription_id # The purchased subscription ID (for example, 'monthly001'). # @param [String] token - # The token provided to the user's device when the subscription was purchased. + # The token provided to the user's device when the subscription was + # purchased. # @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest] subscription_purchases_defer_request_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 # @@ -2108,8 +1940,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 defer_purchase_subscription(package_name, subscription_id, token, subscription_purchases_defer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options) + def defer_purchase_subscription(package_name, subscription_id, token, subscription_purchases_defer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options) command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest::Representation command.request_object = subscription_purchases_defer_request_object command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse::Representation @@ -2119,26 +1951,24 @@ module Google command.params['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 - # Checks whether a user's subscription purchase is valid and returns its expiry - # time. + # Checks whether a user's subscription purchase is valid and returns its + # expiry time. # @param [String] package_name - # The package name of the application for which this subscription was purchased ( - # for example, 'com.some.thing'). + # The package name of the application for which this subscription was + # purchased (for example, 'com.some.thing'). # @param [String] subscription_id # The purchased subscription ID (for example, 'monthly001'). # @param [String] token - # The token provided to the user's device when the subscription was purchased. + # The token provided to the user's device when the subscription was + # purchased. # @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 # @@ -2151,8 +1981,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_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options) + def get_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options) command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchase::Representation command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionPurchase command.params['packageName'] = package_name unless package_name.nil? @@ -2160,26 +1990,24 @@ module Google command.params['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 # Refunds a user's subscription purchase, but the subscription remains valid # until its expiration time and it will continue to recur. # @param [String] package_name - # The package name of the application for which this subscription was purchased ( - # for example, 'com.some.thing'). + # The package name of the application for which this subscription was + # purchased (for example, 'com.some.thing'). # @param [String] subscription_id - # The purchased subscription ID (for example, 'monthly001'). + # "The purchased subscription ID (for example, 'monthly001'). # @param [String] token - # The token provided to the user's device when the subscription was purchased. + # The token provided to the user's device when the subscription was + # purchased. # @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 # @@ -2192,33 +2020,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 refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options) + def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options) command.params['packageName'] = package_name unless package_name.nil? command.params['subscriptionId'] = subscription_id unless subscription_id.nil? command.params['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 - # Refunds and immediately revokes a user's subscription purchase. Access to the - # subscription will be terminated immediately and it will stop recurring. + # Refunds and immediately revokes a user's subscription purchase. Access to + # the subscription will be terminated immediately and it will stop recurring. # @param [String] package_name - # The package name of the application for which this subscription was purchased ( - # for example, 'com.some.thing'). + # The package name of the application for which this subscription was + # purchased (for example, 'com.some.thing'). # @param [String] subscription_id # The purchased subscription ID (for example, 'monthly001'). # @param [String] token - # The token provided to the user's device when the subscription was purchased. + # The token provided to the user's device when the subscription was + # purchased. # @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 # @@ -2231,14 +2057,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 revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options) + def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options) command.params['packageName'] = package_name unless package_name.nil? command.params['subscriptionId'] = subscription_id unless subscription_id.nil? command.params['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 @@ -2247,40 +2072,48 @@ module Google # The package name of the application for which voided purchases need to be # returned (for example, 'com.some.thing'). # @param [Fixnum] end_time - # The time, in milliseconds since the Epoch, of the newest voided purchase that - # you want to see in the response. The value of this parameter cannot be greater - # than the current time and is ignored if a pagination token is set. Default - # value is current time. Note: This filter is applied on the time at which the - # record is seen as voided by our systems and not the actual voided time - # returned in the response. + # The time, in milliseconds since the Epoch, of the newest voided purchase + # that you want to see in the response. The value of this parameter cannot + # be greater than the current time and is ignored if a pagination token is + # set. Default value is current time. + # Note: This filter is applied on the time at which the record is seen as + # voided by our systems and not the actual voided time returned in the + # response. # @param [Fixnum] max_results + # Defines how many results the list operation should return. + # The default number depends on the resource collection. # @param [Fixnum] start_index + # Defines the index of the first element to return. + # This can only be used if indexed paging is enabled. # @param [Fixnum] start_time - # The time, in milliseconds since the Epoch, of the oldest voided purchase that - # you want to see in the response. The value of this parameter cannot be older - # than 30 days and is ignored if a pagination token is set. Default value is - # current time minus 30 days. Note: This filter is applied on the time at which - # the record is seen as voided by our systems and not the actual voided time - # returned in the response. + # The time, in milliseconds since the Epoch, of the oldest voided purchase + # that you want to see in the response. The value of this parameter cannot + # be older than 30 days and is ignored if a pagination token is set. + # Default value is current time minus 30 days. + # Note: This filter is applied on the time at which the record is seen as + # voided by our systems and not the actual voided time returned in the + # response. # @param [String] token + # Defines the token of the page to return, usually taken from + # TokenPagination. + # This can only be used if token paging is enabled. # @param [Fixnum] type - # The type of voided purchases that you want to see in the response. Possible - # values are: - # - 0: Only voided in-app product purchases will be returned in the response. - # This is the default value. - # - 1: Both voided in-app purchases and voided subscription purchases will be - # returned in the response. Note: Before requesting to receive voided - # subscription purchases, you must switch to use orderId in the response which - # uniquely identifies one-time purchases and subscriptions. Otherwise, you will - # receive multiple subscription orders with the same PurchaseToken, because - # subscription renewal orders share the same PurchaseToken. + # The type of voided purchases that you want to see in the response. + # Possible values are: + # 0. Only voided in-app product purchases will be returned in the + # response. This is the default value. + # 1. Both voided in-app purchases and voided subscription purchases + # will be returned in the response. + # Note: Before requesting to receive voided subscription purchases, you + # must switch to use orderId in the response which uniquely identifies + # one-time purchases and subscriptions. Otherwise, you will receive multiple + # subscription orders with the same PurchaseToken, because subscription + # renewal orders share the same PurchaseToken. # @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 # @@ -2293,8 +2126,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_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/purchases/voidedpurchases', options) + def list_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases', options) command.response_representation = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse command.params['packageName'] = package_name unless package_name.nil? @@ -2306,23 +2139,21 @@ module Google command.query['type'] = type unless 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 a single review. + # Gets a single review. # @param [String] package_name - # Unique identifier for the Android app for which we want reviews; for example, " - # com.spiffygame". + # Package name of the app. # @param [String] review_id + # Unique identifier for a review. # @param [String] translation_language + # Language localization code. # @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 # @@ -2335,8 +2166,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_review(package_name, review_id, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/reviews/{reviewId}', options) + def get_review(package_name, review_id, translation_language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/reviews/{reviewId}', options) command.response_representation = Google::Apis::AndroidpublisherV3::Review::Representation command.response_class = Google::Apis::AndroidpublisherV3::Review command.params['packageName'] = package_name unless package_name.nil? @@ -2344,25 +2175,25 @@ module Google command.query['translationLanguage'] = translation_language unless translation_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 - # Returns a list of reviews. Only reviews from last week will be returned. + # Lists all reviews. # @param [String] package_name - # Unique identifier for the Android app for which we want reviews; for example, " - # com.spiffygame". + # Package name of the app. # @param [Fixnum] max_results + # How many results the list operation should return. # @param [Fixnum] start_index + # The index of the first element to return. # @param [String] token + # Pagination token. If empty, list starts at the first review. # @param [String] translation_language + # Language localization code. # @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 # @@ -2375,8 +2206,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_reviews(package_name, max_results: nil, start_index: nil, token: nil, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/reviews', options) + def list_reviews(package_name, max_results: nil, start_index: nil, token: nil, translation_language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/reviews', options) command.response_representation = Google::Apis::AndroidpublisherV3::ReviewsListResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::ReviewsListResponse command.params['packageName'] = package_name unless package_name.nil? @@ -2386,23 +2217,20 @@ module Google command.query['translationLanguage'] = translation_language unless translation_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 - # Reply to a single review, or update an existing reply. + # Replies to a single review, or updates an existing reply. # @param [String] package_name - # Unique identifier for the Android app for which we want reviews; for example, " - # com.spiffygame". + # Package name of the app. # @param [String] review_id + # Unique identifier for a review. # @param [Google::Apis::AndroidpublisherV3::ReviewsReplyRequest] reviews_reply_request_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 # @@ -2415,8 +2243,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 reply_review(package_name, review_id, reviews_reply_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/reviews/{reviewId}:reply', options) + def reply_review(package_name, review_id, reviews_reply_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply', options) command.request_representation = Google::Apis::AndroidpublisherV3::ReviewsReplyRequest::Representation command.request_object = reviews_reply_request_object command.response_representation = Google::Apis::AndroidpublisherV3::ReviewsReplyResponse::Representation @@ -2425,165 +2253,6 @@ module Google command.params['reviewId'] = review_id unless review_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 variant of APK which is suitable for inclusion in a system image. - # @param [String] package_name - # Unique identifier for the Android app; for example, "com.spiffygame". - # @param [Fixnum] version_code - # The version code of the App Bundle. - # @param [Google::Apis::AndroidpublisherV3::SystemApkVariantsCreateRequest] system_apk_variants_create_request_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. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AndroidpublisherV3::Variant] - # - # @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_systemapk_variant(package_name, version_code, system_apk_variants_create_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{packageName}/systemApks/{versionCode}/variants', options) - command.request_representation = Google::Apis::AndroidpublisherV3::SystemApkVariantsCreateRequest::Representation - command.request_object = system_apk_variants_create_request_object - command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation - command.response_class = Google::Apis::AndroidpublisherV3::Variant - command.params['packageName'] = package_name unless package_name.nil? - command.params['versionCode'] = version_code unless version_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 - - # Download a previously created APK which is suitable for inclusion in a system - # image. - # @param [String] package_name - # Unique identifier for the Android app; for example, "com.spiffygame". - # @param [Fixnum] version_code - # The version code of the App Bundle. - # @param [Fixnum] variant_id - # @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 [IO, String] download_dest - # IO stream or filename to receive content download - # @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 download_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, '{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options) - else - command = make_download_command(:get, '{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options) - command.download_dest = download_dest - end - command.params['packageName'] = package_name unless package_name.nil? - command.params['versionCode'] = version_code unless version_code.nil? - command.params['variantId'] = variant_id unless variant_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 previously created system APK variant. - # @param [String] package_name - # Unique identifier for the Android app; for example, "com.spiffygame". - # @param [Fixnum] version_code - # The version code of the App Bundle. - # @param [Fixnum] variant_id - # Unique identifier for this variant. - # @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::AndroidpublisherV3::Variant] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AndroidpublisherV3::Variant] - # - # @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_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/systemApks/{versionCode}/variants/{variantId}', options) - command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation - command.response_class = Google::Apis::AndroidpublisherV3::Variant - command.params['packageName'] = package_name unless package_name.nil? - command.params['versionCode'] = version_code unless version_code.nil? - command.params['variantId'] = variant_id unless variant_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 the list of previously created system APK variants. - # @param [String] package_name - # Unique identifier for the Android app; for example, "com.spiffygame". - # @param [Fixnum] version_code - # The version code of the App Bundle. - # @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::AndroidpublisherV3::SystemApkVariantsListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AndroidpublisherV3::SystemApkVariantsListResponse] - # - # @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_systemapk_variants(package_name, version_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{packageName}/systemApks/{versionCode}/variants', options) - command.response_representation = Google::Apis::AndroidpublisherV3::SystemApkVariantsListResponse::Representation - command.response_class = Google::Apis::AndroidpublisherV3::SystemApkVariantsListResponse - command.params['packageName'] = package_name unless package_name.nil? - command.params['versionCode'] = version_code unless version_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 @@ -2592,7 +2261,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/apigee_v1.rb b/generated/google/apis/apigee_v1.rb index ceae6a6fe..cfa4825c1 100644 --- a/generated/google/apis/apigee_v1.rb +++ b/generated/google/apis/apigee_v1.rb @@ -31,7 +31,7 @@ module Google # @see https://cloud.google.com/apigee-api-management/ module ApigeeV1 VERSION = 'V1' - REVISION = '20200521' + REVISION = '20200604' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/apigee_v1/classes.rb b/generated/google/apis/apigee_v1/classes.rb index c93ecb2ff..b9d5a09d0 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -2807,6 +2807,11 @@ module Google # @return [String] attr_accessor :name + # The project ID associated with the Apigee organization. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + # Message for compatibility with legacy Edge specification for Java Properties # object in JSON. # Corresponds to the JSON property `properties` @@ -2849,6 +2854,7 @@ module Google @environments = args[:environments] if args.key?(:environments) @last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at) @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) @properties = args[:properties] if args.key?(:properties) @runtime_type = args[:runtime_type] if args.key?(:runtime_type) @subscription_type = args[:subscription_type] if args.key?(:subscription_type) @@ -4269,7 +4275,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -4278,18 +4284,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -4341,7 +4347,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/apigee_v1/representations.rb b/generated/google/apis/apigee_v1/representations.rb index 9dcb50727..6c5a261b6 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -1365,6 +1365,7 @@ module Google collection :environments, as: 'environments' property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt' property :name, as: 'name' + property :project_id, as: 'projectId' property :properties, as: 'properties', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties::Representation property :runtime_type, as: 'runtimeType' diff --git a/generated/google/apis/osconfig_v1.rb b/generated/google/apis/osconfig_v1.rb index 565c99aa6..d98cae2a1 100644 --- a/generated/google/apis/osconfig_v1.rb +++ b/generated/google/apis/osconfig_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/ module OsconfigV1 VERSION = 'V1' - REVISION = '20200504' + REVISION = '20200601' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/osconfig_v1/classes.rb b/generated/google/apis/osconfig_v1/classes.rb index f3c8df798..0c744fc1d 100644 --- a/generated/google/apis/osconfig_v1/classes.rb +++ b/generated/google/apis/osconfig_v1/classes.rb @@ -626,7 +626,7 @@ module Google # A high level representation of a patch job that is either in progress # or has completed. - # Instances details are not included in the job. To paginate through instance + # Instance details are not included in the job. To paginate through instance # details, use ListPatchJobInstanceDetails. # For more information about patch jobs, see # [Creating patch @@ -709,7 +709,7 @@ module Google # @return [Float] attr_accessor :percent_complete - # The current state of the PatchJob . + # The current state of the PatchJob. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/policytroubleshooter_v1.rb b/generated/google/apis/policytroubleshooter_v1.rb index dc40b1585..5c464a763 100644 --- a/generated/google/apis/policytroubleshooter_v1.rb +++ b/generated/google/apis/policytroubleshooter_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iam/ module PolicytroubleshooterV1 VERSION = 'V1' - REVISION = '20200504' + REVISION = '20200606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/policytroubleshooter_v1/classes.rb b/generated/google/apis/policytroubleshooter_v1/classes.rb index 511315130..291bbc8cc 100644 --- a/generated/google/apis/policytroubleshooter_v1/classes.rb +++ b/generated/google/apis/policytroubleshooter_v1/classes.rb @@ -383,7 +383,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -392,18 +392,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -455,7 +455,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/policytroubleshooter_v1beta.rb b/generated/google/apis/policytroubleshooter_v1beta.rb index e444c221a..d66f8a2d0 100644 --- a/generated/google/apis/policytroubleshooter_v1beta.rb +++ b/generated/google/apis/policytroubleshooter_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iam/ module PolicytroubleshooterV1beta VERSION = 'V1beta' - REVISION = '20200504' + REVISION = '20200606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/policytroubleshooter_v1beta/classes.rb b/generated/google/apis/policytroubleshooter_v1beta/classes.rb index a7f8fa449..8cf14144e 100644 --- a/generated/google/apis/policytroubleshooter_v1beta/classes.rb +++ b/generated/google/apis/policytroubleshooter_v1beta/classes.rb @@ -382,7 +382,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -391,18 +391,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -454,7 +454,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index bf852d1b8..de788573e 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20200519' + REVISION = '20200605' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index 5ca00b582..59571d44f 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -131,7 +131,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -140,18 +140,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -203,7 +203,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` @@ -567,6 +567,11 @@ module Google # @return [String] attr_accessor :notification_config_name + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1Resource] + attr_accessor :resource + def initialize(**args) update!(**args) end @@ -575,6 +580,51 @@ module Google def update!(**args) @finding = args[:finding] if args.key?(:finding) @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) + end + end + + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) end end @@ -843,6 +893,11 @@ module Google # @return [String] attr_accessor :notification_config_name + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource] + attr_accessor :resource + # Wrapper over asset object that also captures the state change for the asset # e.g. if it was a newly created asset vs updated or deleted asset. # Corresponds to the JSON property `temporalAsset` @@ -857,10 +912,55 @@ module Google def update!(**args) @finding = args[:finding] if args.key?(:finding) @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) @temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset) end end + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1p1beta1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) + end + end + # Response of asset discovery run class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/securitycenter_v1/representations.rb b/generated/google/apis/securitycenter_v1/representations.rb index 3a4f573a8..af3e6eaff 100644 --- a/generated/google/apis/securitycenter_v1/representations.rb +++ b/generated/google/apis/securitycenter_v1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -124,6 +130,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV1p1beta1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -421,6 +433,19 @@ module Google property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::Finding, decorator: Google::Apis::SecuritycenterV1::Finding::Representation property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1Resource::Representation + + end + end + + class GoogleCloudSecuritycenterV1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' end end @@ -486,11 +511,24 @@ module Google property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation + property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation end end + class GoogleCloudSecuritycenterV1p1beta1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' + end + end + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index 08c8830d2..8b1f1f1c7 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20200519' + REVISION = '20200605' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index a153f65a5..a21924017 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -122,7 +122,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -131,18 +131,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -194,7 +194,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` @@ -571,6 +571,11 @@ module Google # @return [String] attr_accessor :notification_config_name + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1Resource] + attr_accessor :resource + def initialize(**args) update!(**args) end @@ -579,6 +584,51 @@ module Google def update!(**args) @finding = args[:finding] if args.key?(:finding) @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) + end + end + + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) end end @@ -988,6 +1038,11 @@ module Google # @return [String] attr_accessor :notification_config_name + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource] + attr_accessor :resource + # Wrapper over asset object that also captures the state change for the asset # e.g. if it was a newly created asset vs updated or deleted asset. # Corresponds to the JSON property `temporalAsset` @@ -1002,10 +1057,55 @@ module Google def update!(**args) @finding = args[:finding] if args.key?(:finding) @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) @temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset) end end + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1p1beta1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) + end + end + # Response of asset discovery run class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/securitycenter_v1beta1/representations.rb b/generated/google/apis/securitycenter_v1beta1/representations.rb index ba787a5d1..3c52b723a 100644 --- a/generated/google/apis/securitycenter_v1beta1/representations.rb +++ b/generated/google/apis/securitycenter_v1beta1/representations.rb @@ -94,6 +94,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,6 +148,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV1p1beta1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -407,6 +419,19 @@ module Google property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta1::Finding, decorator: Google::Apis::SecuritycenterV1beta1::Finding::Representation property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1Resource::Representation + + end + end + + class GoogleCloudSecuritycenterV1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' end end @@ -497,11 +522,24 @@ module Google property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation + property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation end end + class GoogleCloudSecuritycenterV1p1beta1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' + end + end + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/securitycenter_v1p1alpha1.rb b/generated/google/apis/securitycenter_v1p1alpha1.rb index 0a941d8f5..be36ec3ff 100644 --- a/generated/google/apis/securitycenter_v1p1alpha1.rb +++ b/generated/google/apis/securitycenter_v1p1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1p1alpha1 VERSION = 'V1p1alpha1' - REVISION = '20200410' + REVISION = '20200605' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1p1alpha1/classes.rb b/generated/google/apis/securitycenter_v1p1alpha1/classes.rb index 24eeedd05..29aafd15f 100644 --- a/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +++ b/generated/google/apis/securitycenter_v1p1alpha1/classes.rb @@ -162,6 +162,11 @@ module Google # @return [String] attr_accessor :notification_config_name + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1Resource] + attr_accessor :resource + def initialize(**args) update!(**args) end @@ -170,6 +175,51 @@ module Google def update!(**args) @finding = args[:finding] if args.key?(:finding) @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) + end + end + + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) end end @@ -438,6 +488,11 @@ module Google # @return [String] attr_accessor :notification_config_name + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Resource] + attr_accessor :resource + # Wrapper over asset object that also captures the state change for the asset # e.g. if it was a newly created asset vs updated or deleted asset. # Corresponds to the JSON property `temporalAsset` @@ -452,10 +507,55 @@ module Google def update!(**args) @finding = args[:finding] if args.key?(:finding) @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) @temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset) end end + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1p1beta1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) + end + end + # Response of asset discovery run class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/securitycenter_v1p1alpha1/representations.rb b/generated/google/apis/securitycenter_v1p1alpha1/representations.rb index 53ea81c37..40564f165 100644 --- a/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +++ b/generated/google/apis/securitycenter_v1p1alpha1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -76,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV1p1beta1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -153,6 +165,19 @@ module Google property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1alpha1::Finding, decorator: Google::Apis::SecuritycenterV1p1alpha1::Finding::Representation property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1Resource::Representation + + end + end + + class GoogleCloudSecuritycenterV1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' end end @@ -218,11 +243,24 @@ module Google property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation + property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation end end + class GoogleCloudSecuritycenterV1p1beta1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' + end + end + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/securitycenter_v1p1beta1.rb b/generated/google/apis/securitycenter_v1p1beta1.rb index 75734dd42..fd0b95419 100644 --- a/generated/google/apis/securitycenter_v1p1beta1.rb +++ b/generated/google/apis/securitycenter_v1p1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1p1beta1 VERSION = 'V1p1beta1' - REVISION = '20200519' + REVISION = '20200605' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/securitycenter_v1p1beta1/classes.rb b/generated/google/apis/securitycenter_v1p1beta1/classes.rb index c2a51b305..6dc8b7c7b 100644 --- a/generated/google/apis/securitycenter_v1p1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1p1beta1/classes.rb @@ -59,7 +59,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -68,18 +68,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -131,7 +131,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` @@ -495,6 +495,11 @@ module Google # @return [String] attr_accessor :notification_config_name + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1Resource] + attr_accessor :resource + def initialize(**args) update!(**args) end @@ -503,6 +508,51 @@ module Google def update!(**args) @finding = args[:finding] if args.key?(:finding) @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) + end + end + + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) end end @@ -771,6 +821,11 @@ module Google # @return [String] attr_accessor :notification_config_name + # Information related to the Google Cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Resource] + attr_accessor :resource + # Wrapper over asset object that also captures the state change for the asset # e.g. if it was a newly created asset vs updated or deleted asset. # Corresponds to the JSON property `temporalAsset` @@ -785,10 +840,55 @@ module Google def update!(**args) @finding = args[:finding] if args.key?(:finding) @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name) + @resource = args[:resource] if args.key?(:resource) @temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset) end end + # Information related to the Google Cloud resource. + class GoogleCloudSecuritycenterV1p1beta1Resource + include Google::Apis::Core::Hashable + + # The full resource name of the resource. See: + # https://cloud.google.com/apis/design/resource_names#full_resource_name + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The full resource name of resource's parent. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The human readable name of resource's parent. + # Corresponds to the JSON property `parentDisplayName` + # @return [String] + attr_accessor :parent_display_name + + # The full resource name of project that the resource belongs to. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The human readable name of project that the resource belongs to. + # Corresponds to the JSON property `projectDisplayName` + # @return [String] + attr_accessor :project_display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name) + @project = args[:project] if args.key?(:project) + @project_display_name = args[:project_display_name] if args.key?(:project_display_name) + end + end + # Response of asset discovery run class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/securitycenter_v1p1beta1/representations.rb b/generated/google/apis/securitycenter_v1p1beta1/representations.rb index aa680a951..f76b38871 100644 --- a/generated/google/apis/securitycenter_v1p1beta1/representations.rb +++ b/generated/google/apis/securitycenter_v1p1beta1/representations.rb @@ -82,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -118,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudSecuritycenterV1p1beta1Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -387,6 +399,19 @@ module Google property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1beta1::Finding, decorator: Google::Apis::SecuritycenterV1p1beta1::Finding::Representation property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1Resource, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1Resource::Representation + + end + end + + class GoogleCloudSecuritycenterV1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' end end @@ -452,11 +477,24 @@ module Google property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation property :notification_config_name, as: 'notificationConfigName' + property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Resource, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Resource::Representation + property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation end end + class GoogleCloudSecuritycenterV1p1beta1Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parent, as: 'parent' + property :parent_display_name, as: 'parentDisplayName' + property :project, as: 'project' + property :project_display_name, as: 'projectDisplayName' + end + end + class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 0ec423764..80fbfc698 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20200603' + REVISION = '20200606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index 774a116bb..8be0243ba 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -1124,11 +1124,6 @@ module Google attr_accessor :allow_cors alias_method :allow_cors?, :allow_cors - # The list of features enabled on this endpoint. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - # The canonical name of this endpoint. # Corresponds to the JSON property `name` # @return [String] @@ -1151,7 +1146,6 @@ module Google def update!(**args) @aliases = args[:aliases] if args.key?(:aliases) @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @features = args[:features] if args.key?(:features) @name = args[:name] if args.key?(:name) @target = args[:target] if args.key?(:target) end diff --git a/generated/google/apis/serviceconsumermanagement_v1/representations.rb b/generated/google/apis/serviceconsumermanagement_v1/representations.rb index 07f2de338..326f02066 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/representations.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/representations.rb @@ -806,7 +806,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :aliases, as: 'aliases' property :allow_cors, as: 'allowCors' - collection :features, as: 'features' property :name, as: 'name' property :target, as: 'target' end diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1.rb b/generated/google/apis/serviceconsumermanagement_v1beta1.rb index eda2a4b97..409f2d189 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1beta1 VERSION = 'V1beta1' - REVISION = '20200603' + REVISION = '20200606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb index c83371f79..f648a6e67 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb @@ -952,11 +952,6 @@ module Google attr_accessor :allow_cors alias_method :allow_cors?, :allow_cors - # The list of features enabled on this endpoint. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - # The canonical name of this endpoint. # Corresponds to the JSON property `name` # @return [String] @@ -979,7 +974,6 @@ module Google def update!(**args) @aliases = args[:aliases] if args.key?(:aliases) @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @features = args[:features] if args.key?(:features) @name = args[:name] if args.key?(:name) @target = args[:target] if args.key?(:target) end @@ -3560,6 +3554,11 @@ module Google # @return [String] attr_accessor :name + # The units in which the metric value is reported. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + def initialize(**args) update!(**args) end @@ -3570,6 +3569,7 @@ module Google @display_name = args[:display_name] if args.key?(:display_name) @metric = args[:metric] if args.key?(:metric) @name = args[:name] if args.key?(:name) + @unit = args[:unit] if args.key?(:unit) end end diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb b/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb index 284418064..a3b7b8fe7 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb @@ -686,7 +686,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :aliases, as: 'aliases' property :allow_cors, as: 'allowCors' - collection :features, as: 'features' property :name, as: 'name' property :target, as: 'target' end @@ -1137,6 +1136,7 @@ module Google property :display_name, as: 'displayName' property :metric, as: 'metric' property :name, as: 'name' + property :unit, as: 'unit' end end diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index 1f00b4453..27bae3e69 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20200519' + REVISION = '20200606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index ddc7edc02..060102fd8 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -1437,11 +1437,6 @@ module Google attr_accessor :allow_cors alias_method :allow_cors?, :allow_cors - # The list of features enabled on this endpoint. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - # The canonical name of this endpoint. # Corresponds to the JSON property `name` # @return [String] @@ -1464,7 +1459,6 @@ module Google def update!(**args) @aliases = args[:aliases] if args.key?(:aliases) @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @features = args[:features] if args.key?(:features) @name = args[:name] if args.key?(:name) @target = args[:target] if args.key?(:target) end diff --git a/generated/google/apis/servicenetworking_v1/representations.rb b/generated/google/apis/servicenetworking_v1/representations.rb index 5e4a77d1b..022f2000f 100644 --- a/generated/google/apis/servicenetworking_v1/representations.rb +++ b/generated/google/apis/servicenetworking_v1/representations.rb @@ -874,7 +874,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :aliases, as: 'aliases' property :allow_cors, as: 'allowCors' - collection :features, as: 'features' property :name, as: 'name' property :target, as: 'target' end diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index 7dc124547..5ed96a552 100644 --- a/generated/google/apis/servicenetworking_v1beta.rb +++ b/generated/google/apis/servicenetworking_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1beta VERSION = 'V1beta' - REVISION = '20200519' + REVISION = '20200606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1beta/classes.rb b/generated/google/apis/servicenetworking_v1beta/classes.rb index f94869ead..c5a8e74ec 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -1220,11 +1220,6 @@ module Google attr_accessor :allow_cors alias_method :allow_cors?, :allow_cors - # The list of features enabled on this endpoint. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - # The canonical name of this endpoint. # Corresponds to the JSON property `name` # @return [String] @@ -1247,7 +1242,6 @@ module Google def update!(**args) @aliases = args[:aliases] if args.key?(:aliases) @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @features = args[:features] if args.key?(:features) @name = args[:name] if args.key?(:name) @target = args[:target] if args.key?(:target) end diff --git a/generated/google/apis/servicenetworking_v1beta/representations.rb b/generated/google/apis/servicenetworking_v1beta/representations.rb index acca34824..785d2b3ea 100644 --- a/generated/google/apis/servicenetworking_v1beta/representations.rb +++ b/generated/google/apis/servicenetworking_v1beta/representations.rb @@ -722,7 +722,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :aliases, as: 'aliases' property :allow_cors, as: 'allowCors' - collection :features, as: 'features' property :name, as: 'name' property :target, as: 'target' end diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index b0fc3f6b6..13bf3074a 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20200603' + REVISION = '20200606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index 3be6cbab7..16b989be5 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -1250,11 +1250,6 @@ module Google attr_accessor :allow_cors alias_method :allow_cors?, :allow_cors - # The list of features enabled on this endpoint. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - # The canonical name of this endpoint. # Corresponds to the JSON property `name` # @return [String] @@ -1277,7 +1272,6 @@ module Google def update!(**args) @aliases = args[:aliases] if args.key?(:aliases) @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @features = args[:features] if args.key?(:features) @name = args[:name] if args.key?(:name) @target = args[:target] if args.key?(:target) end diff --git a/generated/google/apis/serviceusage_v1/representations.rb b/generated/google/apis/serviceusage_v1/representations.rb index e41a7396e..dc25ebfa7 100644 --- a/generated/google/apis/serviceusage_v1/representations.rb +++ b/generated/google/apis/serviceusage_v1/representations.rb @@ -782,7 +782,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :aliases, as: 'aliases' property :allow_cors, as: 'allowCors' - collection :features, as: 'features' property :name, as: 'name' property :target, as: 'target' end diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index 12a7475be..0fbed124b 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20200603' + REVISION = '20200606' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index b872ccaa8..4dec5ecfc 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -804,6 +804,11 @@ module Google # @return [String] attr_accessor :name + # The units in which the metric value is reported. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + def initialize(**args) update!(**args) end @@ -814,6 +819,7 @@ module Google @display_name = args[:display_name] if args.key?(:display_name) @metric = args[:metric] if args.key?(:metric) @name = args[:name] if args.key?(:name) + @unit = args[:unit] if args.key?(:unit) end end @@ -1319,11 +1325,6 @@ module Google attr_accessor :allow_cors alias_method :allow_cors?, :allow_cors - # The list of features enabled on this endpoint. - # Corresponds to the JSON property `features` - # @return [Array] - attr_accessor :features - # The canonical name of this endpoint. # Corresponds to the JSON property `name` # @return [String] @@ -1346,7 +1347,6 @@ module Google def update!(**args) @aliases = args[:aliases] if args.key?(:aliases) @allow_cors = args[:allow_cors] if args.key?(:allow_cors) - @features = args[:features] if args.key?(:features) @name = args[:name] if args.key?(:name) @target = args[:target] if args.key?(:target) end diff --git a/generated/google/apis/serviceusage_v1beta1/representations.rb b/generated/google/apis/serviceusage_v1beta1/representations.rb index 4a19664a8..641662927 100644 --- a/generated/google/apis/serviceusage_v1beta1/representations.rb +++ b/generated/google/apis/serviceusage_v1beta1/representations.rb @@ -703,6 +703,7 @@ module Google property :display_name, as: 'displayName' property :metric, as: 'metric' property :name, as: 'name' + property :unit, as: 'unit' end end @@ -827,7 +828,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :aliases, as: 'aliases' property :allow_cors, as: 'allowCors' - collection :features, as: 'features' property :name, as: 'name' property :target, as: 'target' end