Skip to content

Commit

Permalink
fix: added static files for example spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Nov 20, 2023
1 parent aeca6d1 commit b98e21f
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/csharp/src/Twilio/Rest/Domain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public static implicit operator Domain(string value)
public static readonly Domain Api = new Domain("api");
public static readonly Domain FlexApi = new Domain("flex-api");
public static readonly Domain Versionless = new Domain("versionless");
public static readonly Domain Accounts = new Domain("accounts");
}
}
2 changes: 2 additions & 0 deletions examples/java/src/main/java/com/twilio/Domains.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ public enum Domains {
VERSIONLESS("versionless"),
MESSAGING("messaging");

ACCOUNTS("accounts");

private final String value;

private Domains(final String value) {
Expand Down
14 changes: 14 additions & 0 deletions examples/node/src/rest/AccountsBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Domain from "../base/Domain";
import V1 from "./accounts/V1";

class AccountsBase extends Domain {
constructor(twilio: any) {
super(twilio, "http://accounts.twilio.com");
}

get v1(): V1 {
return new V1(this);
}
}

export = AccountsBase;
5 changes: 5 additions & 0 deletions examples/node/src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Client, ClientOpts } from "../base/BaseTwilio";
import ApiBase from "./ApiBase";
import FlexApiBase from "./FlexApiBase";
import VersionlessBase from "./VersionlessBase";
import AccountsBase from "./AccountsBase";

class Twilio extends Client {
constructor(username?: string, password?: string, opts?: ClientOpts) {
Expand All @@ -19,6 +20,10 @@ class Twilio extends Client {
get versionless(): VersionlessBase {
return new VersionlessBase(this);
}

get accounts(): AccountsBase {
return new AccountsBase(this);
}
}

export = Twilio;
9 changes: 9 additions & 0 deletions examples/ruby/lib/twilio-ruby/rest/accounts.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Twilio
module REST
class Accounts < AccountsBase
def v1
@v1 ||= V1.new self
end
end
end
end
28 changes: 28 additions & 0 deletions examples/ruby/lib/twilio-ruby/rest/accounts_base.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# NOTE: This class is auto generated by OpenAPI Generator.
# https://openapi-generator.tech
# Do not edit the class manually.
# frozen_string_literal: true

module Twilio
module REST
class AccountsBase < Domain
##
# Initialize accounts domain
#
# @param twilio - The twilio client
#
def initialize(twilio)
super
@base_url = 'https://accounts.twilio.com'
@host = 'api'
@port = 443
end
end
end
end

0 comments on commit b98e21f

Please sign in to comment.