Class: Google::Apis::VersionhistoryV1::VersionHistoryService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::VersionhistoryV1::VersionHistoryService
- Defined in:
- lib/google/apis/versionhistory_v1/service.rb
Overview
versionhistory.googleapis.com API
Version History API - Prod
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://versionhistory.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#initialize ⇒ VersionHistoryService
constructor
A new instance of VersionHistoryService.
-
#list_platform_channel_version_releases(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VersionhistoryV1::ListReleasesResponse
Returns list of releases of the given version.
-
#list_platform_channel_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VersionhistoryV1::ListVersionsResponse
Returns list of version for the given platform/channel.
-
#list_platform_channels(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VersionhistoryV1::ListChannelsResponse
Returns list of channels that are available for a given platform.
-
#list_platforms(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VersionhistoryV1::ListPlatformsResponse
Returns list of platforms that are available for a given product.
Constructor Details
#initialize ⇒ VersionHistoryService
Returns a new instance of VersionHistoryService.
47 48 49 50 51 52 |
# File 'lib/google/apis/versionhistory_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-versionhistory_v1', client_version: Google::Apis::VersionhistoryV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/versionhistory_v1/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns 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.
45 46 47 |
# File 'lib/google/apis/versionhistory_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#list_platform_channel_version_releases(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VersionhistoryV1::ListReleasesResponse
Returns list of releases of the given version.
248 249 250 251 252 253 254 255 256 257 258 259 260 |
# File 'lib/google/apis/versionhistory_v1/service.rb', line 248 def list_platform_channel_version_releases(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/releases', ) command.response_representation = Google::Apis::VersionhistoryV1::ListReleasesResponse::Representation command.response_class = Google::Apis::VersionhistoryV1::ListReleasesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_platform_channel_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VersionhistoryV1::ListVersionsResponse
Returns list of version for the given platform/channel.
181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/google/apis/versionhistory_v1/service.rb', line 181 def list_platform_channel_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/versions', ) command.response_representation = Google::Apis::VersionhistoryV1::ListVersionsResponse::Representation command.response_class = Google::Apis::VersionhistoryV1::ListVersionsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_platform_channels(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VersionhistoryV1::ListChannelsResponse
Returns list of channels that are available for a given platform.
121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/google/apis/versionhistory_v1/service.rb', line 121 def list_platform_channels(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/channels', ) command.response_representation = Google::Apis::VersionhistoryV1::ListChannelsResponse::Representation command.response_class = Google::Apis::VersionhistoryV1::ListChannelsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_platforms(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VersionhistoryV1::ListPlatformsResponse
Returns list of platforms that are available for a given product. The resource "product" has no resource name in its name.
82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/google/apis/versionhistory_v1/service.rb', line 82 def list_platforms(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/platforms', ) command.response_representation = Google::Apis::VersionhistoryV1::ListPlatformsResponse::Representation command.response_class = Google::Apis::VersionhistoryV1::ListPlatformsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |