1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
|
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module LicensingV1
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Representation of a license assignment.
class LicenseAssignment
include Google::Apis::Core::Hashable
# ETag of the resource.
# Corresponds to the JSON property `etags`
# @return [String]
attr_accessor :etags
# Identifies the resource as a LicenseAssignment, which is `licensing#
# licenseAssignment`.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A product's unique identifier. For more information about products in this
# version of the API, see Product and SKU IDs.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Display Name of the product.
# Corresponds to the JSON property `productName`
# @return [String]
attr_accessor :product_name
# Link to this page.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# A product SKU's unique identifier. For more information about available SKUs
# in this version of the API, see Products and SKUs.
# Corresponds to the JSON property `skuId`
# @return [String]
attr_accessor :sku_id
# Display Name of the sku of the product.
# Corresponds to the JSON property `skuName`
# @return [String]
attr_accessor :sku_name
# The user's current primary email address. If the user's email address changes,
# use the new email address in your API requests. Since a `userId` is subject to
# change, do not use a `userId` value as a key for persistent data. This key
# could break if the current user's email address changes. If the `userId` is
# suspended, the license status changes.
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etags = args[:etags] if args.key?(:etags)
@kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
@product_name = args[:product_name] if args.key?(:product_name)
@self_link = args[:self_link] if args.key?(:self_link)
@sku_id = args[:sku_id] if args.key?(:sku_id)
@sku_name = args[:sku_name] if args.key?(:sku_name)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
# Representation of a license assignment.
class LicenseAssignmentInsert
include Google::Apis::Core::Hashable
# Email id of the user
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
#
class LicenseAssignmentList
include Google::Apis::Core::Hashable
# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The LicenseAssignments in this page of results.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::LicensingV1::LicenseAssignment>]
attr_accessor :items
# Identifies the resource as a collection of LicenseAssignments.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token that you must submit in a subsequent request to retrieve additional
# license results matching your query parameters. The `maxResults` query string
# is related to the `nextPageToken` since `maxResults` determines how many
# entries are returned on each next page.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
end
end
end
|