Class: Harbor2Client::ConfigurationsResponse

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ConfigurationsResponse

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
# File 'lib/harbor2_client/models/configurations_response.rb', line 295

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'auth_mode')
    self.auth_mode = attributes[:'auth_mode']
  end

  if attributes.has_key?(:'email_from')
    self.email_from = attributes[:'email_from']
  end

  if attributes.has_key?(:'email_host')
    self.email_host = attributes[:'email_host']
  end

  if attributes.has_key?(:'email_identity')
    self.email_identity = attributes[:'email_identity']
  end

  if attributes.has_key?(:'email_insecure')
    self.email_insecure = attributes[:'email_insecure']
  end

  if attributes.has_key?(:'email_port')
    self.email_port = attributes[:'email_port']
  end

  if attributes.has_key?(:'email_ssl')
    self.email_ssl = attributes[:'email_ssl']
  end

  if attributes.has_key?(:'email_username')
    self.email_username = attributes[:'email_username']
  end

  if attributes.has_key?(:'ldap_base_dn')
    self.ldap_base_dn = attributes[:'ldap_base_dn']
  end

  if attributes.has_key?(:'ldap_filter')
    self.ldap_filter = attributes[:'ldap_filter']
  end

  if attributes.has_key?(:'ldap_group_base_dn')
    self.ldap_group_base_dn = attributes[:'ldap_group_base_dn']
  end

  if attributes.has_key?(:'ldap_group_admin_dn')
    self.ldap_group_admin_dn = attributes[:'ldap_group_admin_dn']
  end

  if attributes.has_key?(:'ldap_group_attribute_name')
    self.ldap_group_attribute_name = attributes[:'ldap_group_attribute_name']
  end

  if attributes.has_key?(:'ldap_group_search_filter')
    self.ldap_group_search_filter = attributes[:'ldap_group_search_filter']
  end

  if attributes.has_key?(:'ldap_group_search_scope')
    self.ldap_group_search_scope = attributes[:'ldap_group_search_scope']
  end

  if attributes.has_key?(:'ldap_scope')
    self.ldap_scope = attributes[:'ldap_scope']
  end

  if attributes.has_key?(:'ldap_search_dn')
    self.ldap_search_dn = attributes[:'ldap_search_dn']
  end

  if attributes.has_key?(:'ldap_timeout')
    self.ldap_timeout = attributes[:'ldap_timeout']
  end

  if attributes.has_key?(:'ldap_uid')
    self.ldap_uid = attributes[:'ldap_uid']
  end

  if attributes.has_key?(:'ldap_url')
    self.ldap_url = attributes[:'ldap_url']
  end

  if attributes.has_key?(:'ldap_verify_cert')
    self.ldap_verify_cert = attributes[:'ldap_verify_cert']
  end

  if attributes.has_key?(:'ldap_group_membership_attribute')
    self.ldap_group_membership_attribute = attributes[:'ldap_group_membership_attribute']
  end

  if attributes.has_key?(:'project_creation_restriction')
    self.project_creation_restriction = attributes[:'project_creation_restriction']
  end

  if attributes.has_key?(:'read_only')
    self.read_only = attributes[:'read_only']
  end

  if attributes.has_key?(:'self_registration')
    self.self_registration = attributes[:'self_registration']
  end

  if attributes.has_key?(:'token_expiration')
    self.token_expiration = attributes[:'token_expiration']
  end

  if attributes.has_key?(:'uaa_client_id')
    self.uaa_client_id = attributes[:'uaa_client_id']
  end

  if attributes.has_key?(:'uaa_client_secret')
    self.uaa_client_secret = attributes[:'uaa_client_secret']
  end

  if attributes.has_key?(:'uaa_endpoint')
    self.uaa_endpoint = attributes[:'uaa_endpoint']
  end

  if attributes.has_key?(:'uaa_verify_cert')
    self.uaa_verify_cert = attributes[:'uaa_verify_cert']
  end

  if attributes.has_key?(:'http_authproxy_endpoint')
    self.http_authproxy_endpoint = attributes[:'http_authproxy_endpoint']
  end

  if attributes.has_key?(:'http_authproxy_tokenreview_endpoint')
    self.http_authproxy_tokenreview_endpoint = attributes[:'http_authproxy_tokenreview_endpoint']
  end

  if attributes.has_key?(:'http_authproxy_admin_groups')
    self.http_authproxy_admin_groups = attributes[:'http_authproxy_admin_groups']
  end

  if attributes.has_key?(:'http_authproxy_admin_usernames')
    self.http_authproxy_admin_usernames = attributes[:'http_authproxy_admin_usernames']
  end

  if attributes.has_key?(:'http_authproxy_verify_cert')
    self.http_authproxy_verify_cert = attributes[:'http_authproxy_verify_cert']
  end

  if attributes.has_key?(:'http_authproxy_skip_search')
    self.http_authproxy_skip_search = attributes[:'http_authproxy_skip_search']
  end

  if attributes.has_key?(:'http_authproxy_server_certificate')
    self.http_authproxy_server_certificate = attributes[:'http_authproxy_server_certificate']
  end

  if attributes.has_key?(:'oidc_name')
    self.oidc_name = attributes[:'oidc_name']
  end

  if attributes.has_key?(:'oidc_endpoint')
    self.oidc_endpoint = attributes[:'oidc_endpoint']
  end

  if attributes.has_key?(:'oidc_client_id')
    self.oidc_client_id = attributes[:'oidc_client_id']
  end

  if attributes.has_key?(:'oidc_groups_claim')
    self.oidc_groups_claim = attributes[:'oidc_groups_claim']
  end

  if attributes.has_key?(:'oidc_admin_group')
    self.oidc_admin_group = attributes[:'oidc_admin_group']
  end

  if attributes.has_key?(:'oidc_scope')
    self.oidc_scope = attributes[:'oidc_scope']
  end

  if attributes.has_key?(:'oidc_user_claim')
    self.oidc_user_claim = attributes[:'oidc_user_claim']
  end

  if attributes.has_key?(:'oidc_verify_cert')
    self.oidc_verify_cert = attributes[:'oidc_verify_cert']
  end

  if attributes.has_key?(:'oidc_auto_onboard')
    self.oidc_auto_onboard = attributes[:'oidc_auto_onboard']
  end

  if attributes.has_key?(:'oidc_extra_redirect_parms')
    self.oidc_extra_redirect_parms = attributes[:'oidc_extra_redirect_parms']
  end

  if attributes.has_key?(:'robot_token_duration')
    self.robot_token_duration = attributes[:'robot_token_duration']
  end

  if attributes.has_key?(:'robot_name_prefix')
    self.robot_name_prefix = attributes[:'robot_name_prefix']
  end

  if attributes.has_key?(:'notification_enable')
    self.notification_enable = attributes[:'notification_enable']
  end

  if attributes.has_key?(:'quota_per_project_enable')
    self.quota_per_project_enable = attributes[:'quota_per_project_enable']
  end

  if attributes.has_key?(:'storage_per_project')
    self.storage_per_project = attributes[:'storage_per_project']
  end

  if attributes.has_key?(:'scan_all_policy')
    self.scan_all_policy = attributes[:'scan_all_policy']
  end
end

Instance Attribute Details

#auth_modeObject

The auth mode of current system, such as "db_auth", "ldap_auth", "oidc_auth"



18
19
20
# File 'lib/harbor2_client/models/configurations_response.rb', line 18

def auth_mode
  @auth_mode
end

#email_fromObject

The sender name for Email notification.



21
22
23
# File 'lib/harbor2_client/models/configurations_response.rb', line 21

def email_from
  @email_from
end

#email_hostObject

The hostname of SMTP server that sends Email notification.



24
25
26
# File 'lib/harbor2_client/models/configurations_response.rb', line 24

def email_host
  @email_host
end

#email_identityObject

By default it’s empty so the email_username is picked



27
28
29
# File 'lib/harbor2_client/models/configurations_response.rb', line 27

def email_identity
  @email_identity
end

#email_insecureObject

Whether or not the certificate will be verified when Harbor tries to access the email server.



30
31
32
# File 'lib/harbor2_client/models/configurations_response.rb', line 30

def email_insecure
  @email_insecure
end

#email_portObject

The port of SMTP server



33
34
35
# File 'lib/harbor2_client/models/configurations_response.rb', line 33

def email_port
  @email_port
end

#email_sslObject

When it”s set to true the system will access Email server via TLS by default. If it”s set to false, it still will handle "STARTTLS" from server side.



36
37
38
# File 'lib/harbor2_client/models/configurations_response.rb', line 36

def email_ssl
  @email_ssl
end

#email_usernameObject

The username for authenticate against SMTP server



39
40
41
# File 'lib/harbor2_client/models/configurations_response.rb', line 39

def email_username
  @email_username
end

#http_authproxy_admin_groupsObject

The group which has the harbor admin privileges



114
115
116
# File 'lib/harbor2_client/models/configurations_response.rb', line 114

def http_authproxy_admin_groups
  @http_authproxy_admin_groups
end

#http_authproxy_admin_usernamesObject

The usernames which has the harbor admin privileges



117
118
119
# File 'lib/harbor2_client/models/configurations_response.rb', line 117

def http_authproxy_admin_usernames
  @http_authproxy_admin_usernames
end

#http_authproxy_endpointObject

The endpoint of the HTTP auth



108
109
110
# File 'lib/harbor2_client/models/configurations_response.rb', line 108

def http_authproxy_endpoint
  @http_authproxy_endpoint
end

#http_authproxy_server_certificateObject

The certificate of the HTTP auth provider



126
127
128
# File 'lib/harbor2_client/models/configurations_response.rb', line 126

def http_authproxy_server_certificate
  @http_authproxy_server_certificate
end

#http_authproxy_skip_searchObject

Search user before onboard



123
124
125
# File 'lib/harbor2_client/models/configurations_response.rb', line 123

def http_authproxy_skip_search
  @http_authproxy_skip_search
end

#http_authproxy_tokenreview_endpointObject

The token review endpoint



111
112
113
# File 'lib/harbor2_client/models/configurations_response.rb', line 111

def http_authproxy_tokenreview_endpoint
  @http_authproxy_tokenreview_endpoint
end

#http_authproxy_verify_certObject

Verify the HTTP auth provider’s certificate



120
121
122
# File 'lib/harbor2_client/models/configurations_response.rb', line 120

def http_authproxy_verify_cert
  @http_authproxy_verify_cert
end

#ldap_base_dnObject

The Base DN for LDAP binding.



42
43
44
# File 'lib/harbor2_client/models/configurations_response.rb', line 42

def ldap_base_dn
  @ldap_base_dn
end

#ldap_filterObject

The filter for LDAP search



45
46
47
# File 'lib/harbor2_client/models/configurations_response.rb', line 45

def ldap_filter
  @ldap_filter
end

#ldap_group_admin_dnObject

Specify the ldap group which have the same privilege with Harbor admin



51
52
53
# File 'lib/harbor2_client/models/configurations_response.rb', line 51

def ldap_group_admin_dn
  @ldap_group_admin_dn
end

#ldap_group_attribute_nameObject

The attribute which is used as identity of the LDAP group, default is cn.‘



54
55
56
# File 'lib/harbor2_client/models/configurations_response.rb', line 54

def ldap_group_attribute_name
  @ldap_group_attribute_name
end

#ldap_group_base_dnObject

The base DN to search LDAP group.



48
49
50
# File 'lib/harbor2_client/models/configurations_response.rb', line 48

def ldap_group_base_dn
  @ldap_group_base_dn
end

#ldap_group_membership_attributeObject

The user attribute to identify the group membership



81
82
83
# File 'lib/harbor2_client/models/configurations_response.rb', line 81

def ldap_group_membership_attribute
  @ldap_group_membership_attribute
end

#ldap_group_search_filterObject

The filter to search the ldap group



57
58
59
# File 'lib/harbor2_client/models/configurations_response.rb', line 57

def ldap_group_search_filter
  @ldap_group_search_filter
end

#ldap_group_search_scopeObject

The scope to search ldap group. ”0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE”



60
61
62
# File 'lib/harbor2_client/models/configurations_response.rb', line 60

def ldap_group_search_scope
  @ldap_group_search_scope
end

#ldap_scopeObject

The scope to search ldap users,‘0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE’



63
64
65
# File 'lib/harbor2_client/models/configurations_response.rb', line 63

def ldap_scope
  @ldap_scope
end

#ldap_search_dnObject

The DN of the user to do the search.



66
67
68
# File 'lib/harbor2_client/models/configurations_response.rb', line 66

def ldap_search_dn
  @ldap_search_dn
end

#ldap_timeoutObject

Timeout in seconds for connection to LDAP server



69
70
71
# File 'lib/harbor2_client/models/configurations_response.rb', line 69

def ldap_timeout
  @ldap_timeout
end

#ldap_uidObject

The attribute which is used as identity for the LDAP binding, such as "CN" or "SAMAccountname"



72
73
74
# File 'lib/harbor2_client/models/configurations_response.rb', line 72

def ldap_uid
  @ldap_uid
end

#ldap_urlObject

The URL of LDAP server



75
76
77
# File 'lib/harbor2_client/models/configurations_response.rb', line 75

def ldap_url
  @ldap_url
end

#ldap_verify_certObject

Whether verify your OIDC server certificate, disable it if your OIDC server is hosted via self-hosted certificate.



78
79
80
# File 'lib/harbor2_client/models/configurations_response.rb', line 78

def ldap_verify_cert
  @ldap_verify_cert
end

#notification_enableObject

Enable notification



165
166
167
# File 'lib/harbor2_client/models/configurations_response.rb', line 165

def notification_enable
  @notification_enable
end

#oidc_admin_groupObject

The OIDC group which has the harbor admin privileges



141
142
143
# File 'lib/harbor2_client/models/configurations_response.rb', line 141

def oidc_admin_group
  @oidc_admin_group
end

#oidc_auto_onboardObject

Auto onboard the OIDC user



153
154
155
# File 'lib/harbor2_client/models/configurations_response.rb', line 153

def oidc_auto_onboard
  @oidc_auto_onboard
end

#oidc_client_idObject

The client ID of the OIDC provider



135
136
137
# File 'lib/harbor2_client/models/configurations_response.rb', line 135

def oidc_client_id
  @oidc_client_id
end

#oidc_endpointObject

The endpoint of the OIDC provider



132
133
134
# File 'lib/harbor2_client/models/configurations_response.rb', line 132

def oidc_endpoint
  @oidc_endpoint
end

#oidc_extra_redirect_parmsObject

Extra parameters to add when redirect request to OIDC provider



156
157
158
# File 'lib/harbor2_client/models/configurations_response.rb', line 156

def oidc_extra_redirect_parms
  @oidc_extra_redirect_parms
end

#oidc_groups_claimObject

The attribute claims the group name



138
139
140
# File 'lib/harbor2_client/models/configurations_response.rb', line 138

def oidc_groups_claim
  @oidc_groups_claim
end

#oidc_nameObject

The OIDC provider name



129
130
131
# File 'lib/harbor2_client/models/configurations_response.rb', line 129

def oidc_name
  @oidc_name
end

#oidc_scopeObject

The scope of the OIDC provider



144
145
146
# File 'lib/harbor2_client/models/configurations_response.rb', line 144

def oidc_scope
  @oidc_scope
end

#oidc_user_claimObject

The attribute claims the username



147
148
149
# File 'lib/harbor2_client/models/configurations_response.rb', line 147

def oidc_user_claim
  @oidc_user_claim
end

#oidc_verify_certObject

Verify the OIDC provider’s certificate’



150
151
152
# File 'lib/harbor2_client/models/configurations_response.rb', line 150

def oidc_verify_cert
  @oidc_verify_cert
end

#project_creation_restrictionObject

Indicate who can create projects, it could be ”adminonly” or ”everyone”.



84
85
86
# File 'lib/harbor2_client/models/configurations_response.rb', line 84

def project_creation_restriction
  @project_creation_restriction
end

#quota_per_project_enableObject

Enable quota per project



168
169
170
# File 'lib/harbor2_client/models/configurations_response.rb', line 168

def quota_per_project_enable
  @quota_per_project_enable
end

#read_onlyObject

The flag to indicate whether Harbor is in readonly mode.



87
88
89
# File 'lib/harbor2_client/models/configurations_response.rb', line 87

def read_only
  @read_only
end

#robot_name_prefixObject

The rebot account name prefix



162
163
164
# File 'lib/harbor2_client/models/configurations_response.rb', line 162

def robot_name_prefix
  @robot_name_prefix
end

#robot_token_durationObject

The robot account token duration in days



159
160
161
# File 'lib/harbor2_client/models/configurations_response.rb', line 159

def robot_token_duration
  @robot_token_duration
end

#scan_all_policyObject

Returns the value of attribute scan_all_policy.



173
174
175
# File 'lib/harbor2_client/models/configurations_response.rb', line 173

def scan_all_policy
  @scan_all_policy
end

#self_registrationObject

Whether the Harbor instance supports self-registration. If it”s set to false, admin need to add user to the instance.



90
91
92
# File 'lib/harbor2_client/models/configurations_response.rb', line 90

def self_registration
  @self_registration
end

#storage_per_projectObject

The storage quota per project



171
172
173
# File 'lib/harbor2_client/models/configurations_response.rb', line 171

def storage_per_project
  @storage_per_project
end

#token_expirationObject

The expiration time of the token for internal Registry, in minutes.



93
94
95
# File 'lib/harbor2_client/models/configurations_response.rb', line 93

def token_expiration
  @token_expiration
end

#uaa_client_idObject

The client id of UAA



96
97
98
# File 'lib/harbor2_client/models/configurations_response.rb', line 96

def uaa_client_id
  @uaa_client_id
end

#uaa_client_secretObject

The client secret of the UAA



99
100
101
# File 'lib/harbor2_client/models/configurations_response.rb', line 99

def uaa_client_secret
  @uaa_client_secret
end

#uaa_endpointObject

The endpoint of the UAA



102
103
104
# File 'lib/harbor2_client/models/configurations_response.rb', line 102

def uaa_endpoint
  @uaa_endpoint
end

#uaa_verify_certObject

Verify the certificate in UAA server



105
106
107
# File 'lib/harbor2_client/models/configurations_response.rb', line 105

def uaa_verify_cert
  @uaa_verify_cert
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'lib/harbor2_client/models/configurations_response.rb', line 176

def self.attribute_map
  {
    :'auth_mode' => :'auth_mode',
    :'email_from' => :'email_from',
    :'email_host' => :'email_host',
    :'email_identity' => :'email_identity',
    :'email_insecure' => :'email_insecure',
    :'email_port' => :'email_port',
    :'email_ssl' => :'email_ssl',
    :'email_username' => :'email_username',
    :'ldap_base_dn' => :'ldap_base_dn',
    :'ldap_filter' => :'ldap_filter',
    :'ldap_group_base_dn' => :'ldap_group_base_dn',
    :'ldap_group_admin_dn' => :'ldap_group_admin_dn',
    :'ldap_group_attribute_name' => :'ldap_group_attribute_name',
    :'ldap_group_search_filter' => :'ldap_group_search_filter',
    :'ldap_group_search_scope' => :'ldap_group_search_scope',
    :'ldap_scope' => :'ldap_scope',
    :'ldap_search_dn' => :'ldap_search_dn',
    :'ldap_timeout' => :'ldap_timeout',
    :'ldap_uid' => :'ldap_uid',
    :'ldap_url' => :'ldap_url',
    :'ldap_verify_cert' => :'ldap_verify_cert',
    :'ldap_group_membership_attribute' => :'ldap_group_membership_attribute',
    :'project_creation_restriction' => :'project_creation_restriction',
    :'read_only' => :'read_only',
    :'self_registration' => :'self_registration',
    :'token_expiration' => :'token_expiration',
    :'uaa_client_id' => :'uaa_client_id',
    :'uaa_client_secret' => :'uaa_client_secret',
    :'uaa_endpoint' => :'uaa_endpoint',
    :'uaa_verify_cert' => :'uaa_verify_cert',
    :'http_authproxy_endpoint' => :'http_authproxy_endpoint',
    :'http_authproxy_tokenreview_endpoint' => :'http_authproxy_tokenreview_endpoint',
    :'http_authproxy_admin_groups' => :'http_authproxy_admin_groups',
    :'http_authproxy_admin_usernames' => :'http_authproxy_admin_usernames',
    :'http_authproxy_verify_cert' => :'http_authproxy_verify_cert',
    :'http_authproxy_skip_search' => :'http_authproxy_skip_search',
    :'http_authproxy_server_certificate' => :'http_authproxy_server_certificate',
    :'oidc_name' => :'oidc_name',
    :'oidc_endpoint' => :'oidc_endpoint',
    :'oidc_client_id' => :'oidc_client_id',
    :'oidc_groups_claim' => :'oidc_groups_claim',
    :'oidc_admin_group' => :'oidc_admin_group',
    :'oidc_scope' => :'oidc_scope',
    :'oidc_user_claim' => :'oidc_user_claim',
    :'oidc_verify_cert' => :'oidc_verify_cert',
    :'oidc_auto_onboard' => :'oidc_auto_onboard',
    :'oidc_extra_redirect_parms' => :'oidc_extra_redirect_parms',
    :'robot_token_duration' => :'robot_token_duration',
    :'robot_name_prefix' => :'robot_name_prefix',
    :'notification_enable' => :'notification_enable',
    :'quota_per_project_enable' => :'quota_per_project_enable',
    :'storage_per_project' => :'storage_per_project',
    :'scan_all_policy' => :'scan_all_policy'
  }
end

.swagger_typesObject

Attribute type mapping.



235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
# File 'lib/harbor2_client/models/configurations_response.rb', line 235

def self.swagger_types
  {
    :'auth_mode' => :'StringConfigItem',
    :'email_from' => :'StringConfigItem',
    :'email_host' => :'StringConfigItem',
    :'email_identity' => :'StringConfigItem',
    :'email_insecure' => :'BoolConfigItem',
    :'email_port' => :'IntegerConfigItem',
    :'email_ssl' => :'BoolConfigItem',
    :'email_username' => :'StringConfigItem',
    :'ldap_base_dn' => :'StringConfigItem',
    :'ldap_filter' => :'StringConfigItem',
    :'ldap_group_base_dn' => :'StringConfigItem',
    :'ldap_group_admin_dn' => :'StringConfigItem',
    :'ldap_group_attribute_name' => :'StringConfigItem',
    :'ldap_group_search_filter' => :'StringConfigItem',
    :'ldap_group_search_scope' => :'IntegerConfigItem',
    :'ldap_scope' => :'IntegerConfigItem',
    :'ldap_search_dn' => :'StringConfigItem',
    :'ldap_timeout' => :'IntegerConfigItem',
    :'ldap_uid' => :'StringConfigItem',
    :'ldap_url' => :'StringConfigItem',
    :'ldap_verify_cert' => :'BoolConfigItem',
    :'ldap_group_membership_attribute' => :'StringConfigItem',
    :'project_creation_restriction' => :'StringConfigItem',
    :'read_only' => :'BoolConfigItem',
    :'self_registration' => :'BoolConfigItem',
    :'token_expiration' => :'IntegerConfigItem',
    :'uaa_client_id' => :'StringConfigItem',
    :'uaa_client_secret' => :'StringConfigItem',
    :'uaa_endpoint' => :'StringConfigItem',
    :'uaa_verify_cert' => :'BoolConfigItem',
    :'http_authproxy_endpoint' => :'StringConfigItem',
    :'http_authproxy_tokenreview_endpoint' => :'StringConfigItem',
    :'http_authproxy_admin_groups' => :'StringConfigItem',
    :'http_authproxy_admin_usernames' => :'StringConfigItem',
    :'http_authproxy_verify_cert' => :'BoolConfigItem',
    :'http_authproxy_skip_search' => :'BoolConfigItem',
    :'http_authproxy_server_certificate' => :'StringConfigItem',
    :'oidc_name' => :'StringConfigItem',
    :'oidc_endpoint' => :'StringConfigItem',
    :'oidc_client_id' => :'StringConfigItem',
    :'oidc_groups_claim' => :'StringConfigItem',
    :'oidc_admin_group' => :'StringConfigItem',
    :'oidc_scope' => :'StringConfigItem',
    :'oidc_user_claim' => :'StringConfigItem',
    :'oidc_verify_cert' => :'BoolConfigItem',
    :'oidc_auto_onboard' => :'BoolConfigItem',
    :'oidc_extra_redirect_parms' => :'StringConfigItem',
    :'robot_token_duration' => :'IntegerConfigItem',
    :'robot_name_prefix' => :'StringConfigItem',
    :'notification_enable' => :'BoolConfigItem',
    :'quota_per_project_enable' => :'BoolConfigItem',
    :'storage_per_project' => :'IntegerConfigItem',
    :'scan_all_policy' => :'ConfigurationsResponseScanAllPolicy'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
# File 'lib/harbor2_client/models/configurations_response.rb', line 529

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      auth_mode == o.auth_mode &&
      email_from == o.email_from &&
      email_host == o.email_host &&
      email_identity == o.email_identity &&
      email_insecure == o.email_insecure &&
      email_port == o.email_port &&
      email_ssl == o.email_ssl &&
      email_username == o.email_username &&
      ldap_base_dn == o.ldap_base_dn &&
      ldap_filter == o.ldap_filter &&
      ldap_group_base_dn == o.ldap_group_base_dn &&
      ldap_group_admin_dn == o.ldap_group_admin_dn &&
      ldap_group_attribute_name == o.ldap_group_attribute_name &&
      ldap_group_search_filter == o.ldap_group_search_filter &&
      ldap_group_search_scope == o.ldap_group_search_scope &&
      ldap_scope == o.ldap_scope &&
      ldap_search_dn == o.ldap_search_dn &&
      ldap_timeout == o.ldap_timeout &&
      ldap_uid == o.ldap_uid &&
      ldap_url == o.ldap_url &&
      ldap_verify_cert == o.ldap_verify_cert &&
      ldap_group_membership_attribute == o.ldap_group_membership_attribute &&
      project_creation_restriction == o.project_creation_restriction &&
      read_only == o.read_only &&
      self_registration == o.self_registration &&
      token_expiration == o.token_expiration &&
      uaa_client_id == o.uaa_client_id &&
      uaa_client_secret == o.uaa_client_secret &&
      uaa_endpoint == o.uaa_endpoint &&
      uaa_verify_cert == o.uaa_verify_cert &&
      http_authproxy_endpoint == o.http_authproxy_endpoint &&
      http_authproxy_tokenreview_endpoint == o.http_authproxy_tokenreview_endpoint &&
      http_authproxy_admin_groups == o.http_authproxy_admin_groups &&
      http_authproxy_admin_usernames == o.http_authproxy_admin_usernames &&
      http_authproxy_verify_cert == o.http_authproxy_verify_cert &&
      http_authproxy_skip_search == o.http_authproxy_skip_search &&
      http_authproxy_server_certificate == o.http_authproxy_server_certificate &&
      oidc_name == o.oidc_name &&
      oidc_endpoint == o.oidc_endpoint &&
      oidc_client_id == o.oidc_client_id &&
      oidc_groups_claim == o.oidc_groups_claim &&
      oidc_admin_group == o.oidc_admin_group &&
      oidc_scope == o.oidc_scope &&
      oidc_user_claim == o.oidc_user_claim &&
      oidc_verify_cert == o.oidc_verify_cert &&
      oidc_auto_onboard == o.oidc_auto_onboard &&
      oidc_extra_redirect_parms == o.oidc_extra_redirect_parms &&
      robot_token_duration == o.robot_token_duration &&
      robot_name_prefix == o.robot_name_prefix &&
      notification_enable == o.notification_enable &&
      quota_per_project_enable == o.quota_per_project_enable &&
      storage_per_project == o.storage_per_project &&
      scan_all_policy == o.scan_all_policy
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
# File 'lib/harbor2_client/models/configurations_response.rb', line 623

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = Harbor2Client.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



689
690
691
692
693
694
695
696
697
698
699
700
701
# File 'lib/harbor2_client/models/configurations_response.rb', line 689

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
# File 'lib/harbor2_client/models/configurations_response.rb', line 602

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


589
590
591
# File 'lib/harbor2_client/models/configurations_response.rb', line 589

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



595
596
597
# File 'lib/harbor2_client/models/configurations_response.rb', line 595

def hash
  [auth_mode, email_from, email_host, email_identity, email_insecure, email_port, email_ssl, email_username, ldap_base_dn, ldap_filter, ldap_group_base_dn, ldap_group_admin_dn, ldap_group_attribute_name, ldap_group_search_filter, ldap_group_search_scope, ldap_scope, ldap_search_dn, ldap_timeout, ldap_uid, ldap_url, ldap_verify_cert, ldap_group_membership_attribute, project_creation_restriction, read_only, self_registration, token_expiration, uaa_client_id, uaa_client_secret, uaa_endpoint, uaa_verify_cert, http_authproxy_endpoint, http_authproxy_tokenreview_endpoint, http_authproxy_admin_groups, http_authproxy_admin_usernames, http_authproxy_verify_cert, http_authproxy_skip_search, http_authproxy_server_certificate, oidc_name, oidc_endpoint, oidc_client_id, oidc_groups_claim, oidc_admin_group, oidc_scope, oidc_user_claim, oidc_verify_cert, oidc_auto_onboard, oidc_extra_redirect_parms, robot_token_duration, robot_name_prefix, notification_enable, quota_per_project_enable, storage_per_project, scan_all_policy].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



516
517
518
519
# File 'lib/harbor2_client/models/configurations_response.rb', line 516

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



669
670
671
# File 'lib/harbor2_client/models/configurations_response.rb', line 669

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



675
676
677
678
679
680
681
682
683
# File 'lib/harbor2_client/models/configurations_response.rb', line 675

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



663
664
665
# File 'lib/harbor2_client/models/configurations_response.rb', line 663

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



523
524
525
# File 'lib/harbor2_client/models/configurations_response.rb', line 523

def valid?
  true
end