2015-12-03 01:10:07 +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 ClouduseraccountsBeta
|
|
|
|
|
|
|
|
# A list of authorized public keys for a user account.
|
|
|
|
class AuthorizedKeysView
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] The list of authorized public keys in SSH format.
|
|
|
|
# Corresponds to the JSON property `keys`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :keys
|
|
|
|
|
|
|
|
# [Output Only] Whether the user has the ability to elevate on the instance that
|
|
|
|
# requested the authorized keys.
|
|
|
|
# Corresponds to the JSON property `sudoer`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :sudoer
|
|
|
|
alias_method :sudoer?, :sudoer
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@keys = args[:keys] if args.key?(:keys)
|
|
|
|
@sudoer = args[:sudoer] if args.key?(:sudoer)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A Group resource.
|
|
|
|
class Group
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
|
|
|
# Corresponds to the JSON property `creationTimestamp`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :creation_timestamp
|
|
|
|
|
|
|
|
# An optional textual description of the resource; provided by the client when
|
|
|
|
# the resource is created.
|
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
|
|
|
|
|
|
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
|
|
|
# [Output Only] Type of the resource. Always clouduseraccounts#group for groups.
|
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# [Output Only] A list of URLs to User resources who belong to the group. Users
|
|
|
|
# may only be members of groups in the same project.
|
|
|
|
# Corresponds to the JSON property `members`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :members
|
|
|
|
|
|
|
|
# Name of the resource; provided by the client when the resource is created.
|
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
# [Output Only] Server defined URL for the resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@members = args[:members] if args.key?(:members)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class GroupList
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
|
|
|
# [Output Only] A list of Group resources.
|
|
|
|
# Corresponds to the JSON property `items`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Group>]
|
|
|
|
attr_accessor :items
|
|
|
|
|
|
|
|
# [Output Only] Type of resource. Always clouduseraccounts#groupList for lists
|
|
|
|
# of groups.
|
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# [Output Only] A token used to continue a truncated list request.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
# [Output Only] Server defined URL for this resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@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)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class GroupsAddMemberRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Fully-qualified URLs of the User resources to add.
|
|
|
|
# Corresponds to the JSON property `users`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :users
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@users = args[:users] if args.key?(:users)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class GroupsRemoveMemberRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Fully-qualified URLs of the User resources to remove.
|
|
|
|
# Corresponds to the JSON property `users`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :users
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@users = args[:users] if args.key?(:users)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A list of all Linux accounts for this project. This API is only used by
|
|
|
|
# Compute Engine virtual machines to get information about user accounts for a
|
|
|
|
# project or instance. Linux resources are read-only views into users and groups
|
|
|
|
# managed by the Compute Engine Accounts API.
|
|
|
|
class LinuxAccountViews
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] A list of all groups within a project.
|
|
|
|
# Corresponds to the JSON property `groupViews`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxGroupView>]
|
|
|
|
attr_accessor :group_views
|
|
|
|
|
|
|
|
# [Output Only] Type of the resource. Always clouduseraccounts#linuxAccountViews
|
|
|
|
# for Linux resources.
|
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# [Output Only] A list of all users within a project.
|
|
|
|
# Corresponds to the JSON property `userViews`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxUserView>]
|
|
|
|
attr_accessor :user_views
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@group_views = args[:group_views] if args.key?(:group_views)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@user_views = args[:user_views] if args.key?(:user_views)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class LinuxGetAuthorizedKeysViewResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A list of authorized public keys for a user account.
|
|
|
|
# Corresponds to the JSON property `resource`
|
|
|
|
# @return [Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView]
|
|
|
|
attr_accessor :resource
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@resource = args[:resource] if args.key?(:resource)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class LinuxGetLinuxAccountViewsResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A list of all Linux accounts for this project. This API is only used by
|
|
|
|
# Compute Engine virtual machines to get information about user accounts for a
|
|
|
|
# project or instance. Linux resources are read-only views into users and groups
|
|
|
|
# managed by the Compute Engine Accounts API.
|
|
|
|
# Corresponds to the JSON property `resource`
|
|
|
|
# @return [Google::Apis::ClouduseraccountsBeta::LinuxAccountViews]
|
|
|
|
attr_accessor :resource
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@resource = args[:resource] if args.key?(:resource)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A detailed view of a Linux group.
|
|
|
|
class LinuxGroupView
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] The Group ID.
|
|
|
|
# Corresponds to the JSON property `gid`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :gid
|
|
|
|
|
|
|
|
# [Output Only] Group name.
|
|
|
|
# Corresponds to the JSON property `groupName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :group_name
|
|
|
|
|
|
|
|
# [Output Only] List of user accounts that belong to the group.
|
|
|
|
# Corresponds to the JSON property `members`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :members
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@gid = args[:gid] if args.key?(:gid)
|
|
|
|
@group_name = args[:group_name] if args.key?(:group_name)
|
|
|
|
@members = args[:members] if args.key?(:members)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A detailed view of a Linux user account.
|
|
|
|
class LinuxUserView
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] The GECOS (user information) entry for this account.
|
|
|
|
# Corresponds to the JSON property `gecos`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :gecos
|
|
|
|
|
|
|
|
# [Output Only] User's default group ID.
|
|
|
|
# Corresponds to the JSON property `gid`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :gid
|
|
|
|
|
|
|
|
# [Output Only] The path to the home directory for this account.
|
|
|
|
# Corresponds to the JSON property `homeDirectory`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :home_directory
|
|
|
|
|
|
|
|
# [Output Only] The path to the login shell for this account.
|
|
|
|
# Corresponds to the JSON property `shell`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :shell
|
|
|
|
|
|
|
|
# [Output Only] User ID.
|
|
|
|
# Corresponds to the JSON property `uid`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :uid
|
|
|
|
|
|
|
|
# [Output Only] The username of the account.
|
|
|
|
# Corresponds to the JSON property `username`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :username
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@gecos = args[:gecos] if args.key?(:gecos)
|
|
|
|
@gid = args[:gid] if args.key?(:gid)
|
|
|
|
@home_directory = args[:home_directory] if args.key?(:home_directory)
|
|
|
|
@shell = args[:shell] if args.key?(:shell)
|
|
|
|
@uid = args[:uid] if args.key?(:uid)
|
|
|
|
@username = args[:username] if args.key?(:username)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# An Operation resource, used to manage asynchronous API requests.
|
|
|
|
class Operation
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] Reserved for future use.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `clientOperationId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :client_operation_id
|
|
|
|
|
|
|
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
|
|
|
# Corresponds to the JSON property `creationTimestamp`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :creation_timestamp
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] A textual description of the operation, which is set when the
|
|
|
|
# operation is created.
|
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
|
|
|
|
|
|
|
# [Output Only] The time that this operation was completed. This value is in
|
|
|
|
# RFC3339 text format.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `endTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :end_time
|
|
|
|
|
|
|
|
# [Output Only] If errors are generated during processing of the operation, this
|
|
|
|
# field will be populated.
|
|
|
|
# Corresponds to the JSON property `error`
|
|
|
|
# @return [Google::Apis::ClouduseraccountsBeta::Operation::Error]
|
|
|
|
attr_accessor :error
|
|
|
|
|
|
|
|
# [Output Only] If the operation fails, this field contains the HTTP error
|
|
|
|
# message that was returned, such as NOT FOUND.
|
|
|
|
# Corresponds to the JSON property `httpErrorMessage`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :http_error_message
|
|
|
|
|
|
|
|
# [Output Only] If the operation fails, this field contains the HTTP error
|
2016-03-11 22:41:20 +00:00
|
|
|
# status code that was returned. For example, a 404 means the resource was not
|
|
|
|
# found.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `httpErrorStatusCode`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :http_error_status_code
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The unique identifier for the resource. This identifier is
|
|
|
|
# defined by the server.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The time that this operation was requested. This value is in
|
|
|
|
# RFC3339 text format.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `insertTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :insert_time
|
|
|
|
|
2016-04-14 18:15:27 +00:00
|
|
|
# [Output Only] Type of the resource. Always compute#operation for Operation
|
2015-12-03 01:10:07 +00:00
|
|
|
# resources.
|
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# [Output Only] Name of the resource.
|
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The type of operation, such as insert, update, or delete, and so
|
|
|
|
# on.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `operationType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :operation_type
|
|
|
|
|
|
|
|
# [Output Only] An optional progress indicator that ranges from 0 to 100. There
|
|
|
|
# is no requirement that this be linear or support any granularity of operations.
|
2016-03-11 22:41:20 +00:00
|
|
|
# This should not be used to guess when the operation will be complete. This
|
2015-12-03 01:10:07 +00:00
|
|
|
# number should monotonically increase as the operation progresses.
|
|
|
|
# Corresponds to the JSON property `progress`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :progress
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The URL of the region where the operation resides. Only
|
|
|
|
# available when performing regional operations.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `region`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :region
|
|
|
|
|
|
|
|
# [Output Only] Server-defined URL for the resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The time that this operation was started by the server. This
|
|
|
|
# value is in RFC3339 text format.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `startTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_time
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The status of the operation, which can be one of the following:
|
|
|
|
# PENDING, RUNNING, or DONE.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `status`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :status
|
|
|
|
|
|
|
|
# [Output Only] An optional textual description of the current status of the
|
|
|
|
# operation.
|
|
|
|
# Corresponds to the JSON property `statusMessage`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :status_message
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The unique target ID, which identifies a specific incarnation of
|
|
|
|
# the target resource.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `targetId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :target_id
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The URL of the resource that the operation modifies.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `targetLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :target_link
|
|
|
|
|
|
|
|
# [Output Only] User who requested the operation, for example: user@example.com.
|
|
|
|
# Corresponds to the JSON property `user`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :user
|
|
|
|
|
|
|
|
# [Output Only] If warning messages are generated during processing of the
|
|
|
|
# operation, this field will be populated.
|
|
|
|
# Corresponds to the JSON property `warnings`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning>]
|
|
|
|
attr_accessor :warnings
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The URL of the zone where the operation resides. Only available
|
|
|
|
# when performing per-zone operations.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `zone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :zone
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
|
|
|
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
2016-03-11 22:41:20 +00:00
|
|
|
@description = args[:description] if args.key?(:description)
|
2016-01-29 22:32:46 +00:00
|
|
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
|
|
@error = args[:error] if args.key?(:error)
|
|
|
|
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
|
|
|
|
@http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
|
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
|
|
@progress = args[:progress] if args.key?(:progress)
|
|
|
|
@region = args[:region] if args.key?(:region)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
|
|
@status = args[:status] if args.key?(:status)
|
|
|
|
@status_message = args[:status_message] if args.key?(:status_message)
|
|
|
|
@target_id = args[:target_id] if args.key?(:target_id)
|
|
|
|
@target_link = args[:target_link] if args.key?(:target_link)
|
|
|
|
@user = args[:user] if args.key?(:user)
|
|
|
|
@warnings = args[:warnings] if args.key?(:warnings)
|
|
|
|
@zone = args[:zone] if args.key?(:zone)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# [Output Only] If errors are generated during processing of the operation, this
|
|
|
|
# field will be populated.
|
|
|
|
class Error
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] The array of errors encountered while processing this operation.
|
|
|
|
# Corresponds to the JSON property `errors`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Error::Error>]
|
|
|
|
attr_accessor :errors
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@errors = args[:errors] if args.key?(:errors)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class Error
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] The error type identifier for this error.
|
|
|
|
# Corresponds to the JSON property `code`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :code
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] Indicates the field in the request that caused the error. This
|
2015-12-03 01:10:07 +00:00
|
|
|
# property is optional.
|
|
|
|
# Corresponds to the JSON property `location`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :location
|
|
|
|
|
|
|
|
# [Output Only] An optional, human-readable error message.
|
|
|
|
# Corresponds to the JSON property `message`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :message
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@code = args[:code] if args.key?(:code)
|
|
|
|
@location = args[:location] if args.key?(:location)
|
|
|
|
@message = args[:message] if args.key?(:message)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class Warning
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] A warning code, if applicable. For example, Compute Engine
|
|
|
|
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `code`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :code
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] Metadata about this warning in key: value format. For example:
|
|
|
|
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `data`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum>]
|
|
|
|
attr_accessor :data
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] A human-readable description of the warning code.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `message`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :message
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@code = args[:code] if args.key?(:code)
|
|
|
|
@data = args[:data] if args.key?(:data)
|
|
|
|
@message = args[:message] if args.key?(:message)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class Datum
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] A key that provides more detail on the warning being returned.
|
|
|
|
# For example, for warnings where there are no results in a list request for a
|
|
|
|
# particular zone, this key might be scope and the key value might be the zone
|
|
|
|
# name. Other examples might be a key indicating a deprecated resource and a
|
|
|
|
# suggested replacement, or a warning about invalid network settings (for
|
|
|
|
# example, if an instance attempts to perform IP forwarding but is not enabled
|
|
|
|
# for IP forwarding).
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `key`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :key
|
|
|
|
|
|
|
|
# [Output Only] A warning data value corresponding to the key.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@key = args[:key] if args.key?(:key)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Contains a list of Operation resources.
|
|
|
|
class OperationList
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] The unique identifier for the resource. This identifier is
|
|
|
|
# defined by the server.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] A list of Operation resources.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `items`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation>]
|
|
|
|
attr_accessor :items
|
|
|
|
|
|
|
|
# [Output Only] Type of resource. Always compute#operations for Operations
|
|
|
|
# resource.
|
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
# [Output Only] This token allows you to get the next page of results for list
|
|
|
|
# requests. If the number of results is larger than maxResults, use the
|
|
|
|
# nextPageToken as a value for the query parameter pageToken in the next list
|
|
|
|
# request. Subsequent list requests will have their own nextPageToken to
|
|
|
|
# continue paging through the results.
|
2015-12-03 01:10:07 +00:00
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
# [Output Only] Server-defined URL for this resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@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)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A public key for authenticating to guests.
|
|
|
|
class PublicKey
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
|
|
|
# Corresponds to the JSON property `creationTimestamp`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :creation_timestamp
|
|
|
|
|
|
|
|
# An optional textual description of the resource; provided by the client when
|
|
|
|
# the resource is created.
|
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
|
|
|
|
|
|
|
# Optional expiration timestamp. If provided, the timestamp must be in RFC3339
|
|
|
|
# text format. If not provided, the public key never expires.
|
|
|
|
# Corresponds to the JSON property `expirationTimestamp`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :expiration_timestamp
|
|
|
|
|
|
|
|
# [Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5
|
|
|
|
# digest of the public key.
|
|
|
|
# Corresponds to the JSON property `fingerprint`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :fingerprint
|
|
|
|
|
|
|
|
# Public key text in SSH format, defined by RFC4253 section 6.6.
|
|
|
|
# Corresponds to the JSON property `key`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :key
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@expiration_timestamp = args[:expiration_timestamp] if args.key?(:expiration_timestamp)
|
|
|
|
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
|
|
|
@key = args[:key] if args.key?(:key)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A User resource.
|
|
|
|
class User
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
|
|
|
# Corresponds to the JSON property `creationTimestamp`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :creation_timestamp
|
|
|
|
|
|
|
|
# An optional textual description of the resource; provided by the client when
|
|
|
|
# the resource is created.
|
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
|
|
|
|
|
|
|
# [Output Only] A list of URLs to Group resources who contain the user. Users
|
|
|
|
# are only members of groups in the same project.
|
|
|
|
# Corresponds to the JSON property `groups`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :groups
|
|
|
|
|
|
|
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
|
|
|
# [Output Only] Type of the resource. Always clouduseraccounts#user for users.
|
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# Name of the resource; provided by the client when the resource is created.
|
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
# Email address of account's owner. This account will be validated to make sure
|
|
|
|
# it exists. The email can belong to any domain, but it must be tied to a Google
|
|
|
|
# account.
|
|
|
|
# Corresponds to the JSON property `owner`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :owner
|
|
|
|
|
|
|
|
# [Output Only] Public keys that this user may use to login.
|
|
|
|
# Corresponds to the JSON property `publicKeys`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::PublicKey>]
|
|
|
|
attr_accessor :public_keys
|
|
|
|
|
|
|
|
# [Output Only] Server defined URL for the resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@groups = args[:groups] if args.key?(:groups)
|
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@owner = args[:owner] if args.key?(:owner)
|
|
|
|
@public_keys = args[:public_keys] if args.key?(:public_keys)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
class UserList
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# [Output Only] Unique identifier for the resource; defined by the server.
|
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
|
|
|
# [Output Only] A list of User resources.
|
|
|
|
# Corresponds to the JSON property `items`
|
|
|
|
# @return [Array<Google::Apis::ClouduseraccountsBeta::User>]
|
|
|
|
attr_accessor :items
|
|
|
|
|
|
|
|
# [Output Only] Type of resource. Always clouduseraccounts#userList for lists of
|
|
|
|
# users.
|
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
# [Output Only] A token used to continue a truncated list request.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
# [Output Only] Server defined URL for this resource.
|
|
|
|
# Corresponds to the JSON property `selfLink`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :self_link
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2016-01-29 22:32:46 +00:00
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@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)
|
|
|
|
@self_link = args[:self_link] if args.key?(:self_link)
|
2015-12-03 01:10:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|