133 lines
4.3 KiB
Ruby
133 lines
4.3 KiB
Ruby
# 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
|
|
|
|
# Template for LiscenseAssignment Resource
|
|
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
|
|
|
|
# Name of the product.
|
|
# Corresponds to the JSON property `productId`
|
|
# @return [String]
|
|
attr_accessor :product_id
|
|
|
|
# Link to this page.
|
|
# Corresponds to the JSON property `selfLink`
|
|
# @return [String]
|
|
attr_accessor :self_link
|
|
|
|
# Name of the sku of the product.
|
|
# Corresponds to the JSON property `skuId`
|
|
# @return [String]
|
|
attr_accessor :sku_id
|
|
|
|
# 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)
|
|
@etags = args[:etags] unless args[:etags].nil?
|
|
@kind = args[:kind] unless args[:kind].nil?
|
|
@product_id = args[:product_id] unless args[:product_id].nil?
|
|
@self_link = args[:self_link] unless args[:self_link].nil?
|
|
@sku_id = args[:sku_id] unless args[:sku_id].nil?
|
|
@user_id = args[:user_id] unless args[:user_id].nil?
|
|
end
|
|
end
|
|
|
|
# Template for LicenseAssignment Insert request
|
|
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] unless args[:user_id].nil?
|
|
end
|
|
end
|
|
|
|
# LicesnseAssignment List for a given product/sku for a customer.
|
|
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 continuation token, used to page through large result sets. Provide this
|
|
# value in a subsequent request to return the next page of results.
|
|
# 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] unless args[:etag].nil?
|
|
@items = args[:items] unless args[:items].nil?
|
|
@kind = args[:kind] unless args[:kind].nil?
|
|
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|