Class: SDM::Organization

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_provider: nil, created_at: nil, idle_timeout: nil, idle_timeout_enabled: nil, kind: nil, log_local_encoder: nil, log_local_format: nil, log_local_storage: nil, log_remote_encoder: nil, log_socket_path: nil, log_tcp_address: nil, mfa_enabled: nil, mfa_provider: nil, name: nil, require_secret_store: nil, saml_metadata_url: nil, scim_provider: nil, sensitive_label: nil, session_timeout: nil, session_timeout_enabled: nil, ssh_certificate_authority_public_key: nil, ssh_certificate_authority_updated_at: nil, updated_at: nil, websites_subdomain: nil) ⇒ Organization

Returns a new instance of Organization.



6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
# File 'lib/models/porcelain.rb', line 6158

def initialize(
  auth_provider: nil,
  created_at: nil,
  idle_timeout: nil,
  idle_timeout_enabled: nil,
  kind: nil,
  log_local_encoder: nil,
  log_local_format: nil,
  log_local_storage: nil,
  log_remote_encoder: nil,
  log_socket_path: nil,
  log_tcp_address: nil,
  mfa_enabled: nil,
  mfa_provider: nil,
  name: nil,
  require_secret_store: nil,
  saml_metadata_url: nil,
  scim_provider: nil,
  sensitive_label: nil,
  session_timeout: nil,
  session_timeout_enabled: nil,
  ssh_certificate_authority_public_key: nil,
  ssh_certificate_authority_updated_at: nil,
  updated_at: nil,
  websites_subdomain: nil
)
  @auth_provider = auth_provider == nil ? "" : auth_provider
  @created_at = created_at == nil ? nil : created_at
  @idle_timeout = idle_timeout == nil ? nil : idle_timeout
  @idle_timeout_enabled = idle_timeout_enabled == nil ? false : idle_timeout_enabled
  @kind = kind == nil ? "" : kind
  @log_local_encoder = log_local_encoder == nil ? "" : log_local_encoder
  @log_local_format = log_local_format == nil ? "" : log_local_format
  @log_local_storage = log_local_storage == nil ? "" : log_local_storage
  @log_remote_encoder = log_remote_encoder == nil ? "" : log_remote_encoder
  @log_socket_path = log_socket_path == nil ? "" : log_socket_path
  @log_tcp_address = log_tcp_address == nil ? "" : log_tcp_address
  @mfa_enabled = mfa_enabled == nil ? false : mfa_enabled
  @mfa_provider = mfa_provider == nil ? "" : mfa_provider
  @name = name == nil ? "" : name
  @require_secret_store = require_secret_store == nil ? false : require_secret_store
   =  == nil ? "" : 
  @scim_provider = scim_provider == nil ? "" : scim_provider
  @sensitive_label = sensitive_label == nil ? "" : sensitive_label
  @session_timeout = session_timeout == nil ? nil : session_timeout
  @session_timeout_enabled = session_timeout_enabled == nil ? false : session_timeout_enabled
  @ssh_certificate_authority_public_key = ssh_certificate_authority_public_key == nil ? "" : ssh_certificate_authority_public_key
  @ssh_certificate_authority_updated_at = ssh_certificate_authority_updated_at == nil ? nil : ssh_certificate_authority_updated_at
  @updated_at = updated_at == nil ? nil : updated_at
  @websites_subdomain = websites_subdomain == nil ? "" : websites_subdomain
end

Instance Attribute Details

#auth_providerObject

The Organization's authentication provider.



6110
6111
6112
# File 'lib/models/porcelain.rb', line 6110

def auth_provider
  @auth_provider
end

#created_atObject

The time at which the Organization was created.



6112
6113
6114
# File 'lib/models/porcelain.rb', line 6112

def created_at
  @created_at
end

#idle_timeoutObject

The Organization's idle timeout, if enabled.



6114
6115
6116
# File 'lib/models/porcelain.rb', line 6114

def idle_timeout
  @idle_timeout
end

#idle_timeout_enabledObject

Indicates if the Organization has idle timeouts enabled.



6116
6117
6118
# File 'lib/models/porcelain.rb', line 6116

def idle_timeout_enabled
  @idle_timeout_enabled
end

#kindObject

The Organization's type.



6118
6119
6120
# File 'lib/models/porcelain.rb', line 6118

def kind
  @kind
end

#log_local_encoderObject

The Organization's local log encryption encoder.



6120
6121
6122
# File 'lib/models/porcelain.rb', line 6120

def log_local_encoder
  @log_local_encoder
end

#log_local_formatObject

The Organization's local log format.



6122
6123
6124
# File 'lib/models/porcelain.rb', line 6122

def log_local_format
  @log_local_format
end

#log_local_storageObject

The Organization's local log storage.



6124
6125
6126
# File 'lib/models/porcelain.rb', line 6124

def log_local_storage
  @log_local_storage
end

#log_remote_encoderObject

The Organization's remote log encryption encoder.



6126
6127
6128
# File 'lib/models/porcelain.rb', line 6126

def log_remote_encoder
  @log_remote_encoder
end

#log_socket_pathObject

The Organization's socket path for Socket local log storage.



6128
6129
6130
# File 'lib/models/porcelain.rb', line 6128

def log_socket_path
  @log_socket_path
end

#log_tcp_addressObject

The Organization's TCP address for TCP or Syslog local log storage.



6130
6131
6132
# File 'lib/models/porcelain.rb', line 6130

def log_tcp_address
  @log_tcp_address
end

#mfa_enabledObject

Indicates if the Organization has multi-factor authentication enabled.



6132
6133
6134
# File 'lib/models/porcelain.rb', line 6132

def mfa_enabled
  @mfa_enabled
end

#mfa_providerObject

The Organization's multi-factor authentication provider, if enabled.



6134
6135
6136
# File 'lib/models/porcelain.rb', line 6134

def mfa_provider
  @mfa_provider
end

#nameObject

The Organization's name.



6136
6137
6138
# File 'lib/models/porcelain.rb', line 6136

def name
  @name
end

#require_secret_storeObject

Indicates if the Organization requires secret stores.



6138
6139
6140
# File 'lib/models/porcelain.rb', line 6138

def require_secret_store
  @require_secret_store
end

#saml_metadata_urlObject

The Organization's URL for SAML metadata.



6140
6141
6142
# File 'lib/models/porcelain.rb', line 6140

def 
  
end

#scim_providerObject

The Organization's SCIM provider.



6142
6143
6144
# File 'lib/models/porcelain.rb', line 6142

def scim_provider
  @scim_provider
end

#sensitive_labelObject

The Organization's label for sensitive resources.



6144
6145
6146
# File 'lib/models/porcelain.rb', line 6144

def sensitive_label
  @sensitive_label
end

#session_timeoutObject

The Organization's session timeout, if enabled.



6146
6147
6148
# File 'lib/models/porcelain.rb', line 6146

def session_timeout
  @session_timeout
end

#session_timeout_enabledObject

Indicates if the Organization has session timeouts enabled.



6148
6149
6150
# File 'lib/models/porcelain.rb', line 6148

def session_timeout_enabled
  @session_timeout_enabled
end

#ssh_certificate_authority_public_keyObject

The Organization's SSH certificate authority public key.



6150
6151
6152
# File 'lib/models/porcelain.rb', line 6150

def ssh_certificate_authority_public_key
  @ssh_certificate_authority_public_key
end

#ssh_certificate_authority_updated_atObject

The time at which the Organization's SSH certificate authority was last updated.



6152
6153
6154
# File 'lib/models/porcelain.rb', line 6152

def ssh_certificate_authority_updated_at
  @ssh_certificate_authority_updated_at
end

#updated_atObject

The time at which the Organization was last updated.



6154
6155
6156
# File 'lib/models/porcelain.rb', line 6154

def updated_at
  @updated_at
end

#websites_subdomainObject

The Organization's web site domain.



6156
6157
6158
# File 'lib/models/porcelain.rb', line 6156

def websites_subdomain
  @websites_subdomain
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6210
6211
6212
6213
6214
6215
6216
# File 'lib/models/porcelain.rb', line 6210

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end