cloudsmith-api 2.0.26 → 2.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +24 -5
- data/build.json +1 -1
- data/docs/AlpinePackageUpload.md +2 -0
- data/docs/CargoPackageUpload.md +2 -0
- data/docs/CocoapodsPackageUpload.md +2 -0
- data/docs/ComposerPackageUpload.md +2 -0
- data/docs/ConanPackageUpload.md +2 -0
- data/docs/CondaPackageUpload.md +2 -0
- data/docs/ConnectedRepository.md +14 -0
- data/docs/ConnectedRepositoryRequest.md +10 -0
- data/docs/ConnectedRepositoryRequestPatch.md +10 -0
- data/docs/CranPackageUpload.md +2 -0
- data/docs/DartPackageUpload.md +2 -0
- data/docs/DebPackageUpload.md +2 -0
- data/docs/DockerPackageUpload.md +2 -0
- data/docs/EntitlementsApi.md +2 -0
- data/docs/FormatSupportUpstream.md +1 -0
- data/docs/GenericPackageUpload.md +2 -0
- data/docs/GoPackageUpload.md +2 -0
- data/docs/HelmPackageUpload.md +2 -0
- data/docs/HexPackageUpload.md +2 -0
- data/docs/HuggingfacePackageUpload.md +2 -0
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +8 -0
- data/docs/LuarocksPackageUpload.md +2 -0
- data/docs/MavenPackageUpload.md +2 -0
- data/docs/McpPackageUpload.md +2 -0
- data/docs/MemberTeams.md +10 -0
- data/docs/NpmPackageUpload.md +2 -0
- data/docs/NugetPackageUpload.md +2 -0
- data/docs/OrganizationCustomDomainNestedRepo.md +9 -0
- data/docs/OrganizationCustomDomains.md +25 -0
- data/docs/OrganizationMembership.md +1 -0
- data/docs/OrganizationSAMLAuth.md +2 -0
- data/docs/OrganizationSAMLAuthRequestPatch.md +2 -0
- data/docs/OrgsApi.md +68 -1
- data/docs/P2PackageUpload.md +2 -0
- data/docs/Package.md +2 -0
- data/docs/PackageCopy.md +2 -0
- data/docs/PackageMove.md +2 -0
- data/docs/PackageQuarantine.md +2 -0
- data/docs/PackageResync.md +2 -0
- data/docs/PackageStatus.md +1 -0
- data/docs/PackageTag.md +2 -0
- data/docs/PackagesApi.md +22 -6
- data/docs/PythonPackageUpload.md +2 -0
- data/docs/RawPackageUpload.md +2 -0
- data/docs/RecycleBinApi.md +24 -24
- data/docs/ReposApi.md +594 -3
- data/docs/Repository.md +2 -0
- data/docs/RepositoryCreate.md +2 -0
- data/docs/RepositoryCreateRequest.md +1 -0
- data/docs/RepositoryEd25519Key.md +14 -0
- data/docs/RepositoryEd25519KeyCreate.md +9 -0
- data/docs/RepositoryRequestPatch.md +1 -0
- data/docs/RpmPackageUpload.md +2 -0
- data/docs/RubyPackageUpload.md +2 -0
- data/docs/ServiceTeams.md +1 -0
- data/docs/SwiftPackageUpload.md +2 -0
- data/docs/TerraformPackageUpload.md +2 -0
- data/docs/UserApi.md +2 -2
- data/docs/VagrantPackageUpload.md +2 -0
- data/docs/VsxPackageUpload.md +2 -0
- data/lib/cloudsmith-api/api/entitlements_api.rb +3 -0
- data/lib/cloudsmith-api/api/orgs_api.rb +63 -0
- data/lib/cloudsmith-api/api/packages_api.rb +15 -0
- data/lib/cloudsmith-api/api/recycle_bin_api.rb +41 -41
- data/lib/cloudsmith-api/api/repos_api.rb +581 -4
- data/lib/cloudsmith-api/api/user_api.rb +3 -3
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/cargo_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/cargo_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/composer_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/composer_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/composer_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/conan_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/conda_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/conda_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/conda_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/connected_repository.rb +285 -0
- data/lib/cloudsmith-api/models/connected_repository_request.rb +211 -0
- data/lib/cloudsmith-api/models/connected_repository_request_patch.rb +206 -0
- data/lib/cloudsmith-api/models/cran_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/cran_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/cran_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/dart_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/dart_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/deb_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/deb_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/docker_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/format_support_upstream.rb +16 -1
- data/lib/cloudsmith-api/models/generic_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/generic_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/generic_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/go_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/helm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/helm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/hex_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/hex_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/hex_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/huggingface_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/inline_response_200_1.rb +1 -1
- data/lib/cloudsmith-api/models/inline_response_200_2.rb +191 -0
- data/lib/cloudsmith-api/models/luarocks_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/maven_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/mcp_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/member_teams.rb +238 -0
- data/lib/cloudsmith-api/models/npm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/npm_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/nuget_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/organization_custom_domain_nested_repo.rb +195 -0
- data/lib/cloudsmith-api/models/organization_custom_domains.rb +355 -0
- data/lib/cloudsmith-api/models/organization_membership.rb +12 -1
- data/lib/cloudsmith-api/models/organization_saml_auth.rb +24 -4
- data/lib/cloudsmith-api/models/organization_saml_auth_request_patch.rb +24 -4
- data/lib/cloudsmith-api/models/p2_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/package.rb +20 -1
- data/lib/cloudsmith-api/models/package_copy.rb +20 -1
- data/lib/cloudsmith-api/models/package_move.rb +20 -1
- data/lib/cloudsmith-api/models/package_quarantine.rb +20 -1
- data/lib/cloudsmith-api/models/package_resync.rb +20 -1
- data/lib/cloudsmith-api/models/package_status.rb +10 -1
- data/lib/cloudsmith-api/models/package_tag.rb +20 -1
- data/lib/cloudsmith-api/models/python_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/python_upstream.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request.rb +2 -2
- data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +2 -2
- data/lib/cloudsmith-api/models/raw_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/repository.rb +21 -1
- data/lib/cloudsmith-api/models/repository_create.rb +21 -1
- data/lib/cloudsmith-api/models/repository_create_request.rb +11 -1
- data/lib/cloudsmith-api/models/repository_ed25519_key.rb +243 -0
- data/lib/cloudsmith-api/models/repository_ed25519_key_create.rb +200 -0
- data/lib/cloudsmith-api/models/repository_request_patch.rb +11 -1
- data/lib/cloudsmith-api/models/rpm_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/ruby_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/service_teams.rb +11 -1
- data/lib/cloudsmith-api/models/swift_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/terraform_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +20 -1
- data/lib/cloudsmith-api/models/vsx_package_upload.rb +20 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +9 -0
- data/spec/api/entitlements_api_spec.rb +1 -0
- data/spec/api/orgs_api_spec.rb +15 -0
- data/spec/api/packages_api_spec.rb +5 -0
- data/spec/api/recycle_bin_api_spec.rb +12 -12
- data/spec/api/repos_api_spec.rb +129 -2
- data/spec/api/user_api_spec.rb +1 -1
- data/spec/models/alpine_package_upload_spec.rb +12 -0
- data/spec/models/cargo_package_upload_spec.rb +12 -0
- data/spec/models/cargo_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cargo_upstream_request_spec.rb +1 -1
- data/spec/models/cargo_upstream_spec.rb +1 -1
- data/spec/models/cocoapods_package_upload_spec.rb +12 -0
- data/spec/models/composer_package_upload_spec.rb +12 -0
- data/spec/models/composer_upstream_request_patch_spec.rb +1 -1
- data/spec/models/composer_upstream_request_spec.rb +1 -1
- data/spec/models/composer_upstream_spec.rb +1 -1
- data/spec/models/conan_package_upload_spec.rb +12 -0
- data/spec/models/conda_package_upload_spec.rb +12 -0
- data/spec/models/conda_upstream_request_patch_spec.rb +1 -1
- data/spec/models/conda_upstream_request_spec.rb +1 -1
- data/spec/models/conda_upstream_spec.rb +1 -1
- data/spec/models/connected_repository_request_patch_spec.rb +53 -0
- data/spec/models/connected_repository_request_spec.rb +53 -0
- data/spec/models/connected_repository_spec.rb +81 -0
- data/spec/models/cran_package_upload_spec.rb +12 -0
- data/spec/models/cran_upstream_request_patch_spec.rb +1 -1
- data/spec/models/cran_upstream_request_spec.rb +1 -1
- data/spec/models/cran_upstream_spec.rb +1 -1
- data/spec/models/dart_package_upload_spec.rb +12 -0
- data/spec/models/dart_upstream_request_patch_spec.rb +1 -1
- data/spec/models/dart_upstream_request_spec.rb +1 -1
- data/spec/models/dart_upstream_spec.rb +1 -1
- data/spec/models/deb_package_upload_spec.rb +12 -0
- data/spec/models/deb_upstream_request_patch_spec.rb +1 -1
- data/spec/models/deb_upstream_request_spec.rb +1 -1
- data/spec/models/deb_upstream_spec.rb +1 -1
- data/spec/models/docker_package_upload_spec.rb +12 -0
- data/spec/models/format_support_upstream_spec.rb +6 -0
- data/spec/models/generic_package_upload_spec.rb +12 -0
- data/spec/models/generic_upstream_request_patch_spec.rb +1 -1
- data/spec/models/generic_upstream_request_spec.rb +1 -1
- data/spec/models/generic_upstream_spec.rb +1 -1
- data/spec/models/go_package_upload_spec.rb +12 -0
- data/spec/models/helm_package_upload_spec.rb +12 -0
- data/spec/models/helm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/helm_upstream_request_spec.rb +1 -1
- data/spec/models/helm_upstream_spec.rb +1 -1
- data/spec/models/hex_package_upload_spec.rb +12 -0
- data/spec/models/hex_upstream_request_patch_spec.rb +1 -1
- data/spec/models/hex_upstream_request_spec.rb +1 -1
- data/spec/models/hex_upstream_spec.rb +1 -1
- data/spec/models/huggingface_package_upload_spec.rb +12 -0
- data/spec/models/inline_response_200_2_spec.rb +41 -0
- data/spec/models/luarocks_package_upload_spec.rb +12 -0
- data/spec/models/maven_package_upload_spec.rb +12 -0
- data/spec/models/mcp_package_upload_spec.rb +12 -0
- data/spec/models/member_teams_spec.rb +57 -0
- data/spec/models/npm_package_upload_spec.rb +12 -0
- data/spec/models/npm_upstream_request_patch_spec.rb +1 -1
- data/spec/models/npm_upstream_request_spec.rb +1 -1
- data/spec/models/npm_upstream_spec.rb +1 -1
- data/spec/models/nuget_package_upload_spec.rb +12 -0
- data/spec/models/nuget_upstream_request_patch_spec.rb +1 -1
- data/spec/models/nuget_upstream_request_spec.rb +1 -1
- data/spec/models/nuget_upstream_spec.rb +1 -1
- data/spec/models/organization_custom_domain_nested_repo_spec.rb +47 -0
- data/spec/models/organization_custom_domains_spec.rb +143 -0
- data/spec/models/organization_membership_spec.rb +6 -0
- data/spec/models/organization_saml_auth_request_patch_spec.rb +12 -0
- data/spec/models/organization_saml_auth_spec.rb +12 -0
- data/spec/models/p2_package_upload_spec.rb +12 -0
- data/spec/models/package_copy_spec.rb +12 -0
- data/spec/models/package_move_spec.rb +12 -0
- data/spec/models/package_quarantine_spec.rb +12 -0
- data/spec/models/package_resync_spec.rb +12 -0
- data/spec/models/package_spec.rb +12 -0
- data/spec/models/package_status_spec.rb +6 -0
- data/spec/models/package_tag_spec.rb +12 -0
- data/spec/models/python_package_upload_spec.rb +12 -0
- data/spec/models/python_upstream_request_patch_spec.rb +1 -1
- data/spec/models/python_upstream_request_spec.rb +1 -1
- data/spec/models/python_upstream_spec.rb +1 -1
- data/spec/models/raw_package_upload_spec.rb +12 -0
- data/spec/models/repository_create_request_spec.rb +6 -0
- data/spec/models/repository_create_spec.rb +12 -0
- data/spec/models/repository_ed25519_key_create_spec.rb +47 -0
- data/spec/models/repository_ed25519_key_spec.rb +77 -0
- data/spec/models/repository_request_patch_spec.rb +6 -0
- data/spec/models/repository_spec.rb +12 -0
- data/spec/models/rpm_package_upload_spec.rb +12 -0
- data/spec/models/ruby_package_upload_spec.rb +12 -0
- data/spec/models/service_teams_spec.rb +6 -0
- data/spec/models/swift_package_upload_spec.rb +12 -0
- data/spec/models/terraform_package_upload_spec.rb +12 -0
- data/spec/models/vagrant_package_upload_spec.rb +12 -0
- data/spec/models/vsx_package_upload_spec.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- metadata +41 -5
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module CloudsmithApi
|
|
16
|
+
class OrganizationCustomDomainNestedRepo
|
|
17
|
+
# A descriptive name for the repository.
|
|
18
|
+
attr_accessor :name
|
|
19
|
+
|
|
20
|
+
# The slug identifies the repository in URIs.
|
|
21
|
+
attr_accessor :slug
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'name' => :'name',
|
|
27
|
+
:'slug' => :'slug'
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Attribute type mapping.
|
|
32
|
+
def self.swagger_types
|
|
33
|
+
{
|
|
34
|
+
:'name' => :'String',
|
|
35
|
+
:'slug' => :'String'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Initializes the object
|
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
41
|
+
def initialize(attributes = {})
|
|
42
|
+
return unless attributes.is_a?(Hash)
|
|
43
|
+
|
|
44
|
+
# convert string to symbol for hash key
|
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
46
|
+
|
|
47
|
+
if attributes.has_key?(:'name')
|
|
48
|
+
self.name = attributes[:'name']
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
if attributes.has_key?(:'slug')
|
|
52
|
+
self.slug = attributes[:'slug']
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
57
|
+
# @return Array for valid properties with the reasons
|
|
58
|
+
def list_invalid_properties
|
|
59
|
+
invalid_properties = Array.new
|
|
60
|
+
invalid_properties
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Check to see if the all the properties in the model are valid
|
|
64
|
+
# @return true if the model is valid
|
|
65
|
+
def valid?
|
|
66
|
+
true
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Checks equality by comparing each attribute.
|
|
70
|
+
# @param [Object] Object to be compared
|
|
71
|
+
def ==(o)
|
|
72
|
+
return true if self.equal?(o)
|
|
73
|
+
self.class == o.class &&
|
|
74
|
+
name == o.name &&
|
|
75
|
+
slug == o.slug
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# @see the `==` method
|
|
79
|
+
# @param [Object] Object to be compared
|
|
80
|
+
def eql?(o)
|
|
81
|
+
self == o
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Calculates hash code according to all attributes.
|
|
85
|
+
# @return [Fixnum] Hash code
|
|
86
|
+
def hash
|
|
87
|
+
[name, slug].hash
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Builds the object from hash
|
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
92
|
+
# @return [Object] Returns the model itself
|
|
93
|
+
def build_from_hash(attributes)
|
|
94
|
+
return nil unless attributes.is_a?(Hash)
|
|
95
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
96
|
+
if type =~ /\AArray<(.*)>/i
|
|
97
|
+
# check to ensure the input is an array given that the attribute
|
|
98
|
+
# is documented as an array but the input is not
|
|
99
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
101
|
+
end
|
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
103
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
104
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
self
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Deserializes the data based on type
|
|
111
|
+
# @param string type Data type
|
|
112
|
+
# @param string value Value to be deserialized
|
|
113
|
+
# @return [Object] Deserialized data
|
|
114
|
+
def _deserialize(type, value)
|
|
115
|
+
case type.to_sym
|
|
116
|
+
when :DateTime
|
|
117
|
+
DateTime.parse(value)
|
|
118
|
+
when :Date
|
|
119
|
+
Date.parse(value)
|
|
120
|
+
when :String
|
|
121
|
+
value.to_s
|
|
122
|
+
when :Integer
|
|
123
|
+
value.to_i
|
|
124
|
+
when :Float
|
|
125
|
+
value.to_f
|
|
126
|
+
when :BOOLEAN
|
|
127
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
128
|
+
true
|
|
129
|
+
else
|
|
130
|
+
false
|
|
131
|
+
end
|
|
132
|
+
when :Object
|
|
133
|
+
# generic object (usually a Hash), return directly
|
|
134
|
+
value
|
|
135
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
136
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
137
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
138
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
139
|
+
k_type = Regexp.last_match[:k_type]
|
|
140
|
+
v_type = Regexp.last_match[:v_type]
|
|
141
|
+
{}.tap do |hash|
|
|
142
|
+
value.each do |k, v|
|
|
143
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
else # model
|
|
147
|
+
temp_model = CloudsmithApi.const_get(type).new
|
|
148
|
+
temp_model.build_from_hash(value)
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Returns the string representation of the object
|
|
153
|
+
# @return [String] String presentation of the object
|
|
154
|
+
def to_s
|
|
155
|
+
to_hash.to_s
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
|
160
|
+
def to_body
|
|
161
|
+
to_hash
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Returns the object in the form of hash
|
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
|
166
|
+
def to_hash
|
|
167
|
+
hash = {}
|
|
168
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
169
|
+
value = self.send(attr)
|
|
170
|
+
next if value.nil?
|
|
171
|
+
hash[param] = _to_hash(value)
|
|
172
|
+
end
|
|
173
|
+
hash
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Outputs non-array value in the form of hash
|
|
177
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
178
|
+
# @param [Object] value Any valid value
|
|
179
|
+
# @return [Hash] Returns the value in the form of hash
|
|
180
|
+
def _to_hash(value)
|
|
181
|
+
if value.is_a?(Array)
|
|
182
|
+
value.compact.map { |v| _to_hash(v) }
|
|
183
|
+
elsif value.is_a?(Hash)
|
|
184
|
+
{}.tap do |hash|
|
|
185
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
186
|
+
end
|
|
187
|
+
elsif value.respond_to? :to_hash
|
|
188
|
+
value.to_hash
|
|
189
|
+
else
|
|
190
|
+
value
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
end
|
|
195
|
+
end
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cloudsmith API (v1)
|
|
3
|
+
|
|
4
|
+
#The API to the Cloudsmith Service
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudsmith.io
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.50
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module CloudsmithApi
|
|
16
|
+
class OrganizationCustomDomains
|
|
17
|
+
# The domain for a specific package format.
|
|
18
|
+
attr_accessor :backend_kind
|
|
19
|
+
|
|
20
|
+
attr_accessor :created_at
|
|
21
|
+
|
|
22
|
+
attr_accessor :created_by
|
|
23
|
+
|
|
24
|
+
# The CNAME value to use to publish this domain publicly.
|
|
25
|
+
attr_accessor :dns_alias_value
|
|
26
|
+
|
|
27
|
+
# The CNAME name to create to allow us to generate a TLS cert.
|
|
28
|
+
attr_accessor :dns_cert_name
|
|
29
|
+
|
|
30
|
+
# The CNAME value to use to allow us to generate a TLS cert.
|
|
31
|
+
attr_accessor :dns_cert_value
|
|
32
|
+
|
|
33
|
+
# The type for the custom domain.
|
|
34
|
+
attr_accessor :domain_type
|
|
35
|
+
|
|
36
|
+
# If checked, the domain is enabled.
|
|
37
|
+
attr_accessor :enabled
|
|
38
|
+
|
|
39
|
+
attr_accessor :host
|
|
40
|
+
|
|
41
|
+
attr_accessor :namespace
|
|
42
|
+
|
|
43
|
+
# If checked, this domain is the preferred/primary domain in the case that there are other overlapping domains (e.g. for the same repository, package format, etc.)
|
|
44
|
+
attr_accessor :primary
|
|
45
|
+
|
|
46
|
+
# If checked, the domain root redirects to the repository.
|
|
47
|
+
attr_accessor :redirect_root
|
|
48
|
+
|
|
49
|
+
# Where root requests should be redirected to if redirect_root is enabled.
|
|
50
|
+
attr_accessor :redirect_root_url
|
|
51
|
+
|
|
52
|
+
attr_accessor :repository
|
|
53
|
+
|
|
54
|
+
# If checked, the domain applies to a specific repository only.
|
|
55
|
+
attr_accessor :repository_only
|
|
56
|
+
|
|
57
|
+
attr_accessor :slug_perm
|
|
58
|
+
|
|
59
|
+
# If validated, the domain is ready for requests.
|
|
60
|
+
attr_accessor :validated
|
|
61
|
+
|
|
62
|
+
attr_accessor :validated_at
|
|
63
|
+
|
|
64
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
65
|
+
def self.attribute_map
|
|
66
|
+
{
|
|
67
|
+
:'backend_kind' => :'backend_kind',
|
|
68
|
+
:'created_at' => :'created_at',
|
|
69
|
+
:'created_by' => :'created_by',
|
|
70
|
+
:'dns_alias_value' => :'dns_alias_value',
|
|
71
|
+
:'dns_cert_name' => :'dns_cert_name',
|
|
72
|
+
:'dns_cert_value' => :'dns_cert_value',
|
|
73
|
+
:'domain_type' => :'domain_type',
|
|
74
|
+
:'enabled' => :'enabled',
|
|
75
|
+
:'host' => :'host',
|
|
76
|
+
:'namespace' => :'namespace',
|
|
77
|
+
:'primary' => :'primary',
|
|
78
|
+
:'redirect_root' => :'redirect_root',
|
|
79
|
+
:'redirect_root_url' => :'redirect_root_url',
|
|
80
|
+
:'repository' => :'repository',
|
|
81
|
+
:'repository_only' => :'repository_only',
|
|
82
|
+
:'slug_perm' => :'slug_perm',
|
|
83
|
+
:'validated' => :'validated',
|
|
84
|
+
:'validated_at' => :'validated_at'
|
|
85
|
+
}
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Attribute type mapping.
|
|
89
|
+
def self.swagger_types
|
|
90
|
+
{
|
|
91
|
+
:'backend_kind' => :'Integer',
|
|
92
|
+
:'created_at' => :'DateTime',
|
|
93
|
+
:'created_by' => :'Integer',
|
|
94
|
+
:'dns_alias_value' => :'String',
|
|
95
|
+
:'dns_cert_name' => :'String',
|
|
96
|
+
:'dns_cert_value' => :'String',
|
|
97
|
+
:'domain_type' => :'Integer',
|
|
98
|
+
:'enabled' => :'BOOLEAN',
|
|
99
|
+
:'host' => :'String',
|
|
100
|
+
:'namespace' => :'Integer',
|
|
101
|
+
:'primary' => :'BOOLEAN',
|
|
102
|
+
:'redirect_root' => :'BOOLEAN',
|
|
103
|
+
:'redirect_root_url' => :'String',
|
|
104
|
+
:'repository' => :'OrganizationCustomDomainNestedRepo',
|
|
105
|
+
:'repository_only' => :'BOOLEAN',
|
|
106
|
+
:'slug_perm' => :'String',
|
|
107
|
+
:'validated' => :'BOOLEAN',
|
|
108
|
+
:'validated_at' => :'DateTime'
|
|
109
|
+
}
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Initializes the object
|
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
114
|
+
def initialize(attributes = {})
|
|
115
|
+
return unless attributes.is_a?(Hash)
|
|
116
|
+
|
|
117
|
+
# convert string to symbol for hash key
|
|
118
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
119
|
+
|
|
120
|
+
if attributes.has_key?(:'backend_kind')
|
|
121
|
+
self.backend_kind = attributes[:'backend_kind']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.has_key?(:'created_at')
|
|
125
|
+
self.created_at = attributes[:'created_at']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.has_key?(:'created_by')
|
|
129
|
+
self.created_by = attributes[:'created_by']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.has_key?(:'dns_alias_value')
|
|
133
|
+
self.dns_alias_value = attributes[:'dns_alias_value']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.has_key?(:'dns_cert_name')
|
|
137
|
+
self.dns_cert_name = attributes[:'dns_cert_name']
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.has_key?(:'dns_cert_value')
|
|
141
|
+
self.dns_cert_value = attributes[:'dns_cert_value']
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.has_key?(:'domain_type')
|
|
145
|
+
self.domain_type = attributes[:'domain_type']
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.has_key?(:'enabled')
|
|
149
|
+
self.enabled = attributes[:'enabled']
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.has_key?(:'host')
|
|
153
|
+
self.host = attributes[:'host']
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.has_key?(:'namespace')
|
|
157
|
+
self.namespace = attributes[:'namespace']
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.has_key?(:'primary')
|
|
161
|
+
self.primary = attributes[:'primary']
|
|
162
|
+
else
|
|
163
|
+
self.primary = true
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.has_key?(:'redirect_root')
|
|
167
|
+
self.redirect_root = attributes[:'redirect_root']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.has_key?(:'redirect_root_url')
|
|
171
|
+
self.redirect_root_url = attributes[:'redirect_root_url']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.has_key?(:'repository')
|
|
175
|
+
self.repository = attributes[:'repository']
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.has_key?(:'repository_only')
|
|
179
|
+
self.repository_only = attributes[:'repository_only']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.has_key?(:'slug_perm')
|
|
183
|
+
self.slug_perm = attributes[:'slug_perm']
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.has_key?(:'validated')
|
|
187
|
+
self.validated = attributes[:'validated']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.has_key?(:'validated_at')
|
|
191
|
+
self.validated_at = attributes[:'validated_at']
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
196
|
+
# @return Array for valid properties with the reasons
|
|
197
|
+
def list_invalid_properties
|
|
198
|
+
invalid_properties = Array.new
|
|
199
|
+
if @repository.nil?
|
|
200
|
+
invalid_properties.push('invalid value for "repository", repository cannot be nil.')
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
invalid_properties
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Check to see if the all the properties in the model are valid
|
|
207
|
+
# @return true if the model is valid
|
|
208
|
+
def valid?
|
|
209
|
+
return false if @repository.nil?
|
|
210
|
+
true
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Checks equality by comparing each attribute.
|
|
214
|
+
# @param [Object] Object to be compared
|
|
215
|
+
def ==(o)
|
|
216
|
+
return true if self.equal?(o)
|
|
217
|
+
self.class == o.class &&
|
|
218
|
+
backend_kind == o.backend_kind &&
|
|
219
|
+
created_at == o.created_at &&
|
|
220
|
+
created_by == o.created_by &&
|
|
221
|
+
dns_alias_value == o.dns_alias_value &&
|
|
222
|
+
dns_cert_name == o.dns_cert_name &&
|
|
223
|
+
dns_cert_value == o.dns_cert_value &&
|
|
224
|
+
domain_type == o.domain_type &&
|
|
225
|
+
enabled == o.enabled &&
|
|
226
|
+
host == o.host &&
|
|
227
|
+
namespace == o.namespace &&
|
|
228
|
+
primary == o.primary &&
|
|
229
|
+
redirect_root == o.redirect_root &&
|
|
230
|
+
redirect_root_url == o.redirect_root_url &&
|
|
231
|
+
repository == o.repository &&
|
|
232
|
+
repository_only == o.repository_only &&
|
|
233
|
+
slug_perm == o.slug_perm &&
|
|
234
|
+
validated == o.validated &&
|
|
235
|
+
validated_at == o.validated_at
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# @see the `==` method
|
|
239
|
+
# @param [Object] Object to be compared
|
|
240
|
+
def eql?(o)
|
|
241
|
+
self == o
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Calculates hash code according to all attributes.
|
|
245
|
+
# @return [Fixnum] Hash code
|
|
246
|
+
def hash
|
|
247
|
+
[backend_kind, created_at, created_by, dns_alias_value, dns_cert_name, dns_cert_value, domain_type, enabled, host, namespace, primary, redirect_root, redirect_root_url, repository, repository_only, slug_perm, validated, validated_at].hash
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Builds the object from hash
|
|
251
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
252
|
+
# @return [Object] Returns the model itself
|
|
253
|
+
def build_from_hash(attributes)
|
|
254
|
+
return nil unless attributes.is_a?(Hash)
|
|
255
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
256
|
+
if type =~ /\AArray<(.*)>/i
|
|
257
|
+
# check to ensure the input is an array given that the attribute
|
|
258
|
+
# is documented as an array but the input is not
|
|
259
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
260
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
261
|
+
end
|
|
262
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
263
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
264
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
self
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Deserializes the data based on type
|
|
271
|
+
# @param string type Data type
|
|
272
|
+
# @param string value Value to be deserialized
|
|
273
|
+
# @return [Object] Deserialized data
|
|
274
|
+
def _deserialize(type, value)
|
|
275
|
+
case type.to_sym
|
|
276
|
+
when :DateTime
|
|
277
|
+
DateTime.parse(value)
|
|
278
|
+
when :Date
|
|
279
|
+
Date.parse(value)
|
|
280
|
+
when :String
|
|
281
|
+
value.to_s
|
|
282
|
+
when :Integer
|
|
283
|
+
value.to_i
|
|
284
|
+
when :Float
|
|
285
|
+
value.to_f
|
|
286
|
+
when :BOOLEAN
|
|
287
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
288
|
+
true
|
|
289
|
+
else
|
|
290
|
+
false
|
|
291
|
+
end
|
|
292
|
+
when :Object
|
|
293
|
+
# generic object (usually a Hash), return directly
|
|
294
|
+
value
|
|
295
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
296
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
297
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
298
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
299
|
+
k_type = Regexp.last_match[:k_type]
|
|
300
|
+
v_type = Regexp.last_match[:v_type]
|
|
301
|
+
{}.tap do |hash|
|
|
302
|
+
value.each do |k, v|
|
|
303
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
else # model
|
|
307
|
+
temp_model = CloudsmithApi.const_get(type).new
|
|
308
|
+
temp_model.build_from_hash(value)
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Returns the string representation of the object
|
|
313
|
+
# @return [String] String presentation of the object
|
|
314
|
+
def to_s
|
|
315
|
+
to_hash.to_s
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
319
|
+
# @return [Hash] Returns the object in the form of hash
|
|
320
|
+
def to_body
|
|
321
|
+
to_hash
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Returns the object in the form of hash
|
|
325
|
+
# @return [Hash] Returns the object in the form of hash
|
|
326
|
+
def to_hash
|
|
327
|
+
hash = {}
|
|
328
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
329
|
+
value = self.send(attr)
|
|
330
|
+
next if value.nil?
|
|
331
|
+
hash[param] = _to_hash(value)
|
|
332
|
+
end
|
|
333
|
+
hash
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Outputs non-array value in the form of hash
|
|
337
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
338
|
+
# @param [Object] value Any valid value
|
|
339
|
+
# @return [Hash] Returns the value in the form of hash
|
|
340
|
+
def _to_hash(value)
|
|
341
|
+
if value.is_a?(Array)
|
|
342
|
+
value.compact.map { |v| _to_hash(v) }
|
|
343
|
+
elsif value.is_a?(Hash)
|
|
344
|
+
{}.tap do |hash|
|
|
345
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
346
|
+
end
|
|
347
|
+
elsif value.respond_to? :to_hash
|
|
348
|
+
value.to_hash
|
|
349
|
+
else
|
|
350
|
+
value
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
end
|
|
355
|
+
end
|
|
@@ -28,6 +28,8 @@ class OrganizationMembership
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :role
|
|
30
30
|
|
|
31
|
+
attr_accessor :teams
|
|
32
|
+
|
|
31
33
|
attr_accessor :user
|
|
32
34
|
|
|
33
35
|
attr_accessor :user_id
|
|
@@ -70,6 +72,7 @@ class OrganizationMembership
|
|
|
70
72
|
:'last_login_at' => :'last_login_at',
|
|
71
73
|
:'last_login_method' => :'last_login_method',
|
|
72
74
|
:'role' => :'role',
|
|
75
|
+
:'teams' => :'teams',
|
|
73
76
|
:'user' => :'user',
|
|
74
77
|
:'user_id' => :'user_id',
|
|
75
78
|
:'user_name' => :'user_name',
|
|
@@ -88,6 +91,7 @@ class OrganizationMembership
|
|
|
88
91
|
:'last_login_at' => :'DateTime',
|
|
89
92
|
:'last_login_method' => :'String',
|
|
90
93
|
:'role' => :'String',
|
|
94
|
+
:'teams' => :'Array<MemberTeams>',
|
|
91
95
|
:'user' => :'String',
|
|
92
96
|
:'user_id' => :'String',
|
|
93
97
|
:'user_name' => :'String',
|
|
@@ -136,6 +140,12 @@ class OrganizationMembership
|
|
|
136
140
|
self.role = 'Owner'
|
|
137
141
|
end
|
|
138
142
|
|
|
143
|
+
if attributes.has_key?(:'teams')
|
|
144
|
+
if (value = attributes[:'teams']).is_a?(Array)
|
|
145
|
+
self.teams = value
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
139
149
|
if attributes.has_key?(:'user')
|
|
140
150
|
self.user = attributes[:'user']
|
|
141
151
|
end
|
|
@@ -220,6 +230,7 @@ class OrganizationMembership
|
|
|
220
230
|
last_login_at == o.last_login_at &&
|
|
221
231
|
last_login_method == o.last_login_method &&
|
|
222
232
|
role == o.role &&
|
|
233
|
+
teams == o.teams &&
|
|
223
234
|
user == o.user &&
|
|
224
235
|
user_id == o.user_id &&
|
|
225
236
|
user_name == o.user_name &&
|
|
@@ -236,7 +247,7 @@ class OrganizationMembership
|
|
|
236
247
|
# Calculates hash code according to all attributes.
|
|
237
248
|
# @return [Fixnum] Hash code
|
|
238
249
|
def hash
|
|
239
|
-
[email, has_two_factor, is_active, joined_at, last_login_at, last_login_method, role, user, user_id, user_name, user_url, visibility].hash
|
|
250
|
+
[email, has_two_factor, is_active, joined_at, last_login_at, last_login_method, role, teams, user, user_id, user_name, user_url, visibility].hash
|
|
240
251
|
end
|
|
241
252
|
|
|
242
253
|
# Builds the object from hash
|
|
@@ -21,16 +21,24 @@ class OrganizationSAMLAuth
|
|
|
21
21
|
# If configured, SAML metadata will be used as entered instead of retrieved from a remote URL.
|
|
22
22
|
attr_accessor :saml_metadata_inline
|
|
23
23
|
|
|
24
|
+
# When configured, this inline SAML metadata is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.
|
|
25
|
+
attr_accessor :saml_metadata_inline_webapp
|
|
26
|
+
|
|
24
27
|
# If configured, SAML metadata be retrieved from a remote URL.
|
|
25
28
|
attr_accessor :saml_metadata_url
|
|
26
29
|
|
|
30
|
+
# When configured, this SAML metadata URL is used instead of the legacy app SAML configuration when signing into the new Cloudsmith web application.
|
|
31
|
+
attr_accessor :saml_metadata_url_webapp
|
|
32
|
+
|
|
27
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
34
|
def self.attribute_map
|
|
29
35
|
{
|
|
30
36
|
:'saml_auth_enabled' => :'saml_auth_enabled',
|
|
31
37
|
:'saml_auth_enforced' => :'saml_auth_enforced',
|
|
32
38
|
:'saml_metadata_inline' => :'saml_metadata_inline',
|
|
33
|
-
:'
|
|
39
|
+
:'saml_metadata_inline_webapp' => :'saml_metadata_inline_webapp',
|
|
40
|
+
:'saml_metadata_url' => :'saml_metadata_url',
|
|
41
|
+
:'saml_metadata_url_webapp' => :'saml_metadata_url_webapp'
|
|
34
42
|
}
|
|
35
43
|
end
|
|
36
44
|
|
|
@@ -40,7 +48,9 @@ class OrganizationSAMLAuth
|
|
|
40
48
|
:'saml_auth_enabled' => :'BOOLEAN',
|
|
41
49
|
:'saml_auth_enforced' => :'BOOLEAN',
|
|
42
50
|
:'saml_metadata_inline' => :'String',
|
|
43
|
-
:'
|
|
51
|
+
:'saml_metadata_inline_webapp' => :'String',
|
|
52
|
+
:'saml_metadata_url' => :'String',
|
|
53
|
+
:'saml_metadata_url_webapp' => :'String'
|
|
44
54
|
}
|
|
45
55
|
end
|
|
46
56
|
|
|
@@ -64,9 +74,17 @@ class OrganizationSAMLAuth
|
|
|
64
74
|
self.saml_metadata_inline = attributes[:'saml_metadata_inline']
|
|
65
75
|
end
|
|
66
76
|
|
|
77
|
+
if attributes.has_key?(:'saml_metadata_inline_webapp')
|
|
78
|
+
self.saml_metadata_inline_webapp = attributes[:'saml_metadata_inline_webapp']
|
|
79
|
+
end
|
|
80
|
+
|
|
67
81
|
if attributes.has_key?(:'saml_metadata_url')
|
|
68
82
|
self.saml_metadata_url = attributes[:'saml_metadata_url']
|
|
69
83
|
end
|
|
84
|
+
|
|
85
|
+
if attributes.has_key?(:'saml_metadata_url_webapp')
|
|
86
|
+
self.saml_metadata_url_webapp = attributes[:'saml_metadata_url_webapp']
|
|
87
|
+
end
|
|
70
88
|
end
|
|
71
89
|
|
|
72
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -100,7 +118,9 @@ class OrganizationSAMLAuth
|
|
|
100
118
|
saml_auth_enabled == o.saml_auth_enabled &&
|
|
101
119
|
saml_auth_enforced == o.saml_auth_enforced &&
|
|
102
120
|
saml_metadata_inline == o.saml_metadata_inline &&
|
|
103
|
-
|
|
121
|
+
saml_metadata_inline_webapp == o.saml_metadata_inline_webapp &&
|
|
122
|
+
saml_metadata_url == o.saml_metadata_url &&
|
|
123
|
+
saml_metadata_url_webapp == o.saml_metadata_url_webapp
|
|
104
124
|
end
|
|
105
125
|
|
|
106
126
|
# @see the `==` method
|
|
@@ -112,7 +132,7 @@ class OrganizationSAMLAuth
|
|
|
112
132
|
# Calculates hash code according to all attributes.
|
|
113
133
|
# @return [Fixnum] Hash code
|
|
114
134
|
def hash
|
|
115
|
-
[saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_url].hash
|
|
135
|
+
[saml_auth_enabled, saml_auth_enforced, saml_metadata_inline, saml_metadata_inline_webapp, saml_metadata_url, saml_metadata_url_webapp].hash
|
|
116
136
|
end
|
|
117
137
|
|
|
118
138
|
# Builds the object from hash
|