Skip to content

Commit

Permalink
ci(sdk): sdk builds
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions-bot committed May 10, 2024
1 parent 83f5011 commit da15867
Show file tree
Hide file tree
Showing 15 changed files with 139 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 2
timeout-minutes: 5
environment:
name: rubygems

Expand All @@ -33,7 +33,7 @@ jobs:

- name: pause to avoid 2ndary rate limits # https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#about-secondary-rate-limits
run: |
sleep "$(echo $RANDOM % 20 + 1 | bc)"
sleep "$(echo $RANDOM % 90 + 1 | bc)"
- uses: cycjimmy/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
affixapi (1.1.74)
affixapi (1.1.75)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
4 changes: 3 additions & 1 deletion docs/CompensationHistoryNoNonNullRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
| **employment_type** | **String** | | |
| **currency** | [**CurrencyNotNullRequest**](CurrencyNotNullRequest.md) | | |
| **effective_date** | **Date** | | |
| **notes** | **String** | | |

## Example

Expand All @@ -22,7 +23,8 @@ instance = OpenapiClient::CompensationHistoryNoNonNullRequest.new(
pay_frequency: semimonthly,
employment_type: full_time,
currency: null,
effective_date: Sun Oct 11 00:00:00 UTC 2020
effective_date: Sun Oct 11 00:00:00 UTC 2020,
notes: Salary Adjustment
)
```

4 changes: 3 additions & 1 deletion docs/CompensationHistoryResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
| **employment_type** | **String** | | |
| **currency** | [**CurrencyResponse**](CurrencyResponse.md) | | |
| **effective_date** | **Date** | | |
| **notes** | **String** | | |

## Example

Expand All @@ -22,7 +23,8 @@ instance = OpenapiClient::CompensationHistoryResponse.new(
pay_frequency: semimonthly,
employment_type: full_time,
currency: null,
effective_date: Sun Oct 11 00:00:00 UTC 2020
effective_date: Sun Oct 11 00:00:00 UTC 2020,
notes: Salary Adjustment
)
```

6 changes: 5 additions & 1 deletion docs/EmploymentHistoryNoNonNullRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
| **group_id** | **String** | | |
| **group_remote_id** | **String** | | |
| **group_name** | **String** | | |
| **manager_id** | **String** | | |
| **manager_remote_id** | **String** | | |

## Example

Expand All @@ -20,7 +22,9 @@ instance = OpenapiClient::EmploymentHistoryNoNonNullRequest.new(
effective_date: Sun Oct 11 00:00:00 UTC 2020,
group_id: 4B9bKBpX5tnwjiG93TAqF7ci,
group_remote_id: 49,
group_name: Engineering
group_name: Engineering,
manager_id: null,
manager_remote_id: null
)
```

6 changes: 5 additions & 1 deletion docs/EmploymentHistoryResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
| **group_id** | **String** | | |
| **group_remote_id** | **String** | | |
| **group_name** | **String** | | |
| **manager_id** | **String** | | |
| **manager_remote_id** | **String** | | |

## Example

Expand All @@ -20,7 +22,9 @@ instance = OpenapiClient::EmploymentHistoryResponse.new(
effective_date: Sun Oct 11 00:00:00 UTC 2020,
group_id: 4B9bKBpX5tnwjiG93TAqF7ci,
group_remote_id: 49,
group_name: Engineering
group_name: Engineering,
manager_id: null,
manager_remote_id: null
)
```

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class CompensationHistoryNoNonNullRequest

attr_accessor :effective_date

attr_accessor :notes

class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
Expand Down Expand Up @@ -57,7 +59,8 @@ def self.attribute_map
:'pay_frequency' => :'pay_frequency',
:'employment_type' => :'employment_type',
:'currency' => :'currency',
:'effective_date' => :'effective_date'
:'effective_date' => :'effective_date',
:'notes' => :'notes'
}
end

Expand All @@ -74,7 +77,8 @@ def self.openapi_types
:'pay_frequency' => :'String',
:'employment_type' => :'String',
:'currency' => :'CurrencyNotNullRequest',
:'effective_date' => :'Date'
:'effective_date' => :'Date',
:'notes' => :'String'
}
end

Expand Down Expand Up @@ -123,6 +127,10 @@ def initialize(attributes = {})
if attributes.key?(:'effective_date')
self.effective_date = attributes[:'effective_date']
end

if attributes.key?(:'notes')
self.notes = attributes[:'notes']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand All @@ -149,6 +157,10 @@ def list_invalid_properties
invalid_properties.push('invalid value for "effective_date", effective_date cannot be nil.')
end

if @notes.nil?
invalid_properties.push('invalid value for "notes", notes cannot be nil.')
end

invalid_properties
end

Expand All @@ -164,6 +176,7 @@ def valid?
employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "other"])
return false unless employment_type_validator.valid?(@employment_type)
return false if @effective_date.nil?
return false if @notes.nil?
true
end

Expand Down Expand Up @@ -197,7 +210,8 @@ def ==(o)
pay_frequency == o.pay_frequency &&
employment_type == o.employment_type &&
currency == o.currency &&
effective_date == o.effective_date
effective_date == o.effective_date &&
notes == o.notes
end

# @see the `==` method
Expand All @@ -209,7 +223,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[pay_rate, pay_period, pay_frequency, employment_type, currency, effective_date].hash
[pay_rate, pay_period, pay_frequency, employment_type, currency, effective_date, notes].hash
end

# Builds the object from hash
Expand Down
20 changes: 15 additions & 5 deletions lib/openapi_client/models/compensation_history_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class CompensationHistoryResponse

attr_accessor :effective_date

attr_accessor :notes

class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
Expand Down Expand Up @@ -57,7 +59,8 @@ def self.attribute_map
:'pay_frequency' => :'pay_frequency',
:'employment_type' => :'employment_type',
:'currency' => :'currency',
:'effective_date' => :'effective_date'
:'effective_date' => :'effective_date',
:'notes' => :'notes'
}
end

Expand All @@ -74,7 +77,8 @@ def self.openapi_types
:'pay_frequency' => :'String',
:'employment_type' => :'String',
:'currency' => :'CurrencyResponse',
:'effective_date' => :'Date'
:'effective_date' => :'Date',
:'notes' => :'String'
}
end

Expand All @@ -86,7 +90,8 @@ def self.openapi_nullable
:'pay_frequency',
:'employment_type',
:'currency',
:'effective_date'
:'effective_date',
:'notes'
])
end

Expand Down Expand Up @@ -128,6 +133,10 @@ def initialize(attributes = {})
if attributes.key?(:'effective_date')
self.effective_date = attributes[:'effective_date']
end

if attributes.key?(:'notes')
self.notes = attributes[:'notes']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -177,7 +186,8 @@ def ==(o)
pay_frequency == o.pay_frequency &&
employment_type == o.employment_type &&
currency == o.currency &&
effective_date == o.effective_date
effective_date == o.effective_date &&
notes == o.notes
end

# @see the `==` method
Expand All @@ -189,7 +199,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[pay_rate, pay_period, pay_frequency, employment_type, currency, effective_date].hash
[pay_rate, pay_period, pay_frequency, employment_type, currency, effective_date, notes].hash
end

# Builds the object from hash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@ class EmploymentHistoryNoNonNullRequest

attr_accessor :group_name

attr_accessor :manager_id

attr_accessor :manager_remote_id

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'job_title' => :'job_title',
:'effective_date' => :'effective_date',
:'group_id' => :'group_id',
:'group_remote_id' => :'group_remote_id',
:'group_name' => :'group_name'
:'group_name' => :'group_name',
:'manager_id' => :'manager_id',
:'manager_remote_id' => :'manager_remote_id'
}
end

Expand All @@ -48,7 +54,9 @@ def self.openapi_types
:'effective_date' => :'Date',
:'group_id' => :'String',
:'group_remote_id' => :'String',
:'group_name' => :'String'
:'group_name' => :'String',
:'manager_id' => :'String',
:'manager_remote_id' => :'String'
}
end

Expand All @@ -57,7 +65,9 @@ def self.openapi_nullable
Set.new([
:'group_id',
:'group_remote_id',
:'group_name'
:'group_name',
:'manager_id',
:'manager_remote_id'
])
end

Expand Down Expand Up @@ -95,6 +105,14 @@ def initialize(attributes = {})
if attributes.key?(:'group_name')
self.group_name = attributes[:'group_name']
end

if attributes.key?(:'manager_id')
self.manager_id = attributes[:'manager_id']
end

if attributes.key?(:'manager_remote_id')
self.manager_remote_id = attributes[:'manager_remote_id']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -129,7 +147,9 @@ def ==(o)
effective_date == o.effective_date &&
group_id == o.group_id &&
group_remote_id == o.group_remote_id &&
group_name == o.group_name
group_name == o.group_name &&
manager_id == o.manager_id &&
manager_remote_id == o.manager_remote_id
end

# @see the `==` method
Expand All @@ -141,7 +161,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[job_title, effective_date, group_id, group_remote_id, group_name].hash
[job_title, effective_date, group_id, group_remote_id, group_name, manager_id, manager_remote_id].hash
end

# Builds the object from hash
Expand Down
Loading

0 comments on commit da15867

Please sign in to comment.