class Saklient::Cloud::Resources::CommonServiceProvider
ライセンス種別情報.
Attributes
クラス {ECommonServiceClass}
@return [String]
ID
@return [String]
クラス {ECommonServiceClass}
@return [String]
ID
@return [String]
名前
@return [String]
@return [bool]
@return [bool]
@return [bool]
名前
@return [String]
Public Class Methods
@private @param [Saklient::Cloud::Client] client @param [any] obj @param [bool] wrapped
Saklient::Cloud::Resources::Resource::new
# File lib/saklient/cloud/resources/common_service_provider.rb, line 68 def initialize(client, obj, wrapped = false) super(client) Saklient::Util::validate_type(client, 'Saklient::Cloud::Client') Saklient::Util::validate_type(wrapped, 'bool') api_deserialize(obj, wrapped) end
Public Instance Methods
@private @return [String]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 54 def _class_name return 'CommonServiceProvider' end
@private @return [String]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 60 def _id return get_id end
Protected Instance Methods
@private @return [String]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 34 def _api_path return '/commonserviceprovider' end
@private @return [String]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 40 def _root_key return 'CommonServiceProvider' end
@private @return [String]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 46 def _root_key_m return 'CommonServiceProviders' end
(This method is generated in Translator_default#buildImpl)
@param [any] r
# File lib/saklient/cloud/resources/common_service_provider.rb, line 152 def api_deserialize_impl(r) @is_new = (r).nil? r = {} if @is_new @is_incomplete = false if Saklient::Util::exists_path(r, 'ID') @m_id = (Saklient::Util::get_by_path(r, 'ID')).nil? ? nil : Saklient::Util::get_by_path(r, 'ID').to_s else @m_id = nil @is_incomplete = true end @n_id = false if Saklient::Util::exists_path(r, 'Class') @m_clazz = (Saklient::Util::get_by_path(r, 'Class')).nil? ? nil : Saklient::Util::get_by_path(r, 'Class').to_s else @m_clazz = nil @is_incomplete = true end @n_clazz = false if Saklient::Util::exists_path(r, 'Name') @m_name = (Saklient::Util::get_by_path(r, 'Name')).nil? ? nil : Saklient::Util::get_by_path(r, 'Name').to_s else @m_name = nil @is_incomplete = true end @n_name = false end
@private @param [bool] withClean @return [any]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 182 def api_serialize_impl(withClean = false) Saklient::Util::validate_type(withClean, 'bool') ret = {} Saklient::Util::set_by_path(ret, 'ID', @m_id) if withClean || @n_id Saklient::Util::set_by_path(ret, 'Class', @m_clazz) if withClean || @n_clazz Saklient::Util::set_by_path(ret, 'Name', @m_name) if withClean || @n_name return ret end
(This method is generated in Translator_default#buildImpl)
@private @return [String]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 108 def get_clazz return @m_clazz end
(This method is generated in Translator_default#buildImpl)
@private @return [String]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 84 def get_id return @m_id end
(This method is generated in Translator_default#buildImpl)
@private @return [String]
# File lib/saklient/cloud/resources/common_service_provider.rb, line 132 def get_name return @m_name end