google-api-ruby-client/generated/google/apis/licensing_v1/classes.rb

153 lines
5.3 KiB
Ruby
Raw Normal View History

2015-06-23 23:05:46 +00:00
# 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
# Representation of a license assignment.
2015-06-23 23:05:46 +00:00
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.
# 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.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
2017-03-27 22:14:47 +00:00
# Display Name of the product.
# Corresponds to the JSON property `productName`
# @return [String]
attr_accessor :product_name
2015-06-23 23:05:46 +00:00
# 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.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `skuId`
# @return [String]
attr_accessor :sku_id
2017-03-27 22:14:47 +00:00
# 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.
2015-06-23 23:05:46 +00:00
# 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)
2016-01-29 22:32:46 +00:00
@etags = args[:etags] if args.key?(:etags)
@kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
2017-03-27 22:14:47 +00:00
@product_name = args[:product_name] if args.key?(:product_name)
2016-01-29 22:32:46 +00:00
@self_link = args[:self_link] if args.key?(:self_link)
@sku_id = args[:sku_id] if args.key?(:sku_id)
2017-03-27 22:14:47 +00:00
@sku_name = args[:sku_name] if args.key?(:sku_name)
2016-01-29 22:32:46 +00:00
@user_id = args[:user_id] if args.key?(:user_id)
2015-06-23 23:05:46 +00:00
end
end
# Representation of a license assignment.
2015-06-23 23:05:46 +00:00
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)
2016-01-29 22:32:46 +00:00
@user_id = args[:user_id] if args.key?(:user_id)
2015-06-23 23:05:46 +00:00
end
end
#
2015-06-23 23:05:46 +00:00
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.
2015-06-23 23:05:46 +00:00
# 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)
2016-01-29 22:32:46 +00:00
@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)
2015-06-23 23:05:46 +00:00
end
end
end
end
end