google-apis-adsenseplatform_v1alpha 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/adsenseplatform_v1alpha/classes.rb +58 -0
- data/lib/google/apis/adsenseplatform_v1alpha/gem_version.rb +3 -3
- data/lib/google/apis/adsenseplatform_v1alpha/representations.rb +30 -0
- data/lib/google/apis/adsenseplatform_v1alpha/service.rb +71 -0
- metadata +4 -7
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1438917cedbc6ea900b70c4b883eec8253cd9261126cee656ab0acbfd82385ce
         | 
| 4 | 
            +
              data.tar.gz: f53d9ec9a74d04ef73e6f4d951126026c788691958a255e5cdd77e6c35ebfc6e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d1d051d57b3976b7cde880f9a7e330aba145158636afb688949845e4ea7c70585e152ba18a878f565a567581f03c7222ca373282a4e49338c7c60cd956ddfb16
         | 
| 7 | 
            +
              data.tar.gz: a798944dc383e9dc794268949d27306408b4257e3cc78b91792345cc3f7aba934d38ecc050af62a380b82d1116368e8277495dbda8e768594b09ec752de34069
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,10 @@ | |
| 1 1 | 
             
            # Release history for google-apis-adsenseplatform_v1alpha
         | 
| 2 2 |  | 
| 3 | 
            +
            ### v0.3.0 (2025-01-12)
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            * Regenerated from discovery document revision 20250108
         | 
| 6 | 
            +
            * Regenerated using generator version 0.16.0
         | 
| 7 | 
            +
             | 
| 3 8 | 
             
            ### v0.2.0 (2024-12-08)
         | 
| 4 9 |  | 
| 5 10 | 
             
            * Regenerated from discovery document revision 20241203
         | 
| @@ -289,6 +289,32 @@ module Google | |
| 289 289 | 
             
                    end
         | 
| 290 290 | 
             
                  end
         | 
| 291 291 |  | 
| 292 | 
            +
                  # Response definition for the platform list rpc.
         | 
| 293 | 
            +
                  class ListPlatformsResponse
         | 
| 294 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 295 | 
            +
                  
         | 
| 296 | 
            +
                    # Continuation token used to page through platforms. To retrieve the next page
         | 
| 297 | 
            +
                    # of the results, set the next request's "page_token" value to this.
         | 
| 298 | 
            +
                    # Corresponds to the JSON property `nextPageToken`
         | 
| 299 | 
            +
                    # @return [String]
         | 
| 300 | 
            +
                    attr_accessor :next_page_token
         | 
| 301 | 
            +
                  
         | 
| 302 | 
            +
                    # The platforms returned in this list response.
         | 
| 303 | 
            +
                    # Corresponds to the JSON property `platforms`
         | 
| 304 | 
            +
                    # @return [Array<Google::Apis::AdsenseplatformV1alpha::Platform>]
         | 
| 305 | 
            +
                    attr_accessor :platforms
         | 
| 306 | 
            +
                  
         | 
| 307 | 
            +
                    def initialize(**args)
         | 
| 308 | 
            +
                       update!(**args)
         | 
| 309 | 
            +
                    end
         | 
| 310 | 
            +
                  
         | 
| 311 | 
            +
                    # Update properties of this object
         | 
| 312 | 
            +
                    def update!(**args)
         | 
| 313 | 
            +
                      @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
         | 
| 314 | 
            +
                      @platforms = args[:platforms] if args.key?(:platforms)
         | 
| 315 | 
            +
                    end
         | 
| 316 | 
            +
                  end
         | 
| 317 | 
            +
                  
         | 
| 292 318 | 
             
                  # Response definition for the site list rpc.
         | 
| 293 319 | 
             
                  class ListSitesResponse
         | 
| 294 320 | 
             
                    include Google::Apis::Core::Hashable
         | 
| @@ -334,6 +360,38 @@ module Google | |
| 334 360 | 
             
                    end
         | 
| 335 361 | 
             
                  end
         | 
| 336 362 |  | 
| 363 | 
            +
                  # Representation of a Transparent Platform.
         | 
| 364 | 
            +
                  class Platform
         | 
| 365 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 366 | 
            +
                  
         | 
| 367 | 
            +
                    # Default platform group for the platform.
         | 
| 368 | 
            +
                    # Corresponds to the JSON property `defaultPlatformGroup`
         | 
| 369 | 
            +
                    # @return [String]
         | 
| 370 | 
            +
                    attr_accessor :default_platform_group
         | 
| 371 | 
            +
                  
         | 
| 372 | 
            +
                    # Output only. Description of the platform.
         | 
| 373 | 
            +
                    # Corresponds to the JSON property `description`
         | 
| 374 | 
            +
                    # @return [String]
         | 
| 375 | 
            +
                    attr_accessor :description
         | 
| 376 | 
            +
                  
         | 
| 377 | 
            +
                    # Identifier. Resource name of a platform. Format: accounts/`account`/platforms/`
         | 
| 378 | 
            +
                    # platform`
         | 
| 379 | 
            +
                    # Corresponds to the JSON property `name`
         | 
| 380 | 
            +
                    # @return [String]
         | 
| 381 | 
            +
                    attr_accessor :name
         | 
| 382 | 
            +
                  
         | 
| 383 | 
            +
                    def initialize(**args)
         | 
| 384 | 
            +
                       update!(**args)
         | 
| 385 | 
            +
                    end
         | 
| 386 | 
            +
                  
         | 
| 387 | 
            +
                    # Update properties of this object
         | 
| 388 | 
            +
                    def update!(**args)
         | 
| 389 | 
            +
                      @default_platform_group = args[:default_platform_group] if args.key?(:default_platform_group)
         | 
| 390 | 
            +
                      @description = args[:description] if args.key?(:description)
         | 
| 391 | 
            +
                      @name = args[:name] if args.key?(:name)
         | 
| 392 | 
            +
                    end
         | 
| 393 | 
            +
                  end
         | 
| 394 | 
            +
                  
         | 
| 337 395 | 
             
                  # Response definition for the site request review rpc.
         | 
| 338 396 | 
             
                  class RequestSiteReviewResponse
         | 
| 339 397 | 
             
                    include Google::Apis::Core::Hashable
         | 
| @@ -16,13 +16,13 @@ module Google | |
| 16 16 | 
             
              module Apis
         | 
| 17 17 | 
             
                module AdsenseplatformV1alpha
         | 
| 18 18 | 
             
                  # Version of the google-apis-adsenseplatform_v1alpha gem
         | 
| 19 | 
            -
                  GEM_VERSION = "0. | 
| 19 | 
            +
                  GEM_VERSION = "0.3.0"
         | 
| 20 20 |  | 
| 21 21 | 
             
                  # Version of the code generator used to generate this client
         | 
| 22 | 
            -
                  GENERATOR_VERSION = "0. | 
| 22 | 
            +
                  GENERATOR_VERSION = "0.16.0"
         | 
| 23 23 |  | 
| 24 24 | 
             
                  # Revision of the discovery document this client was generated from
         | 
| 25 | 
            -
                  REVISION = " | 
| 25 | 
            +
                  REVISION = "20250108"
         | 
| 26 26 | 
             
                end
         | 
| 27 27 | 
             
              end
         | 
| 28 28 | 
             
            end
         | 
| @@ -70,6 +70,12 @@ module Google | |
| 70 70 | 
             
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 71 71 | 
             
                  end
         | 
| 72 72 |  | 
| 73 | 
            +
                  class ListPlatformsResponse
         | 
| 74 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 75 | 
            +
                  
         | 
| 76 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 77 | 
            +
                  end
         | 
| 78 | 
            +
                  
         | 
| 73 79 | 
             
                  class ListSitesResponse
         | 
| 74 80 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 75 81 |  | 
| @@ -82,6 +88,12 @@ module Google | |
| 82 88 | 
             
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 83 89 | 
             
                  end
         | 
| 84 90 |  | 
| 91 | 
            +
                  class Platform
         | 
| 92 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 93 | 
            +
                  
         | 
| 94 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 95 | 
            +
                  end
         | 
| 96 | 
            +
                  
         | 
| 85 97 | 
             
                  class RequestSiteReviewResponse
         | 
| 86 98 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 87 99 |  | 
| @@ -176,6 +188,15 @@ module Google | |
| 176 188 | 
             
                    end
         | 
| 177 189 | 
             
                  end
         | 
| 178 190 |  | 
| 191 | 
            +
                  class ListPlatformsResponse
         | 
| 192 | 
            +
                    # @private
         | 
| 193 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 194 | 
            +
                      property :next_page_token, as: 'nextPageToken'
         | 
| 195 | 
            +
                      collection :platforms, as: 'platforms', class: Google::Apis::AdsenseplatformV1alpha::Platform, decorator: Google::Apis::AdsenseplatformV1alpha::Platform::Representation
         | 
| 196 | 
            +
                  
         | 
| 197 | 
            +
                    end
         | 
| 198 | 
            +
                  end
         | 
| 199 | 
            +
                  
         | 
| 179 200 | 
             
                  class ListSitesResponse
         | 
| 180 201 | 
             
                    # @private
         | 
| 181 202 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| @@ -192,6 +213,15 @@ module Google | |
| 192 213 | 
             
                    end
         | 
| 193 214 | 
             
                  end
         | 
| 194 215 |  | 
| 216 | 
            +
                  class Platform
         | 
| 217 | 
            +
                    # @private
         | 
| 218 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 219 | 
            +
                      property :default_platform_group, as: 'defaultPlatformGroup'
         | 
| 220 | 
            +
                      property :description, as: 'description'
         | 
| 221 | 
            +
                      property :name, as: 'name'
         | 
| 222 | 
            +
                    end
         | 
| 223 | 
            +
                  end
         | 
| 224 | 
            +
                  
         | 
| 195 225 | 
             
                  class RequestSiteReviewResponse
         | 
| 196 226 | 
             
                    # @private
         | 
| 197 227 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| @@ -51,6 +51,77 @@ module Google | |
| 51 51 | 
             
                      @batch_path = 'batch'
         | 
| 52 52 | 
             
                    end
         | 
| 53 53 |  | 
| 54 | 
            +
                    # Gets a platform.
         | 
| 55 | 
            +
                    # @param [String] name
         | 
| 56 | 
            +
                    #   Required. The name of the platform to retrieve. Format: accounts/`account`/
         | 
| 57 | 
            +
                    #   platforms/`platform`
         | 
| 58 | 
            +
                    # @param [String] fields
         | 
| 59 | 
            +
                    #   Selector specifying which fields to include in a partial response.
         | 
| 60 | 
            +
                    # @param [String] quota_user
         | 
| 61 | 
            +
                    #   Available to use for quota purposes for server-side applications. Can be any
         | 
| 62 | 
            +
                    #   arbitrary string assigned to a user, but should not exceed 40 characters.
         | 
| 63 | 
            +
                    # @param [Google::Apis::RequestOptions] options
         | 
| 64 | 
            +
                    #   Request-specific options
         | 
| 65 | 
            +
                    #
         | 
| 66 | 
            +
                    # @yield [result, err] Result & error if block supplied
         | 
| 67 | 
            +
                    # @yieldparam result [Google::Apis::AdsenseplatformV1alpha::Platform] parsed result object
         | 
| 68 | 
            +
                    # @yieldparam err [StandardError] error object if request failed
         | 
| 69 | 
            +
                    #
         | 
| 70 | 
            +
                    # @return [Google::Apis::AdsenseplatformV1alpha::Platform]
         | 
| 71 | 
            +
                    #
         | 
| 72 | 
            +
                    # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
         | 
| 73 | 
            +
                    # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
         | 
| 74 | 
            +
                    # @raise [Google::Apis::AuthorizationError] Authorization is required
         | 
| 75 | 
            +
                    def get_account_platform(name, fields: nil, quota_user: nil, options: nil, &block)
         | 
| 76 | 
            +
                      command = make_simple_command(:get, 'v1alpha/{+name}', options)
         | 
| 77 | 
            +
                      command.response_representation = Google::Apis::AdsenseplatformV1alpha::Platform::Representation
         | 
| 78 | 
            +
                      command.response_class = Google::Apis::AdsenseplatformV1alpha::Platform
         | 
| 79 | 
            +
                      command.params['name'] = name unless name.nil?
         | 
| 80 | 
            +
                      command.query['fields'] = fields unless fields.nil?
         | 
| 81 | 
            +
                      command.query['quotaUser'] = quota_user unless quota_user.nil?
         | 
| 82 | 
            +
                      execute_or_queue_command(command, &block)
         | 
| 83 | 
            +
                    end
         | 
| 84 | 
            +
                    
         | 
| 85 | 
            +
                    # Lists platforms for a specified account.
         | 
| 86 | 
            +
                    # @param [String] parent
         | 
| 87 | 
            +
                    #   Required. The account which owns the platforms. Format: accounts/`account`
         | 
| 88 | 
            +
                    # @param [Fixnum] page_size
         | 
| 89 | 
            +
                    #   Optional. The maximum number of platforms to include in the response, used for
         | 
| 90 | 
            +
                    #   paging. If unspecified, at most 10000 platforms will be returned. The maximum
         | 
| 91 | 
            +
                    #   value is 10000; values above 10000 will be coerced to 10000.
         | 
| 92 | 
            +
                    # @param [String] page_token
         | 
| 93 | 
            +
                    #   Optional. A page token, received from a previous `ListPlatforms` call. Provide
         | 
| 94 | 
            +
                    #   this to retrieve the subsequent page. When paginating, all other parameters
         | 
| 95 | 
            +
                    #   provided to `ListPlatforms` must match the call that provided the page token.
         | 
| 96 | 
            +
                    # @param [String] fields
         | 
| 97 | 
            +
                    #   Selector specifying which fields to include in a partial response.
         | 
| 98 | 
            +
                    # @param [String] quota_user
         | 
| 99 | 
            +
                    #   Available to use for quota purposes for server-side applications. Can be any
         | 
| 100 | 
            +
                    #   arbitrary string assigned to a user, but should not exceed 40 characters.
         | 
| 101 | 
            +
                    # @param [Google::Apis::RequestOptions] options
         | 
| 102 | 
            +
                    #   Request-specific options
         | 
| 103 | 
            +
                    #
         | 
| 104 | 
            +
                    # @yield [result, err] Result & error if block supplied
         | 
| 105 | 
            +
                    # @yieldparam result [Google::Apis::AdsenseplatformV1alpha::ListPlatformsResponse] parsed result object
         | 
| 106 | 
            +
                    # @yieldparam err [StandardError] error object if request failed
         | 
| 107 | 
            +
                    #
         | 
| 108 | 
            +
                    # @return [Google::Apis::AdsenseplatformV1alpha::ListPlatformsResponse]
         | 
| 109 | 
            +
                    #
         | 
| 110 | 
            +
                    # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
         | 
| 111 | 
            +
                    # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
         | 
| 112 | 
            +
                    # @raise [Google::Apis::AuthorizationError] Authorization is required
         | 
| 113 | 
            +
                    def list_account_platforms(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
         | 
| 114 | 
            +
                      command = make_simple_command(:get, 'v1alpha/{+parent}/platforms', options)
         | 
| 115 | 
            +
                      command.response_representation = Google::Apis::AdsenseplatformV1alpha::ListPlatformsResponse::Representation
         | 
| 116 | 
            +
                      command.response_class = Google::Apis::AdsenseplatformV1alpha::ListPlatformsResponse
         | 
| 117 | 
            +
                      command.params['parent'] = parent unless parent.nil?
         | 
| 118 | 
            +
                      command.query['pageSize'] = page_size unless page_size.nil?
         | 
| 119 | 
            +
                      command.query['pageToken'] = page_token unless page_token.nil?
         | 
| 120 | 
            +
                      command.query['fields'] = fields unless fields.nil?
         | 
| 121 | 
            +
                      command.query['quotaUser'] = quota_user unless quota_user.nil?
         | 
| 122 | 
            +
                      execute_or_queue_command(command, &block)
         | 
| 123 | 
            +
                    end
         | 
| 124 | 
            +
                    
         | 
| 54 125 | 
             
                    # Closes a sub-account.
         | 
| 55 126 | 
             
                    # @param [String] name
         | 
| 56 127 | 
             
                    #   Required. Account to close. Format: platforms/`platform`/accounts/`account_id`
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-apis-adsenseplatform_v1alpha
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.3.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 | 
            -
            autorequire: 
         | 
| 9 8 | 
             
            bindir: bin
         | 
| 10 9 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 10 | 
            +
            date: 2025-01-12 00:00:00.000000000 Z
         | 
| 12 11 | 
             
            dependencies:
         | 
| 13 12 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 13 | 
             
              name: google-apis-core
         | 
| @@ -58,9 +57,8 @@ licenses: | |
| 58 57 | 
             
            metadata:
         | 
| 59 58 | 
             
              bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
         | 
| 60 59 | 
             
              changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsenseplatform_v1alpha/CHANGELOG.md
         | 
| 61 | 
            -
              documentation_uri: https://googleapis.dev/ruby/google-apis-adsenseplatform_v1alpha/v0. | 
| 60 | 
            +
              documentation_uri: https://googleapis.dev/ruby/google-apis-adsenseplatform_v1alpha/v0.3.0
         | 
| 62 61 | 
             
              source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsenseplatform_v1alpha
         | 
| 63 | 
            -
            post_install_message: 
         | 
| 64 62 | 
             
            rdoc_options: []
         | 
| 65 63 | 
             
            require_paths:
         | 
| 66 64 | 
             
            - lib
         | 
| @@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 75 73 | 
             
                - !ruby/object:Gem::Version
         | 
| 76 74 | 
             
                  version: '0'
         | 
| 77 75 | 
             
            requirements: []
         | 
| 78 | 
            -
            rubygems_version: 3. | 
| 79 | 
            -
            signing_key: 
         | 
| 76 | 
            +
            rubygems_version: 3.6.2
         | 
| 80 77 | 
             
            specification_version: 4
         | 
| 81 78 | 
             
            summary: Simple REST client for AdSense Platform API V1alpha
         | 
| 82 79 | 
             
            test_files: []
         |