id int32 0 167k | repo stringlengths 5 54 | path stringlengths 4 155 | func_name stringlengths 1 118 | original_string stringlengths 52 85.5k | language stringclasses 1
value | code stringlengths 52 85.5k | code_tokens list | docstring stringlengths 6 2.61k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 85 252 |
|---|---|---|---|---|---|---|---|---|---|---|---|
23,100 | minio/sio | sio.go | Encrypt | func Encrypt(dst io.Writer, src io.Reader, config Config) (n int64, err error) {
encReader, err := EncryptReader(src, config)
if err != nil {
return 0, err
}
return io.CopyBuffer(dst, encReader, make([]byte, headerSize+maxPayloadSize+tagSize))
} | go | func Encrypt(dst io.Writer, src io.Reader, config Config) (n int64, err error) {
encReader, err := EncryptReader(src, config)
if err != nil {
return 0, err
}
return io.CopyBuffer(dst, encReader, make([]byte, headerSize+maxPayloadSize+tagSize))
} | [
"func",
"Encrypt",
"(",
"dst",
"io",
".",
"Writer",
",",
"src",
"io",
".",
"Reader",
",",
"config",
"Config",
")",
"(",
"n",
"int64",
",",
"err",
"error",
")",
"{",
"encReader",
",",
"err",
":=",
"EncryptReader",
"(",
"src",
",",
"config",
")",
"\n... | // Encrypt reads from src until it encounters an io.EOF and encrypts all received
// data. The encrypted data is written to dst. It returns the number of bytes
// encrypted and the first error encountered while encrypting, if any.
//
// Encrypt returns the number of bytes written to dst. | [
"Encrypt",
"reads",
"from",
"src",
"until",
"it",
"encounters",
"an",
"io",
".",
"EOF",
"and",
"encrypts",
"all",
"received",
"data",
".",
"The",
"encrypted",
"data",
"is",
"written",
"to",
"dst",
".",
"It",
"returns",
"the",
"number",
"of",
"bytes",
"en... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/sio.go#L174-L180 |
23,101 | minio/sio | sio.go | Decrypt | func Decrypt(dst io.Writer, src io.Reader, config Config) (n int64, err error) {
decReader, err := DecryptReader(src, config)
if err != nil {
return 0, err
}
return io.CopyBuffer(dst, decReader, make([]byte, maxPayloadSize))
} | go | func Decrypt(dst io.Writer, src io.Reader, config Config) (n int64, err error) {
decReader, err := DecryptReader(src, config)
if err != nil {
return 0, err
}
return io.CopyBuffer(dst, decReader, make([]byte, maxPayloadSize))
} | [
"func",
"Decrypt",
"(",
"dst",
"io",
".",
"Writer",
",",
"src",
"io",
".",
"Reader",
",",
"config",
"Config",
")",
"(",
"n",
"int64",
",",
"err",
"error",
")",
"{",
"decReader",
",",
"err",
":=",
"DecryptReader",
"(",
"src",
",",
"config",
")",
"\n... | // Decrypt reads from src until it encounters an io.EOF and decrypts all received
// data. The decrypted data is written to dst. It returns the number of bytes
// decrypted and the first error encountered while decrypting, if any.
//
// Decrypt returns the number of bytes written to dst. Decrypt only writes data to
// ... | [
"Decrypt",
"reads",
"from",
"src",
"until",
"it",
"encounters",
"an",
"io",
".",
"EOF",
"and",
"decrypts",
"all",
"received",
"data",
".",
"The",
"decrypted",
"data",
"is",
"written",
"to",
"dst",
".",
"It",
"returns",
"the",
"number",
"of",
"bytes",
"de... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/sio.go#L189-L195 |
23,102 | minio/sio | sio.go | EncryptReader | func EncryptReader(src io.Reader, config Config) (io.Reader, error) {
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
if config.MaxVersion == Version20 {
return encryptReaderV20(src, &config)
}
return encryptReaderV10(src, &config)
} | go | func EncryptReader(src io.Reader, config Config) (io.Reader, error) {
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
if config.MaxVersion == Version20 {
return encryptReaderV20(src, &config)
}
return encryptReaderV10(src, &config)
} | [
"func",
"EncryptReader",
"(",
"src",
"io",
".",
"Reader",
",",
"config",
"Config",
")",
"(",
"io",
".",
"Reader",
",",
"error",
")",
"{",
"if",
"err",
":=",
"setConfigDefaults",
"(",
"&",
"config",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"nil",
... | // EncryptReader wraps the given src and returns an io.Reader which encrypts
// all received data. EncryptReader returns an error if the provided encryption
// configuration is invalid. | [
"EncryptReader",
"wraps",
"the",
"given",
"src",
"and",
"returns",
"an",
"io",
".",
"Reader",
"which",
"encrypts",
"all",
"received",
"data",
".",
"EncryptReader",
"returns",
"an",
"error",
"if",
"the",
"provided",
"encryption",
"configuration",
"is",
"invalid",... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/sio.go#L200-L208 |
23,103 | minio/sio | sio.go | DecryptReader | func DecryptReader(src io.Reader, config Config) (io.Reader, error) {
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
if config.MinVersion == Version10 && config.MaxVersion == Version10 {
return decryptReaderV10(src, &config)
}
if config.MinVersion == Version20 && config.MaxVersion == Vers... | go | func DecryptReader(src io.Reader, config Config) (io.Reader, error) {
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
if config.MinVersion == Version10 && config.MaxVersion == Version10 {
return decryptReaderV10(src, &config)
}
if config.MinVersion == Version20 && config.MaxVersion == Vers... | [
"func",
"DecryptReader",
"(",
"src",
"io",
".",
"Reader",
",",
"config",
"Config",
")",
"(",
"io",
".",
"Reader",
",",
"error",
")",
"{",
"if",
"err",
":=",
"setConfigDefaults",
"(",
"&",
"config",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"nil",
... | // DecryptReader wraps the given src and returns an io.Reader which decrypts
// all received data. DecryptReader returns an error if the provided decryption
// configuration is invalid. The returned io.Reader returns an error of
// type sio.Error if the decryption fails. | [
"DecryptReader",
"wraps",
"the",
"given",
"src",
"and",
"returns",
"an",
"io",
".",
"Reader",
"which",
"decrypts",
"all",
"received",
"data",
".",
"DecryptReader",
"returns",
"an",
"error",
"if",
"the",
"provided",
"decryption",
"configuration",
"is",
"invalid",... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/sio.go#L214-L225 |
23,104 | minio/sio | sio.go | EncryptWriter | func EncryptWriter(dst io.Writer, config Config) (io.WriteCloser, error) {
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
if config.MaxVersion == Version20 {
return encryptWriterV20(dst, &config)
}
return encryptWriterV10(dst, &config)
} | go | func EncryptWriter(dst io.Writer, config Config) (io.WriteCloser, error) {
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
if config.MaxVersion == Version20 {
return encryptWriterV20(dst, &config)
}
return encryptWriterV10(dst, &config)
} | [
"func",
"EncryptWriter",
"(",
"dst",
"io",
".",
"Writer",
",",
"config",
"Config",
")",
"(",
"io",
".",
"WriteCloser",
",",
"error",
")",
"{",
"if",
"err",
":=",
"setConfigDefaults",
"(",
"&",
"config",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"n... | // EncryptWriter wraps the given dst and returns an io.WriteCloser which
// encrypts all data written to it. EncryptWriter returns an error if the
// provided decryption configuration is invalid.
//
// The returned io.WriteCloser must be closed successfully to finalize the
// encryption process. | [
"EncryptWriter",
"wraps",
"the",
"given",
"dst",
"and",
"returns",
"an",
"io",
".",
"WriteCloser",
"which",
"encrypts",
"all",
"data",
"written",
"to",
"it",
".",
"EncryptWriter",
"returns",
"an",
"error",
"if",
"the",
"provided",
"decryption",
"configuration",
... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/sio.go#L233-L241 |
23,105 | minio/sio | sio.go | DecryptWriter | func DecryptWriter(dst io.Writer, config Config) (io.WriteCloser, error) {
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
if config.MinVersion == Version10 && config.MaxVersion == Version10 {
return decryptWriterV10(dst, &config)
}
if config.MinVersion == Version20 && config.MaxVersion ==... | go | func DecryptWriter(dst io.Writer, config Config) (io.WriteCloser, error) {
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
if config.MinVersion == Version10 && config.MaxVersion == Version10 {
return decryptWriterV10(dst, &config)
}
if config.MinVersion == Version20 && config.MaxVersion ==... | [
"func",
"DecryptWriter",
"(",
"dst",
"io",
".",
"Writer",
",",
"config",
"Config",
")",
"(",
"io",
".",
"WriteCloser",
",",
"error",
")",
"{",
"if",
"err",
":=",
"setConfigDefaults",
"(",
"&",
"config",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"n... | // DecryptWriter wraps the given dst and returns an io.WriteCloser which
// decrypts all data written to it. DecryptWriter returns an error if the
// provided decryption configuration is invalid.
//
// The returned io.WriteCloser must be closed successfully to finalize the
// decryption process. The returned io.WriteCl... | [
"DecryptWriter",
"wraps",
"the",
"given",
"dst",
"and",
"returns",
"an",
"io",
".",
"WriteCloser",
"which",
"decrypts",
"all",
"data",
"written",
"to",
"it",
".",
"DecryptWriter",
"returns",
"an",
"error",
"if",
"the",
"provided",
"decryption",
"configuration",
... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/sio.go#L250-L261 |
23,106 | minio/sio | generic.go | decryptWriter | func decryptWriter(w io.Writer, config *Config) *decWriter {
return &decWriter{
config: *config,
dst: w,
firstWrite: true,
}
} | go | func decryptWriter(w io.Writer, config *Config) *decWriter {
return &decWriter{
config: *config,
dst: w,
firstWrite: true,
}
} | [
"func",
"decryptWriter",
"(",
"w",
"io",
".",
"Writer",
",",
"config",
"*",
"Config",
")",
"*",
"decWriter",
"{",
"return",
"&",
"decWriter",
"{",
"config",
":",
"*",
"config",
",",
"dst",
":",
"w",
",",
"firstWrite",
":",
"true",
",",
"}",
"\n",
"... | // decryptWriter returns an io.WriteCloser wrapping the given io.Writer.
// The returned io.WriteCloser detects whether the data written to it is
// encrypted using DARE 1.0 or 2.0 and decrypts it using the correct DARE
// version. | [
"decryptWriter",
"returns",
"an",
"io",
".",
"WriteCloser",
"wrapping",
"the",
"given",
"io",
".",
"Writer",
".",
"The",
"returned",
"io",
".",
"WriteCloser",
"detects",
"whether",
"the",
"data",
"written",
"to",
"it",
"is",
"encrypted",
"using",
"DARE",
"1"... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/generic.go#L33-L39 |
23,107 | minio/sio | generic.go | decryptReader | func decryptReader(r io.Reader, config *Config) *decReader {
return &decReader{
config: *config,
src: r,
firstRead: true,
}
} | go | func decryptReader(r io.Reader, config *Config) *decReader {
return &decReader{
config: *config,
src: r,
firstRead: true,
}
} | [
"func",
"decryptReader",
"(",
"r",
"io",
".",
"Reader",
",",
"config",
"*",
"Config",
")",
"*",
"decReader",
"{",
"return",
"&",
"decReader",
"{",
"config",
":",
"*",
"config",
",",
"src",
":",
"r",
",",
"firstRead",
":",
"true",
",",
"}",
"\n",
"}... | // decryptReader returns an io.Reader wrapping the given io.Reader.
// The returned io.Reader detects whether the underlying io.Reader returns
// DARE 1.0 or 2.0 encrypted data and decrypts it using the correct DARE version. | [
"decryptReader",
"returns",
"an",
"io",
".",
"Reader",
"wrapping",
"the",
"given",
"io",
".",
"Reader",
".",
"The",
"returned",
"io",
".",
"Reader",
"detects",
"whether",
"the",
"underlying",
"io",
".",
"Reader",
"returns",
"DARE",
"1",
".",
"0",
"or",
"... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/generic.go#L82-L88 |
23,108 | minio/sio | writer-v2.go | encryptWriterV20 | func encryptWriterV20(dst io.Writer, config *Config) (*encWriterV20, error) {
ae, err := newAuthEncV20(config)
if err != nil {
return nil, err
}
return &encWriterV20{
authEncV20: ae,
dst: dst,
buffer: make(packageV20, maxPackageSize),
}, nil
} | go | func encryptWriterV20(dst io.Writer, config *Config) (*encWriterV20, error) {
ae, err := newAuthEncV20(config)
if err != nil {
return nil, err
}
return &encWriterV20{
authEncV20: ae,
dst: dst,
buffer: make(packageV20, maxPackageSize),
}, nil
} | [
"func",
"encryptWriterV20",
"(",
"dst",
"io",
".",
"Writer",
",",
"config",
"*",
"Config",
")",
"(",
"*",
"encWriterV20",
",",
"error",
")",
"{",
"ae",
",",
"err",
":=",
"newAuthEncV20",
"(",
"config",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"retur... | // encryptWriterV20 returns an io.WriteCloser wrapping the given io.Writer.
// The returned io.WriteCloser encrypts everything written to it using DARE 2.0
// and writes all encrypted ciphertext as well as the package header and tag
// to the wrapped io.Writer.
//
// The io.WriteCloser must be closed to finalize the en... | [
"encryptWriterV20",
"returns",
"an",
"io",
".",
"WriteCloser",
"wrapping",
"the",
"given",
"io",
".",
"Writer",
".",
"The",
"returned",
"io",
".",
"WriteCloser",
"encrypts",
"everything",
"written",
"to",
"it",
"using",
"DARE",
"2",
".",
"0",
"and",
"writes"... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/writer-v2.go#L35-L45 |
23,109 | minio/sio | writer-v2.go | decryptWriterV20 | func decryptWriterV20(dst io.Writer, config *Config) (*decWriterV20, error) {
ad, err := newAuthDecV20(config)
if err != nil {
return nil, err
}
return &decWriterV20{
authDecV20: ad,
dst: dst,
buffer: make(packageV20, maxPackageSize),
}, nil
} | go | func decryptWriterV20(dst io.Writer, config *Config) (*decWriterV20, error) {
ad, err := newAuthDecV20(config)
if err != nil {
return nil, err
}
return &decWriterV20{
authDecV20: ad,
dst: dst,
buffer: make(packageV20, maxPackageSize),
}, nil
} | [
"func",
"decryptWriterV20",
"(",
"dst",
"io",
".",
"Writer",
",",
"config",
"*",
"Config",
")",
"(",
"*",
"decWriterV20",
",",
"error",
")",
"{",
"ad",
",",
"err",
":=",
"newAuthDecV20",
"(",
"config",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"retur... | // decryptWriterV20 returns an io.WriteCloser wrapping the given io.Writer.
// The returned io.WriteCloser decrypts everything written to it using DARE 2.0
// and writes all decrypted plaintext to the wrapped io.Writer.
//
// The io.WriteCloser must be closed to finalize the decryption successfully. | [
"decryptWriterV20",
"returns",
"an",
"io",
".",
"WriteCloser",
"wrapping",
"the",
"given",
"io",
".",
"Writer",
".",
"The",
"returned",
"io",
".",
"WriteCloser",
"decrypts",
"everything",
"written",
"to",
"it",
"using",
"DARE",
"2",
".",
"0",
"and",
"writes"... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/writer-v2.go#L109-L119 |
23,110 | minio/sio | reader-v2.go | encryptReaderV20 | func encryptReaderV20(src io.Reader, config *Config) (*encReaderV20, error) {
ae, err := newAuthEncV20(config)
if err != nil {
return nil, err
}
return &encReaderV20{
authEncV20: ae,
src: src,
buffer: make(packageV20, maxPackageSize),
firstRead: true,
}, nil
} | go | func encryptReaderV20(src io.Reader, config *Config) (*encReaderV20, error) {
ae, err := newAuthEncV20(config)
if err != nil {
return nil, err
}
return &encReaderV20{
authEncV20: ae,
src: src,
buffer: make(packageV20, maxPackageSize),
firstRead: true,
}, nil
} | [
"func",
"encryptReaderV20",
"(",
"src",
"io",
".",
"Reader",
",",
"config",
"*",
"Config",
")",
"(",
"*",
"encReaderV20",
",",
"error",
")",
"{",
"ae",
",",
"err",
":=",
"newAuthEncV20",
"(",
"config",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"retur... | // encryptReaderV20 returns an io.Reader wrapping the given io.Reader.
// The returned io.Reader encrypts everything it reads using DARE 2.0. | [
"encryptReaderV20",
"returns",
"an",
"io",
".",
"Reader",
"wrapping",
"the",
"given",
"io",
".",
"Reader",
".",
"The",
"returned",
"io",
".",
"Reader",
"encrypts",
"everything",
"it",
"reads",
"using",
"DARE",
"2",
".",
"0",
"."
] | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/reader-v2.go#L34-L45 |
23,111 | minio/sio | reader-v2.go | decryptReaderV20 | func decryptReaderV20(src io.Reader, config *Config) (*decReaderV20, error) {
ad, err := newAuthDecV20(config)
if err != nil {
return nil, err
}
return &decReaderV20{
authDecV20: ad,
src: src,
buffer: make(packageV20, maxPackageSize),
}, nil
} | go | func decryptReaderV20(src io.Reader, config *Config) (*decReaderV20, error) {
ad, err := newAuthDecV20(config)
if err != nil {
return nil, err
}
return &decReaderV20{
authDecV20: ad,
src: src,
buffer: make(packageV20, maxPackageSize),
}, nil
} | [
"func",
"decryptReaderV20",
"(",
"src",
"io",
".",
"Reader",
",",
"config",
"*",
"Config",
")",
"(",
"*",
"decReaderV20",
",",
"error",
")",
"{",
"ad",
",",
"err",
":=",
"newAuthDecV20",
"(",
"config",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"retur... | // decryptReaderV20 returns an io.Reader wrapping the given io.Reader.
// The returned io.Reader decrypts everything it reads using DARE 2.0. | [
"decryptReaderV20",
"returns",
"an",
"io",
".",
"Reader",
"wrapping",
"the",
"given",
"io",
".",
"Reader",
".",
"The",
"returned",
"io",
".",
"Reader",
"decrypts",
"everything",
"it",
"reads",
"using",
"DARE",
"2",
".",
"0",
"."
] | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/reader-v2.go#L121-L131 |
23,112 | minio/sio | writer-v1.go | decryptWriterV10 | func decryptWriterV10(dst io.Writer, config *Config) (*decWriterV10, error) {
ad, err := newAuthDecV10(config)
if err != nil {
return nil, err
}
return &decWriterV10{
authDecV10: ad,
dst: dst,
buffer: make(packageV10, maxPackageSize),
}, nil
} | go | func decryptWriterV10(dst io.Writer, config *Config) (*decWriterV10, error) {
ad, err := newAuthDecV10(config)
if err != nil {
return nil, err
}
return &decWriterV10{
authDecV10: ad,
dst: dst,
buffer: make(packageV10, maxPackageSize),
}, nil
} | [
"func",
"decryptWriterV10",
"(",
"dst",
"io",
".",
"Writer",
",",
"config",
"*",
"Config",
")",
"(",
"*",
"decWriterV10",
",",
"error",
")",
"{",
"ad",
",",
"err",
":=",
"newAuthDecV10",
"(",
"config",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"retur... | // decryptWriterV10 returns an io.WriteCloser wrapping the given io.Writer.
// The returned io.WriteCloser decrypts everything written to it using DARE 1.0
// and writes all decrypted plaintext to the wrapped io.Writer.
//
// The io.WriteCloser must be closed to finalize the decryption successfully. | [
"decryptWriterV10",
"returns",
"an",
"io",
".",
"WriteCloser",
"wrapping",
"the",
"given",
"io",
".",
"Writer",
".",
"The",
"returned",
"io",
".",
"WriteCloser",
"decrypts",
"everything",
"written",
"to",
"it",
"using",
"DARE",
"1",
".",
"0",
"and",
"writes"... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/writer-v1.go#L32-L42 |
23,113 | minio/sio | writer-v1.go | encryptWriterV10 | func encryptWriterV10(dst io.Writer, config *Config) (*encWriterV10, error) {
ae, err := newAuthEncV10(config)
if err != nil {
return nil, err
}
return &encWriterV10{
authEncV10: ae,
dst: dst,
buffer: make(packageV10, maxPackageSize),
payloadSize: config.PayloadSize,
}, nil
} | go | func encryptWriterV10(dst io.Writer, config *Config) (*encWriterV10, error) {
ae, err := newAuthEncV10(config)
if err != nil {
return nil, err
}
return &encWriterV10{
authEncV10: ae,
dst: dst,
buffer: make(packageV10, maxPackageSize),
payloadSize: config.PayloadSize,
}, nil
} | [
"func",
"encryptWriterV10",
"(",
"dst",
"io",
".",
"Writer",
",",
"config",
"*",
"Config",
")",
"(",
"*",
"encWriterV10",
",",
"error",
")",
"{",
"ae",
",",
"err",
":=",
"newAuthEncV10",
"(",
"config",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"retur... | // encryptWriterV10 returns an io.WriteCloser wrapping the given io.Writer.
// The returned io.WriteCloser encrypts everything written to it using DARE 1.0
// and writes all encrypted ciphertext as well as the package header and tag
// to the wrapped io.Writer.
//
// The io.WriteCloser must be closed to finalize the en... | [
"encryptWriterV10",
"returns",
"an",
"io",
".",
"WriteCloser",
"wrapping",
"the",
"given",
"io",
".",
"Writer",
".",
"The",
"returned",
"io",
".",
"WriteCloser",
"encrypts",
"everything",
"written",
"to",
"it",
"using",
"DARE",
"1",
".",
"0",
"and",
"writes"... | 035b4ef8c449ba2ba21ec143c91964e76a1fb68c | https://github.com/minio/sio/blob/035b4ef8c449ba2ba21ec143c91964e76a1fb68c/writer-v1.go#L133-L144 |
23,114 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewActivateProjectParams | func (s *ProjectService) NewActivateProjectParams(id string) *ActivateProjectParams {
p := &ActivateProjectParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *ProjectService) NewActivateProjectParams(id string) *ActivateProjectParams {
p := &ActivateProjectParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewActivateProjectParams",
"(",
"id",
"string",
")",
"*",
"ActivateProjectParams",
"{",
"p",
":=",
"&",
"ActivateProjectParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"i... | // You should always use this function to get a new ActivateProjectParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ActivateProjectParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L52-L57 |
23,115 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewCreateProjectParams | func (s *ProjectService) NewCreateProjectParams(displaytext string, name string) *CreateProjectParams {
p := &CreateProjectParams{}
p.p = make(map[string]interface{})
p.p["displaytext"] = displaytext
p.p["name"] = name
return p
} | go | func (s *ProjectService) NewCreateProjectParams(displaytext string, name string) *CreateProjectParams {
p := &CreateProjectParams{}
p.p = make(map[string]interface{})
p.p["displaytext"] = displaytext
p.p["name"] = name
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewCreateProjectParams",
"(",
"displaytext",
"string",
",",
"name",
"string",
")",
"*",
"CreateProjectParams",
"{",
"p",
":=",
"&",
"CreateProjectParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map"... | // You should always use this function to get a new CreateProjectParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"CreateProjectParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L200-L206 |
23,116 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewDeleteProjectParams | func (s *ProjectService) NewDeleteProjectParams(id string) *DeleteProjectParams {
p := &DeleteProjectParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *ProjectService) NewDeleteProjectParams(id string) *DeleteProjectParams {
p := &DeleteProjectParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewDeleteProjectParams",
"(",
"id",
"string",
")",
"*",
"DeleteProjectParams",
"{",
"p",
":=",
"&",
"DeleteProjectParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interfa... | // You should always use this function to get a new DeleteProjectParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteProjectParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L316-L321 |
23,117 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewDeleteProjectInvitationParams | func (s *ProjectService) NewDeleteProjectInvitationParams(id string) *DeleteProjectInvitationParams {
p := &DeleteProjectInvitationParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *ProjectService) NewDeleteProjectInvitationParams(id string) *DeleteProjectInvitationParams {
p := &DeleteProjectInvitationParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewDeleteProjectInvitationParams",
"(",
"id",
"string",
")",
"*",
"DeleteProjectInvitationParams",
"{",
"p",
":=",
"&",
"DeleteProjectInvitationParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",... | // You should always use this function to get a new DeleteProjectInvitationParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteProjectInvitationParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L384-L389 |
23,118 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewListProjectInvitationsParams | func (s *ProjectService) NewListProjectInvitationsParams() *ListProjectInvitationsParams {
p := &ListProjectInvitationsParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *ProjectService) NewListProjectInvitationsParams() *ListProjectInvitationsParams {
p := &ListProjectInvitationsParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewListProjectInvitationsParams",
"(",
")",
"*",
"ListProjectInvitationsParams",
"{",
"p",
":=",
"&",
"ListProjectInvitationsParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"... | // You should always use this function to get a new ListProjectInvitationsParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListProjectInvitationsParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L567-L571 |
23,119 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewListProjectsParams | func (s *ProjectService) NewListProjectsParams() *ListProjectsParams {
p := &ListProjectsParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *ProjectService) NewListProjectsParams() *ListProjectsParams {
p := &ListProjectsParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewListProjectsParams",
"(",
")",
"*",
"ListProjectsParams",
"{",
"p",
":=",
"&",
"ListProjectsParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
")... | // You should always use this function to get a new ListProjectsParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListProjectsParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L792-L796 |
23,120 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewSuspendProjectParams | func (s *ProjectService) NewSuspendProjectParams(id string) *SuspendProjectParams {
p := &SuspendProjectParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *ProjectService) NewSuspendProjectParams(id string) *SuspendProjectParams {
p := &SuspendProjectParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewSuspendProjectParams",
"(",
"id",
"string",
")",
"*",
"SuspendProjectParams",
"{",
"p",
":=",
"&",
"SuspendProjectParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"inte... | // You should always use this function to get a new SuspendProjectParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"SuspendProjectParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L973-L978 |
23,121 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewUpdateProjectParams | func (s *ProjectService) NewUpdateProjectParams(id string) *UpdateProjectParams {
p := &UpdateProjectParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *ProjectService) NewUpdateProjectParams(id string) *UpdateProjectParams {
p := &UpdateProjectParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewUpdateProjectParams",
"(",
"id",
"string",
")",
"*",
"UpdateProjectParams",
"{",
"p",
":=",
"&",
"UpdateProjectParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interfa... | // You should always use this function to get a new UpdateProjectParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"UpdateProjectParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L1110-L1115 |
23,122 | xanzy/go-cloudstack | cloudstack/ProjectService.go | NewUpdateProjectInvitationParams | func (s *ProjectService) NewUpdateProjectInvitationParams(projectid string) *UpdateProjectInvitationParams {
p := &UpdateProjectInvitationParams{}
p.p = make(map[string]interface{})
p.p["projectid"] = projectid
return p
} | go | func (s *ProjectService) NewUpdateProjectInvitationParams(projectid string) *UpdateProjectInvitationParams {
p := &UpdateProjectInvitationParams{}
p.p = make(map[string]interface{})
p.p["projectid"] = projectid
return p
} | [
"func",
"(",
"s",
"*",
"ProjectService",
")",
"NewUpdateProjectInvitationParams",
"(",
"projectid",
"string",
")",
"*",
"UpdateProjectInvitationParams",
"{",
"p",
":=",
"&",
"UpdateProjectInvitationParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",... | // You should always use this function to get a new UpdateProjectInvitationParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"UpdateProjectInvitationParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/ProjectService.go#L1259-L1264 |
23,123 | xanzy/go-cloudstack | cloudstack/RoleService.go | NewCreateRoleParams | func (s *RoleService) NewCreateRoleParams(name string, roleType string) *CreateRoleParams {
p := &CreateRoleParams{}
p.p = make(map[string]interface{})
p.p["name"] = name
p.p["type"] = roleType
return p
} | go | func (s *RoleService) NewCreateRoleParams(name string, roleType string) *CreateRoleParams {
p := &CreateRoleParams{}
p.p = make(map[string]interface{})
p.p["name"] = name
p.p["type"] = roleType
return p
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"NewCreateRoleParams",
"(",
"name",
"string",
",",
"roleType",
"string",
")",
"*",
"CreateRoleParams",
"{",
"p",
":=",
"&",
"CreateRoleParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"str... | // You should always use this function to get a new CreateRoleParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"CreateRoleParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L73-L79 |
23,124 | xanzy/go-cloudstack | cloudstack/RoleService.go | CreateRole | func (s *RoleService) CreateRole(p *CreateRoleParams) (*CreateRoleResponse, error) {
resp, err := s.cs.newRequest("createRole", p.toURLValues())
if err != nil {
return nil, err
}
var r CreateRoleResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, nil
} | go | func (s *RoleService) CreateRole(p *CreateRoleParams) (*CreateRoleResponse, error) {
resp, err := s.cs.newRequest("createRole", p.toURLValues())
if err != nil {
return nil, err
}
var r CreateRoleResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, nil
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"CreateRole",
"(",
"p",
"*",
"CreateRoleParams",
")",
"(",
"*",
"CreateRoleResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",
"p",
".",
"t... | // Creates a role | [
"Creates",
"a",
"role"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L82-L94 |
23,125 | xanzy/go-cloudstack | cloudstack/RoleService.go | NewCreateRolePermissionParams | func (s *RoleService) NewCreateRolePermissionParams(permission string, roleid string, rule string) *CreateRolePermissionParams {
p := &CreateRolePermissionParams{}
p.p = make(map[string]interface{})
p.p["permission"] = permission
p.p["roleid"] = roleid
p.p["rule"] = rule
return p
} | go | func (s *RoleService) NewCreateRolePermissionParams(permission string, roleid string, rule string) *CreateRolePermissionParams {
p := &CreateRolePermissionParams{}
p.p = make(map[string]interface{})
p.p["permission"] = permission
p.p["roleid"] = roleid
p.p["rule"] = rule
return p
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"NewCreateRolePermissionParams",
"(",
"permission",
"string",
",",
"roleid",
"string",
",",
"rule",
"string",
")",
"*",
"CreateRolePermissionParams",
"{",
"p",
":=",
"&",
"CreateRolePermissionParams",
"{",
"}",
"\n",
"p... | // You should always use this function to get a new CreateRolePermissionParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"CreateRolePermissionParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L161-L168 |
23,126 | xanzy/go-cloudstack | cloudstack/RoleService.go | CreateRolePermission | func (s *RoleService) CreateRolePermission(p *CreateRolePermissionParams) (*CreateRolePermissionResponse, error) {
resp, err := s.cs.newRequest("createRolePermission", p.toURLValues())
if err != nil {
return nil, err
}
var r CreateRolePermissionResponse
if err := json.Unmarshal(resp, &r); err != nil {
return ... | go | func (s *RoleService) CreateRolePermission(p *CreateRolePermissionParams) (*CreateRolePermissionResponse, error) {
resp, err := s.cs.newRequest("createRolePermission", p.toURLValues())
if err != nil {
return nil, err
}
var r CreateRolePermissionResponse
if err := json.Unmarshal(resp, &r); err != nil {
return ... | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"CreateRolePermission",
"(",
"p",
"*",
"CreateRolePermissionParams",
")",
"(",
"*",
"CreateRolePermissionResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"... | // Adds a API permission to a role | [
"Adds",
"a",
"API",
"permission",
"to",
"a",
"role"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L171-L183 |
23,127 | xanzy/go-cloudstack | cloudstack/RoleService.go | NewDeleteRoleParams | func (s *RoleService) NewDeleteRoleParams(id string) *DeleteRoleParams {
p := &DeleteRoleParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *RoleService) NewDeleteRoleParams(id string) *DeleteRoleParams {
p := &DeleteRoleParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"NewDeleteRoleParams",
"(",
"id",
"string",
")",
"*",
"DeleteRoleParams",
"{",
"p",
":=",
"&",
"DeleteRoleParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
... | // You should always use this function to get a new DeleteRoleParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteRoleParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L219-L224 |
23,128 | xanzy/go-cloudstack | cloudstack/RoleService.go | DeleteRole | func (s *RoleService) DeleteRole(p *DeleteRoleParams) (*DeleteRoleResponse, error) {
resp, err := s.cs.newRequest("deleteRole", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteRoleResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, nil
} | go | func (s *RoleService) DeleteRole(p *DeleteRoleParams) (*DeleteRoleResponse, error) {
resp, err := s.cs.newRequest("deleteRole", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteRoleResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, nil
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"DeleteRole",
"(",
"p",
"*",
"DeleteRoleParams",
")",
"(",
"*",
"DeleteRoleResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",
"p",
".",
"t... | // Deletes a role | [
"Deletes",
"a",
"role"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L227-L239 |
23,129 | xanzy/go-cloudstack | cloudstack/RoleService.go | NewDeleteRolePermissionParams | func (s *RoleService) NewDeleteRolePermissionParams(id string) *DeleteRolePermissionParams {
p := &DeleteRolePermissionParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *RoleService) NewDeleteRolePermissionParams(id string) *DeleteRolePermissionParams {
p := &DeleteRolePermissionParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"NewDeleteRolePermissionParams",
"(",
"id",
"string",
")",
"*",
"DeleteRolePermissionParams",
"{",
"p",
":=",
"&",
"DeleteRolePermissionParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",... | // You should always use this function to get a new DeleteRolePermissionParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteRolePermissionParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L290-L295 |
23,130 | xanzy/go-cloudstack | cloudstack/RoleService.go | DeleteRolePermission | func (s *RoleService) DeleteRolePermission(p *DeleteRolePermissionParams) (*DeleteRolePermissionResponse, error) {
resp, err := s.cs.newRequest("deleteRolePermission", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteRolePermissionResponse
if err := json.Unmarshal(resp, &r); err != nil {
return ... | go | func (s *RoleService) DeleteRolePermission(p *DeleteRolePermissionParams) (*DeleteRolePermissionResponse, error) {
resp, err := s.cs.newRequest("deleteRolePermission", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteRolePermissionResponse
if err := json.Unmarshal(resp, &r); err != nil {
return ... | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"DeleteRolePermission",
"(",
"p",
"*",
"DeleteRolePermissionParams",
")",
"(",
"*",
"DeleteRolePermissionResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"... | // Deletes a role permission | [
"Deletes",
"a",
"role",
"permission"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L298-L310 |
23,131 | xanzy/go-cloudstack | cloudstack/RoleService.go | NewListRolePermissionsParams | func (s *RoleService) NewListRolePermissionsParams() *ListRolePermissionsParams {
p := &ListRolePermissionsParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *RoleService) NewListRolePermissionsParams() *ListRolePermissionsParams {
p := &ListRolePermissionsParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"NewListRolePermissionsParams",
"(",
")",
"*",
"ListRolePermissionsParams",
"{",
"p",
":=",
"&",
"ListRolePermissionsParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
... | // You should always use this function to get a new ListRolePermissionsParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListRolePermissionsParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L361-L365 |
23,132 | xanzy/go-cloudstack | cloudstack/RoleService.go | ListRolePermissions | func (s *RoleService) ListRolePermissions(p *ListRolePermissionsParams) (*ListRolePermissionsResponse, error) {
resp, err := s.cs.newRequest("listRolePermissions", p.toURLValues())
if err != nil {
return nil, err
}
var r ListRolePermissionsResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, ... | go | func (s *RoleService) ListRolePermissions(p *ListRolePermissionsParams) (*ListRolePermissionsResponse, error) {
resp, err := s.cs.newRequest("listRolePermissions", p.toURLValues())
if err != nil {
return nil, err
}
var r ListRolePermissionsResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, ... | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"ListRolePermissions",
"(",
"p",
"*",
"ListRolePermissionsParams",
")",
"(",
"*",
"ListRolePermissionsResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\""... | // Lists role permissions | [
"Lists",
"role",
"permissions"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L368-L380 |
23,133 | xanzy/go-cloudstack | cloudstack/RoleService.go | NewListRolesParams | func (s *RoleService) NewListRolesParams() *ListRolesParams {
p := &ListRolesParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *RoleService) NewListRolesParams() *ListRolesParams {
p := &ListRolesParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"NewListRolesParams",
"(",
")",
"*",
"ListRolesParams",
"{",
"p",
":=",
"&",
"ListRolesParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
")",
"\n",
... | // You should always use this function to get a new ListRolesParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListRolesParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L443-L447 |
23,134 | xanzy/go-cloudstack | cloudstack/RoleService.go | ListRoles | func (s *RoleService) ListRoles(p *ListRolesParams) (*ListRolesResponse, error) {
resp, err := s.cs.newRequest("listRoles", p.toURLValues())
if err != nil {
return nil, err
}
var r ListRolesResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, nil
} | go | func (s *RoleService) ListRoles(p *ListRolesParams) (*ListRolesResponse, error) {
resp, err := s.cs.newRequest("listRoles", p.toURLValues())
if err != nil {
return nil, err
}
var r ListRolesResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, nil
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"ListRoles",
"(",
"p",
"*",
"ListRolesParams",
")",
"(",
"*",
"ListRolesResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",
"p",
".",
"toUR... | // Lists dynamic roles in CloudStack | [
"Lists",
"dynamic",
"roles",
"in",
"CloudStack"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L533-L545 |
23,135 | xanzy/go-cloudstack | cloudstack/RoleService.go | NewUpdateRoleParams | func (s *RoleService) NewUpdateRoleParams(id string) *UpdateRoleParams {
p := &UpdateRoleParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *RoleService) NewUpdateRoleParams(id string) *UpdateRoleParams {
p := &UpdateRoleParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"NewUpdateRoleParams",
"(",
"id",
"string",
")",
"*",
"UpdateRoleParams",
"{",
"p",
":=",
"&",
"UpdateRoleParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
... | // You should always use this function to get a new UpdateRoleParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"UpdateRoleParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L617-L622 |
23,136 | xanzy/go-cloudstack | cloudstack/RoleService.go | UpdateRole | func (s *RoleService) UpdateRole(p *UpdateRoleParams) (*UpdateRoleResponse, error) {
resp, err := s.cs.newRequest("updateRole", p.toURLValues())
if err != nil {
return nil, err
}
var r UpdateRoleResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, nil
} | go | func (s *RoleService) UpdateRole(p *UpdateRoleParams) (*UpdateRoleResponse, error) {
resp, err := s.cs.newRequest("updateRole", p.toURLValues())
if err != nil {
return nil, err
}
var r UpdateRoleResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, nil
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"UpdateRole",
"(",
"p",
"*",
"UpdateRoleParams",
")",
"(",
"*",
"UpdateRoleResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",
"p",
".",
"t... | // Updates a role | [
"Updates",
"a",
"role"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L625-L637 |
23,137 | xanzy/go-cloudstack | cloudstack/RoleService.go | NewUpdateRolePermissionParams | func (s *RoleService) NewUpdateRolePermissionParams(roleid string) *UpdateRolePermissionParams {
p := &UpdateRolePermissionParams{}
p.p = make(map[string]interface{})
p.p["roleid"] = roleid
return p
} | go | func (s *RoleService) NewUpdateRolePermissionParams(roleid string) *UpdateRolePermissionParams {
p := &UpdateRolePermissionParams{}
p.p = make(map[string]interface{})
p.p["roleid"] = roleid
return p
} | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"NewUpdateRolePermissionParams",
"(",
"roleid",
"string",
")",
"*",
"UpdateRolePermissionParams",
"{",
"p",
":=",
"&",
"UpdateRolePermissionParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"stri... | // You should always use this function to get a new UpdateRolePermissionParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"UpdateRolePermissionParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L705-L710 |
23,138 | xanzy/go-cloudstack | cloudstack/RoleService.go | UpdateRolePermission | func (s *RoleService) UpdateRolePermission(p *UpdateRolePermissionParams) (*UpdateRolePermissionResponse, error) {
resp, err := s.cs.newRequest("updateRolePermission", p.toURLValues())
if err != nil {
return nil, err
}
var r UpdateRolePermissionResponse
if err := json.Unmarshal(resp, &r); err != nil {
return ... | go | func (s *RoleService) UpdateRolePermission(p *UpdateRolePermissionParams) (*UpdateRolePermissionResponse, error) {
resp, err := s.cs.newRequest("updateRolePermission", p.toURLValues())
if err != nil {
return nil, err
}
var r UpdateRolePermissionResponse
if err := json.Unmarshal(resp, &r); err != nil {
return ... | [
"func",
"(",
"s",
"*",
"RoleService",
")",
"UpdateRolePermission",
"(",
"p",
"*",
"UpdateRolePermissionParams",
")",
"(",
"*",
"UpdateRolePermissionResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"... | // Updates a role permission order | [
"Updates",
"a",
"role",
"permission",
"order"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/RoleService.go#L713-L725 |
23,139 | xanzy/go-cloudstack | cloudstack/BrocadeVCSService.go | NewAddBrocadeVcsDeviceParams | func (s *BrocadeVCSService) NewAddBrocadeVcsDeviceParams(hostname string, password string, physicalnetworkid string, username string) *AddBrocadeVcsDeviceParams {
p := &AddBrocadeVcsDeviceParams{}
p.p = make(map[string]interface{})
p.p["hostname"] = hostname
p.p["password"] = password
p.p["physicalnetworkid"] = ph... | go | func (s *BrocadeVCSService) NewAddBrocadeVcsDeviceParams(hostname string, password string, physicalnetworkid string, username string) *AddBrocadeVcsDeviceParams {
p := &AddBrocadeVcsDeviceParams{}
p.p = make(map[string]interface{})
p.p["hostname"] = hostname
p.p["password"] = password
p.p["physicalnetworkid"] = ph... | [
"func",
"(",
"s",
"*",
"BrocadeVCSService",
")",
"NewAddBrocadeVcsDeviceParams",
"(",
"hostname",
"string",
",",
"password",
"string",
",",
"physicalnetworkid",
"string",
",",
"username",
"string",
")",
"*",
"AddBrocadeVcsDeviceParams",
"{",
"p",
":=",
"&",
"AddBr... | // You should always use this function to get a new AddBrocadeVcsDeviceParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"AddBrocadeVcsDeviceParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/BrocadeVCSService.go#L84-L92 |
23,140 | xanzy/go-cloudstack | cloudstack/BrocadeVCSService.go | AddBrocadeVcsDevice | func (s *BrocadeVCSService) AddBrocadeVcsDevice(p *AddBrocadeVcsDeviceParams) (*AddBrocadeVcsDeviceResponse, error) {
resp, err := s.cs.newRequest("addBrocadeVcsDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r AddBrocadeVcsDeviceResponse
if err := json.Unmarshal(resp, &r); err != nil {
return... | go | func (s *BrocadeVCSService) AddBrocadeVcsDevice(p *AddBrocadeVcsDeviceParams) (*AddBrocadeVcsDeviceResponse, error) {
resp, err := s.cs.newRequest("addBrocadeVcsDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r AddBrocadeVcsDeviceResponse
if err := json.Unmarshal(resp, &r); err != nil {
return... | [
"func",
"(",
"s",
"*",
"BrocadeVCSService",
")",
"AddBrocadeVcsDevice",
"(",
"p",
"*",
"AddBrocadeVcsDeviceParams",
")",
"(",
"*",
"AddBrocadeVcsDeviceResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
... | // Adds a Brocade VCS Switch | [
"Adds",
"a",
"Brocade",
"VCS",
"Switch"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/BrocadeVCSService.go#L95-L127 |
23,141 | xanzy/go-cloudstack | cloudstack/BrocadeVCSService.go | NewDeleteBrocadeVcsDeviceParams | func (s *BrocadeVCSService) NewDeleteBrocadeVcsDeviceParams(vcsdeviceid string) *DeleteBrocadeVcsDeviceParams {
p := &DeleteBrocadeVcsDeviceParams{}
p.p = make(map[string]interface{})
p.p["vcsdeviceid"] = vcsdeviceid
return p
} | go | func (s *BrocadeVCSService) NewDeleteBrocadeVcsDeviceParams(vcsdeviceid string) *DeleteBrocadeVcsDeviceParams {
p := &DeleteBrocadeVcsDeviceParams{}
p.p = make(map[string]interface{})
p.p["vcsdeviceid"] = vcsdeviceid
return p
} | [
"func",
"(",
"s",
"*",
"BrocadeVCSService",
")",
"NewDeleteBrocadeVcsDeviceParams",
"(",
"vcsdeviceid",
"string",
")",
"*",
"DeleteBrocadeVcsDeviceParams",
"{",
"p",
":=",
"&",
"DeleteBrocadeVcsDeviceParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map... | // You should always use this function to get a new DeleteBrocadeVcsDeviceParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteBrocadeVcsDeviceParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/BrocadeVCSService.go#L163-L168 |
23,142 | xanzy/go-cloudstack | cloudstack/BrocadeVCSService.go | DeleteBrocadeVcsDevice | func (s *BrocadeVCSService) DeleteBrocadeVcsDevice(p *DeleteBrocadeVcsDeviceParams) (*DeleteBrocadeVcsDeviceResponse, error) {
resp, err := s.cs.newRequest("deleteBrocadeVcsDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteBrocadeVcsDeviceResponse
if err := json.Unmarshal(resp, &r); err !=... | go | func (s *BrocadeVCSService) DeleteBrocadeVcsDevice(p *DeleteBrocadeVcsDeviceParams) (*DeleteBrocadeVcsDeviceResponse, error) {
resp, err := s.cs.newRequest("deleteBrocadeVcsDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteBrocadeVcsDeviceResponse
if err := json.Unmarshal(resp, &r); err !=... | [
"func",
"(",
"s",
"*",
"BrocadeVCSService",
")",
"DeleteBrocadeVcsDevice",
"(",
"p",
"*",
"DeleteBrocadeVcsDeviceParams",
")",
"(",
"*",
"DeleteBrocadeVcsDeviceResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",... | // delete a Brocade VCS Switch | [
"delete",
"a",
"Brocade",
"VCS",
"Switch"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/BrocadeVCSService.go#L171-L198 |
23,143 | xanzy/go-cloudstack | cloudstack/BrocadeVCSService.go | NewListBrocadeVcsDeviceNetworksParams | func (s *BrocadeVCSService) NewListBrocadeVcsDeviceNetworksParams(vcsdeviceid string) *ListBrocadeVcsDeviceNetworksParams {
p := &ListBrocadeVcsDeviceNetworksParams{}
p.p = make(map[string]interface{})
p.p["vcsdeviceid"] = vcsdeviceid
return p
} | go | func (s *BrocadeVCSService) NewListBrocadeVcsDeviceNetworksParams(vcsdeviceid string) *ListBrocadeVcsDeviceNetworksParams {
p := &ListBrocadeVcsDeviceNetworksParams{}
p.p = make(map[string]interface{})
p.p["vcsdeviceid"] = vcsdeviceid
return p
} | [
"func",
"(",
"s",
"*",
"BrocadeVCSService",
")",
"NewListBrocadeVcsDeviceNetworksParams",
"(",
"vcsdeviceid",
"string",
")",
"*",
"ListBrocadeVcsDeviceNetworksParams",
"{",
"p",
":=",
"&",
"ListBrocadeVcsDeviceNetworksParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"ma... | // You should always use this function to get a new ListBrocadeVcsDeviceNetworksParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListBrocadeVcsDeviceNetworksParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/BrocadeVCSService.go#L266-L271 |
23,144 | xanzy/go-cloudstack | cloudstack/BrocadeVCSService.go | ListBrocadeVcsDeviceNetworks | func (s *BrocadeVCSService) ListBrocadeVcsDeviceNetworks(p *ListBrocadeVcsDeviceNetworksParams) (*ListBrocadeVcsDeviceNetworksResponse, error) {
resp, err := s.cs.newRequest("listBrocadeVcsDeviceNetworks", p.toURLValues())
if err != nil {
return nil, err
}
var r ListBrocadeVcsDeviceNetworksResponse
if err := js... | go | func (s *BrocadeVCSService) ListBrocadeVcsDeviceNetworks(p *ListBrocadeVcsDeviceNetworksParams) (*ListBrocadeVcsDeviceNetworksResponse, error) {
resp, err := s.cs.newRequest("listBrocadeVcsDeviceNetworks", p.toURLValues())
if err != nil {
return nil, err
}
var r ListBrocadeVcsDeviceNetworksResponse
if err := js... | [
"func",
"(",
"s",
"*",
"BrocadeVCSService",
")",
"ListBrocadeVcsDeviceNetworks",
"(",
"p",
"*",
"ListBrocadeVcsDeviceNetworksParams",
")",
"(",
"*",
"ListBrocadeVcsDeviceNetworksResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"n... | // lists network that are using a brocade vcs switch | [
"lists",
"network",
"that",
"are",
"using",
"a",
"brocade",
"vcs",
"switch"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/BrocadeVCSService.go#L311-L323 |
23,145 | xanzy/go-cloudstack | cloudstack/BrocadeVCSService.go | NewListBrocadeVcsDevicesParams | func (s *BrocadeVCSService) NewListBrocadeVcsDevicesParams() *ListBrocadeVcsDevicesParams {
p := &ListBrocadeVcsDevicesParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *BrocadeVCSService) NewListBrocadeVcsDevicesParams() *ListBrocadeVcsDevicesParams {
p := &ListBrocadeVcsDevicesParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"BrocadeVCSService",
")",
"NewListBrocadeVcsDevicesParams",
"(",
")",
"*",
"ListBrocadeVcsDevicesParams",
"{",
"p",
":=",
"&",
"ListBrocadeVcsDevicesParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"... | // You should always use this function to get a new ListBrocadeVcsDevicesParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListBrocadeVcsDevicesParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/BrocadeVCSService.go#L476-L480 |
23,146 | xanzy/go-cloudstack | cloudstack/BrocadeVCSService.go | ListBrocadeVcsDevices | func (s *BrocadeVCSService) ListBrocadeVcsDevices(p *ListBrocadeVcsDevicesParams) (*ListBrocadeVcsDevicesResponse, error) {
resp, err := s.cs.newRequest("listBrocadeVcsDevices", p.toURLValues())
if err != nil {
return nil, err
}
var r ListBrocadeVcsDevicesResponse
if err := json.Unmarshal(resp, &r); err != nil ... | go | func (s *BrocadeVCSService) ListBrocadeVcsDevices(p *ListBrocadeVcsDevicesParams) (*ListBrocadeVcsDevicesResponse, error) {
resp, err := s.cs.newRequest("listBrocadeVcsDevices", p.toURLValues())
if err != nil {
return nil, err
}
var r ListBrocadeVcsDevicesResponse
if err := json.Unmarshal(resp, &r); err != nil ... | [
"func",
"(",
"s",
"*",
"BrocadeVCSService",
")",
"ListBrocadeVcsDevices",
"(",
"p",
"*",
"ListBrocadeVcsDevicesParams",
")",
"(",
"*",
"ListBrocadeVcsDevicesResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
... | // Lists Brocade VCS Switches | [
"Lists",
"Brocade",
"VCS",
"Switches"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/BrocadeVCSService.go#L483-L495 |
23,147 | xanzy/go-cloudstack | cloudstack/VLANService.go | NewCreateVlanIpRangeParams | func (s *VLANService) NewCreateVlanIpRangeParams() *CreateVlanIpRangeParams {
p := &CreateVlanIpRangeParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *VLANService) NewCreateVlanIpRangeParams() *CreateVlanIpRangeParams {
p := &CreateVlanIpRangeParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"NewCreateVlanIpRangeParams",
"(",
")",
"*",
"CreateVlanIpRangeParams",
"{",
"p",
":=",
"&",
"CreateVlanIpRangeParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",... | // You should always use this function to get a new CreateVlanIpRangeParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"CreateVlanIpRangeParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L241-L245 |
23,148 | xanzy/go-cloudstack | cloudstack/VLANService.go | NewDedicateGuestVlanRangeParams | func (s *VLANService) NewDedicateGuestVlanRangeParams(physicalnetworkid string, vlanrange string) *DedicateGuestVlanRangeParams {
p := &DedicateGuestVlanRangeParams{}
p.p = make(map[string]interface{})
p.p["physicalnetworkid"] = physicalnetworkid
p.p["vlanrange"] = vlanrange
return p
} | go | func (s *VLANService) NewDedicateGuestVlanRangeParams(physicalnetworkid string, vlanrange string) *DedicateGuestVlanRangeParams {
p := &DedicateGuestVlanRangeParams{}
p.p = make(map[string]interface{})
p.p["physicalnetworkid"] = physicalnetworkid
p.p["vlanrange"] = vlanrange
return p
} | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"NewDedicateGuestVlanRangeParams",
"(",
"physicalnetworkid",
"string",
",",
"vlanrange",
"string",
")",
"*",
"DedicateGuestVlanRangeParams",
"{",
"p",
":=",
"&",
"DedicateGuestVlanRangeParams",
"{",
"}",
"\n",
"p",
".",
"... | // You should always use this function to get a new DedicateGuestVlanRangeParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DedicateGuestVlanRangeParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L357-L363 |
23,149 | xanzy/go-cloudstack | cloudstack/VLANService.go | DedicateGuestVlanRange | func (s *VLANService) DedicateGuestVlanRange(p *DedicateGuestVlanRangeParams) (*DedicateGuestVlanRangeResponse, error) {
resp, err := s.cs.newRequest("dedicateGuestVlanRange", p.toURLValues())
if err != nil {
return nil, err
}
var r DedicateGuestVlanRangeResponse
if err := json.Unmarshal(resp, &r); err != nil {... | go | func (s *VLANService) DedicateGuestVlanRange(p *DedicateGuestVlanRangeParams) (*DedicateGuestVlanRangeResponse, error) {
resp, err := s.cs.newRequest("dedicateGuestVlanRange", p.toURLValues())
if err != nil {
return nil, err
}
var r DedicateGuestVlanRangeResponse
if err := json.Unmarshal(resp, &r); err != nil {... | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"DedicateGuestVlanRange",
"(",
"p",
"*",
"DedicateGuestVlanRangeParams",
")",
"(",
"*",
"DedicateGuestVlanRangeResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"... | // Dedicates a guest vlan range to an account | [
"Dedicates",
"a",
"guest",
"vlan",
"range",
"to",
"an",
"account"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L366-L378 |
23,150 | xanzy/go-cloudstack | cloudstack/VLANService.go | NewDeleteVlanIpRangeParams | func (s *VLANService) NewDeleteVlanIpRangeParams(id string) *DeleteVlanIpRangeParams {
p := &DeleteVlanIpRangeParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *VLANService) NewDeleteVlanIpRangeParams(id string) *DeleteVlanIpRangeParams {
p := &DeleteVlanIpRangeParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"NewDeleteVlanIpRangeParams",
"(",
"id",
"string",
")",
"*",
"DeleteVlanIpRangeParams",
"{",
"p",
":=",
"&",
"DeleteVlanIpRangeParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
... | // You should always use this function to get a new DeleteVlanIpRangeParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteVlanIpRangeParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L417-L422 |
23,151 | xanzy/go-cloudstack | cloudstack/VLANService.go | NewListDedicatedGuestVlanRangesParams | func (s *VLANService) NewListDedicatedGuestVlanRangesParams() *ListDedicatedGuestVlanRangesParams {
p := &ListDedicatedGuestVlanRangesParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *VLANService) NewListDedicatedGuestVlanRangesParams() *ListDedicatedGuestVlanRangesParams {
p := &ListDedicatedGuestVlanRangesParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"NewListDedicatedGuestVlanRangesParams",
"(",
")",
"*",
"ListDedicatedGuestVlanRangesParams",
"{",
"p",
":=",
"&",
"ListDedicatedGuestVlanRangesParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"stri... | // You should always use this function to get a new ListDedicatedGuestVlanRangesParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListDedicatedGuestVlanRangesParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L589-L593 |
23,152 | xanzy/go-cloudstack | cloudstack/VLANService.go | ListDedicatedGuestVlanRanges | func (s *VLANService) ListDedicatedGuestVlanRanges(p *ListDedicatedGuestVlanRangesParams) (*ListDedicatedGuestVlanRangesResponse, error) {
resp, err := s.cs.newRequest("listDedicatedGuestVlanRanges", p.toURLValues())
if err != nil {
return nil, err
}
var r ListDedicatedGuestVlanRangesResponse
if err := json.Unm... | go | func (s *VLANService) ListDedicatedGuestVlanRanges(p *ListDedicatedGuestVlanRangesParams) (*ListDedicatedGuestVlanRangesResponse, error) {
resp, err := s.cs.newRequest("listDedicatedGuestVlanRanges", p.toURLValues())
if err != nil {
return nil, err
}
var r ListDedicatedGuestVlanRangesResponse
if err := json.Unm... | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"ListDedicatedGuestVlanRanges",
"(",
"p",
"*",
"ListDedicatedGuestVlanRangesParams",
")",
"(",
"*",
"ListDedicatedGuestVlanRangesResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequ... | // Lists dedicated guest vlan ranges | [
"Lists",
"dedicated",
"guest",
"vlan",
"ranges"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L629-L641 |
23,153 | xanzy/go-cloudstack | cloudstack/VLANService.go | NewListVlanIpRangesParams | func (s *VLANService) NewListVlanIpRangesParams() *ListVlanIpRangesParams {
p := &ListVlanIpRangesParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *VLANService) NewListVlanIpRangesParams() *ListVlanIpRangesParams {
p := &ListVlanIpRangesParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"NewListVlanIpRangesParams",
"(",
")",
"*",
"ListVlanIpRangesParams",
"{",
"p",
":=",
"&",
"ListVlanIpRangesParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interface",
"{",
... | // You should always use this function to get a new ListVlanIpRangesParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListVlanIpRangesParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L820-L824 |
23,154 | xanzy/go-cloudstack | cloudstack/VLANService.go | ListVlanIpRanges | func (s *VLANService) ListVlanIpRanges(p *ListVlanIpRangesParams) (*ListVlanIpRangesResponse, error) {
resp, err := s.cs.newRequest("listVlanIpRanges", p.toURLValues())
if err != nil {
return nil, err
}
var r ListVlanIpRangesResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return... | go | func (s *VLANService) ListVlanIpRanges(p *ListVlanIpRangesParams) (*ListVlanIpRangesResponse, error) {
resp, err := s.cs.newRequest("listVlanIpRanges", p.toURLValues())
if err != nil {
return nil, err
}
var r ListVlanIpRangesResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return... | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"ListVlanIpRanges",
"(",
"p",
"*",
"ListVlanIpRangesParams",
")",
"(",
"*",
"ListVlanIpRangesResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",
... | // Lists all VLAN IP ranges. | [
"Lists",
"all",
"VLAN",
"IP",
"ranges",
"."
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L860-L872 |
23,155 | xanzy/go-cloudstack | cloudstack/VLANService.go | NewReleaseDedicatedGuestVlanRangeParams | func (s *VLANService) NewReleaseDedicatedGuestVlanRangeParams(id string) *ReleaseDedicatedGuestVlanRangeParams {
p := &ReleaseDedicatedGuestVlanRangeParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *VLANService) NewReleaseDedicatedGuestVlanRangeParams(id string) *ReleaseDedicatedGuestVlanRangeParams {
p := &ReleaseDedicatedGuestVlanRangeParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"NewReleaseDedicatedGuestVlanRangeParams",
"(",
"id",
"string",
")",
"*",
"ReleaseDedicatedGuestVlanRangeParams",
"{",
"p",
":=",
"&",
"ReleaseDedicatedGuestVlanRangeParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(... | // You should always use this function to get a new ReleaseDedicatedGuestVlanRangeParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ReleaseDedicatedGuestVlanRangeParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L930-L935 |
23,156 | xanzy/go-cloudstack | cloudstack/VLANService.go | ReleaseDedicatedGuestVlanRange | func (s *VLANService) ReleaseDedicatedGuestVlanRange(p *ReleaseDedicatedGuestVlanRangeParams) (*ReleaseDedicatedGuestVlanRangeResponse, error) {
resp, err := s.cs.newRequest("releaseDedicatedGuestVlanRange", p.toURLValues())
if err != nil {
return nil, err
}
var r ReleaseDedicatedGuestVlanRangeResponse
if err :... | go | func (s *VLANService) ReleaseDedicatedGuestVlanRange(p *ReleaseDedicatedGuestVlanRangeParams) (*ReleaseDedicatedGuestVlanRangeResponse, error) {
resp, err := s.cs.newRequest("releaseDedicatedGuestVlanRange", p.toURLValues())
if err != nil {
return nil, err
}
var r ReleaseDedicatedGuestVlanRangeResponse
if err :... | [
"func",
"(",
"s",
"*",
"VLANService",
")",
"ReleaseDedicatedGuestVlanRange",
"(",
"p",
"*",
"ReleaseDedicatedGuestVlanRangeParams",
")",
"(",
"*",
"ReleaseDedicatedGuestVlanRangeResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"n... | // Releases a dedicated guest vlan range to the system | [
"Releases",
"a",
"dedicated",
"guest",
"vlan",
"range",
"to",
"the",
"system"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/VLANService.go#L938-L965 |
23,157 | xanzy/go-cloudstack | cloudstack/NATService.go | NewCreateIpForwardingRuleParams | func (s *NATService) NewCreateIpForwardingRuleParams(ipaddressid string, protocol string, startport int) *CreateIpForwardingRuleParams {
p := &CreateIpForwardingRuleParams{}
p.p = make(map[string]interface{})
p.p["ipaddressid"] = ipaddressid
p.p["protocol"] = protocol
p.p["startport"] = startport
return p
} | go | func (s *NATService) NewCreateIpForwardingRuleParams(ipaddressid string, protocol string, startport int) *CreateIpForwardingRuleParams {
p := &CreateIpForwardingRuleParams{}
p.p = make(map[string]interface{})
p.p["ipaddressid"] = ipaddressid
p.p["protocol"] = protocol
p.p["startport"] = startport
return p
} | [
"func",
"(",
"s",
"*",
"NATService",
")",
"NewCreateIpForwardingRuleParams",
"(",
"ipaddressid",
"string",
",",
"protocol",
"string",
",",
"startport",
"int",
")",
"*",
"CreateIpForwardingRuleParams",
"{",
"p",
":=",
"&",
"CreateIpForwardingRuleParams",
"{",
"}",
... | // You should always use this function to get a new CreateIpForwardingRuleParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"CreateIpForwardingRuleParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L111-L118 |
23,158 | xanzy/go-cloudstack | cloudstack/NATService.go | CreateIpForwardingRule | func (s *NATService) CreateIpForwardingRule(p *CreateIpForwardingRuleParams) (*CreateIpForwardingRuleResponse, error) {
resp, err := s.cs.newRequest("createIpForwardingRule", p.toURLValues())
if err != nil {
return nil, err
}
var r CreateIpForwardingRuleResponse
if err := json.Unmarshal(resp, &r); err != nil {
... | go | func (s *NATService) CreateIpForwardingRule(p *CreateIpForwardingRuleParams) (*CreateIpForwardingRuleResponse, error) {
resp, err := s.cs.newRequest("createIpForwardingRule", p.toURLValues())
if err != nil {
return nil, err
}
var r CreateIpForwardingRuleResponse
if err := json.Unmarshal(resp, &r); err != nil {
... | [
"func",
"(",
"s",
"*",
"NATService",
")",
"CreateIpForwardingRule",
"(",
"p",
"*",
"CreateIpForwardingRuleParams",
")",
"(",
"*",
"CreateIpForwardingRuleResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\""... | // Creates an IP forwarding rule | [
"Creates",
"an",
"IP",
"forwarding",
"rule"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L121-L153 |
23,159 | xanzy/go-cloudstack | cloudstack/NATService.go | NewDeleteIpForwardingRuleParams | func (s *NATService) NewDeleteIpForwardingRuleParams(id string) *DeleteIpForwardingRuleParams {
p := &DeleteIpForwardingRuleParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *NATService) NewDeleteIpForwardingRuleParams(id string) *DeleteIpForwardingRuleParams {
p := &DeleteIpForwardingRuleParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"NATService",
")",
"NewDeleteIpForwardingRuleParams",
"(",
"id",
"string",
")",
"*",
"DeleteIpForwardingRuleParams",
"{",
"p",
":=",
"&",
"DeleteIpForwardingRuleParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"str... | // You should always use this function to get a new DeleteIpForwardingRuleParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteIpForwardingRuleParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L201-L206 |
23,160 | xanzy/go-cloudstack | cloudstack/NATService.go | DeleteIpForwardingRule | func (s *NATService) DeleteIpForwardingRule(p *DeleteIpForwardingRuleParams) (*DeleteIpForwardingRuleResponse, error) {
resp, err := s.cs.newRequest("deleteIpForwardingRule", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteIpForwardingRuleResponse
if err := json.Unmarshal(resp, &r); err != nil {
... | go | func (s *NATService) DeleteIpForwardingRule(p *DeleteIpForwardingRuleParams) (*DeleteIpForwardingRuleResponse, error) {
resp, err := s.cs.newRequest("deleteIpForwardingRule", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteIpForwardingRuleResponse
if err := json.Unmarshal(resp, &r); err != nil {
... | [
"func",
"(",
"s",
"*",
"NATService",
")",
"DeleteIpForwardingRule",
"(",
"p",
"*",
"DeleteIpForwardingRuleParams",
")",
"(",
"*",
"DeleteIpForwardingRuleResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\""... | // Deletes an IP forwarding rule | [
"Deletes",
"an",
"IP",
"forwarding",
"rule"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L209-L236 |
23,161 | xanzy/go-cloudstack | cloudstack/NATService.go | NewDisableStaticNatParams | func (s *NATService) NewDisableStaticNatParams(ipaddressid string) *DisableStaticNatParams {
p := &DisableStaticNatParams{}
p.p = make(map[string]interface{})
p.p["ipaddressid"] = ipaddressid
return p
} | go | func (s *NATService) NewDisableStaticNatParams(ipaddressid string) *DisableStaticNatParams {
p := &DisableStaticNatParams{}
p.p = make(map[string]interface{})
p.p["ipaddressid"] = ipaddressid
return p
} | [
"func",
"(",
"s",
"*",
"NATService",
")",
"NewDisableStaticNatParams",
"(",
"ipaddressid",
"string",
")",
"*",
"DisableStaticNatParams",
"{",
"p",
":=",
"&",
"DisableStaticNatParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"... | // You should always use this function to get a new DisableStaticNatParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DisableStaticNatParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L269-L274 |
23,162 | xanzy/go-cloudstack | cloudstack/NATService.go | DisableStaticNat | func (s *NATService) DisableStaticNat(p *DisableStaticNatParams) (*DisableStaticNatResponse, error) {
resp, err := s.cs.newRequest("disableStaticNat", p.toURLValues())
if err != nil {
return nil, err
}
var r DisableStaticNatResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
// If w... | go | func (s *NATService) DisableStaticNat(p *DisableStaticNatParams) (*DisableStaticNatResponse, error) {
resp, err := s.cs.newRequest("disableStaticNat", p.toURLValues())
if err != nil {
return nil, err
}
var r DisableStaticNatResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
// If w... | [
"func",
"(",
"s",
"*",
"NATService",
")",
"DisableStaticNat",
"(",
"p",
"*",
"DisableStaticNatParams",
")",
"(",
"*",
"DisableStaticNatResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",
... | // Disables static rule for given IP address | [
"Disables",
"static",
"rule",
"for",
"given",
"IP",
"address"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L277-L304 |
23,163 | xanzy/go-cloudstack | cloudstack/NATService.go | NewEnableStaticNatParams | func (s *NATService) NewEnableStaticNatParams(ipaddressid string, virtualmachineid string) *EnableStaticNatParams {
p := &EnableStaticNatParams{}
p.p = make(map[string]interface{})
p.p["ipaddressid"] = ipaddressid
p.p["virtualmachineid"] = virtualmachineid
return p
} | go | func (s *NATService) NewEnableStaticNatParams(ipaddressid string, virtualmachineid string) *EnableStaticNatParams {
p := &EnableStaticNatParams{}
p.p = make(map[string]interface{})
p.p["ipaddressid"] = ipaddressid
p.p["virtualmachineid"] = virtualmachineid
return p
} | [
"func",
"(",
"s",
"*",
"NATService",
")",
"NewEnableStaticNatParams",
"(",
"ipaddressid",
"string",
",",
"virtualmachineid",
"string",
")",
"*",
"EnableStaticNatParams",
"{",
"p",
":=",
"&",
"EnableStaticNatParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
... | // You should always use this function to get a new EnableStaticNatParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"EnableStaticNatParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L370-L376 |
23,164 | xanzy/go-cloudstack | cloudstack/NATService.go | EnableStaticNat | func (s *NATService) EnableStaticNat(p *EnableStaticNatParams) (*EnableStaticNatResponse, error) {
resp, err := s.cs.newRequest("enableStaticNat", p.toURLValues())
if err != nil {
return nil, err
}
var r EnableStaticNatResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, n... | go | func (s *NATService) EnableStaticNat(p *EnableStaticNatParams) (*EnableStaticNatResponse, error) {
resp, err := s.cs.newRequest("enableStaticNat", p.toURLValues())
if err != nil {
return nil, err
}
var r EnableStaticNatResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
return &r, n... | [
"func",
"(",
"s",
"*",
"NATService",
")",
"EnableStaticNat",
"(",
"p",
"*",
"EnableStaticNatParams",
")",
"(",
"*",
"EnableStaticNatResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",
"p... | // Enables static NAT for given IP address | [
"Enables",
"static",
"NAT",
"for",
"given",
"IP",
"address"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L379-L391 |
23,165 | xanzy/go-cloudstack | cloudstack/NATService.go | NewListIpForwardingRulesParams | func (s *NATService) NewListIpForwardingRulesParams() *ListIpForwardingRulesParams {
p := &ListIpForwardingRulesParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *NATService) NewListIpForwardingRulesParams() *ListIpForwardingRulesParams {
p := &ListIpForwardingRulesParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"NATService",
")",
"NewListIpForwardingRulesParams",
"(",
")",
"*",
"ListIpForwardingRulesParams",
"{",
"p",
":=",
"&",
"ListIpForwardingRulesParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interfa... | // You should always use this function to get a new ListIpForwardingRulesParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListIpForwardingRulesParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L556-L560 |
23,166 | xanzy/go-cloudstack | cloudstack/NATService.go | ListIpForwardingRules | func (s *NATService) ListIpForwardingRules(p *ListIpForwardingRulesParams) (*ListIpForwardingRulesResponse, error) {
resp, err := s.cs.newRequest("listIpForwardingRules", p.toURLValues())
if err != nil {
return nil, err
}
var r ListIpForwardingRulesResponse
if err := json.Unmarshal(resp, &r); err != nil {
ret... | go | func (s *NATService) ListIpForwardingRules(p *ListIpForwardingRulesParams) (*ListIpForwardingRulesResponse, error) {
resp, err := s.cs.newRequest("listIpForwardingRules", p.toURLValues())
if err != nil {
return nil, err
}
var r ListIpForwardingRulesResponse
if err := json.Unmarshal(resp, &r); err != nil {
ret... | [
"func",
"(",
"s",
"*",
"NATService",
")",
"ListIpForwardingRules",
"(",
"p",
"*",
"ListIpForwardingRulesParams",
")",
"(",
"*",
"ListIpForwardingRulesResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
... | // List the IP forwarding rules | [
"List",
"the",
"IP",
"forwarding",
"rules"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NATService.go#L596-L608 |
23,167 | xanzy/go-cloudstack | cloudstack/NuageVSPService.go | NewAddNuageVspDeviceParams | func (s *NuageVSPService) NewAddNuageVspDeviceParams(hostname string, password string, physicalnetworkid string, port int, username string) *AddNuageVspDeviceParams {
p := &AddNuageVspDeviceParams{}
p.p = make(map[string]interface{})
p.p["hostname"] = hostname
p.p["password"] = password
p.p["physicalnetworkid"] = ... | go | func (s *NuageVSPService) NewAddNuageVspDeviceParams(hostname string, password string, physicalnetworkid string, port int, username string) *AddNuageVspDeviceParams {
p := &AddNuageVspDeviceParams{}
p.p = make(map[string]interface{})
p.p["hostname"] = hostname
p.p["password"] = password
p.p["physicalnetworkid"] = ... | [
"func",
"(",
"s",
"*",
"NuageVSPService",
")",
"NewAddNuageVspDeviceParams",
"(",
"hostname",
"string",
",",
"password",
"string",
",",
"physicalnetworkid",
"string",
",",
"port",
"int",
",",
"username",
"string",
")",
"*",
"AddNuageVspDeviceParams",
"{",
"p",
"... | // You should always use this function to get a new AddNuageVspDeviceParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"AddNuageVspDeviceParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NuageVSPService.go#L130-L139 |
23,168 | xanzy/go-cloudstack | cloudstack/NuageVSPService.go | AddNuageVspDevice | func (s *NuageVSPService) AddNuageVspDevice(p *AddNuageVspDeviceParams) (*AddNuageVspDeviceResponse, error) {
resp, err := s.cs.newRequest("addNuageVspDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r AddNuageVspDeviceResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}... | go | func (s *NuageVSPService) AddNuageVspDevice(p *AddNuageVspDeviceParams) (*AddNuageVspDeviceResponse, error) {
resp, err := s.cs.newRequest("addNuageVspDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r AddNuageVspDeviceResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}... | [
"func",
"(",
"s",
"*",
"NuageVSPService",
")",
"AddNuageVspDevice",
"(",
"p",
"*",
"AddNuageVspDeviceParams",
")",
"(",
"*",
"AddNuageVspDeviceResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
... | // Adds a Nuage VSP device | [
"Adds",
"a",
"Nuage",
"VSP",
"device"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NuageVSPService.go#L142-L174 |
23,169 | xanzy/go-cloudstack | cloudstack/NuageVSPService.go | NewDeleteNuageVspDeviceParams | func (s *NuageVSPService) NewDeleteNuageVspDeviceParams(vspdeviceid string) *DeleteNuageVspDeviceParams {
p := &DeleteNuageVspDeviceParams{}
p.p = make(map[string]interface{})
p.p["vspdeviceid"] = vspdeviceid
return p
} | go | func (s *NuageVSPService) NewDeleteNuageVspDeviceParams(vspdeviceid string) *DeleteNuageVspDeviceParams {
p := &DeleteNuageVspDeviceParams{}
p.p = make(map[string]interface{})
p.p["vspdeviceid"] = vspdeviceid
return p
} | [
"func",
"(",
"s",
"*",
"NuageVSPService",
")",
"NewDeleteNuageVspDeviceParams",
"(",
"vspdeviceid",
"string",
")",
"*",
"DeleteNuageVspDeviceParams",
"{",
"p",
":=",
"&",
"DeleteNuageVspDeviceParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"["... | // You should always use this function to get a new DeleteNuageVspDeviceParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteNuageVspDeviceParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NuageVSPService.go#L215-L220 |
23,170 | xanzy/go-cloudstack | cloudstack/NuageVSPService.go | DeleteNuageVspDevice | func (s *NuageVSPService) DeleteNuageVspDevice(p *DeleteNuageVspDeviceParams) (*DeleteNuageVspDeviceResponse, error) {
resp, err := s.cs.newRequest("deleteNuageVspDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteNuageVspDeviceResponse
if err := json.Unmarshal(resp, &r); err != nil {
ret... | go | func (s *NuageVSPService) DeleteNuageVspDevice(p *DeleteNuageVspDeviceParams) (*DeleteNuageVspDeviceResponse, error) {
resp, err := s.cs.newRequest("deleteNuageVspDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteNuageVspDeviceResponse
if err := json.Unmarshal(resp, &r); err != nil {
ret... | [
"func",
"(",
"s",
"*",
"NuageVSPService",
")",
"DeleteNuageVspDevice",
"(",
"p",
"*",
"DeleteNuageVspDeviceParams",
")",
"(",
"*",
"DeleteNuageVspDeviceResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",... | // delete a nuage vsp device | [
"delete",
"a",
"nuage",
"vsp",
"device"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NuageVSPService.go#L223-L250 |
23,171 | xanzy/go-cloudstack | cloudstack/NuageVSPService.go | NewListNuageVspDevicesParams | func (s *NuageVSPService) NewListNuageVspDevicesParams() *ListNuageVspDevicesParams {
p := &ListNuageVspDevicesParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *NuageVSPService) NewListNuageVspDevicesParams() *ListNuageVspDevicesParams {
p := &ListNuageVspDevicesParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"NuageVSPService",
")",
"NewListNuageVspDevicesParams",
"(",
")",
"*",
"ListNuageVspDevicesParams",
"{",
"p",
":=",
"&",
"ListNuageVspDevicesParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interfac... | // You should always use this function to get a new ListNuageVspDevicesParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListNuageVspDevicesParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NuageVSPService.go#L329-L333 |
23,172 | xanzy/go-cloudstack | cloudstack/NuageVSPService.go | ListNuageVspDevices | func (s *NuageVSPService) ListNuageVspDevices(p *ListNuageVspDevicesParams) (*ListNuageVspDevicesResponse, error) {
resp, err := s.cs.newRequest("listNuageVspDevices", p.toURLValues())
if err != nil {
return nil, err
}
var r ListNuageVspDevicesResponse
if err := json.Unmarshal(resp, &r); err != nil {
return n... | go | func (s *NuageVSPService) ListNuageVspDevices(p *ListNuageVspDevicesParams) (*ListNuageVspDevicesResponse, error) {
resp, err := s.cs.newRequest("listNuageVspDevices", p.toURLValues())
if err != nil {
return nil, err
}
var r ListNuageVspDevicesResponse
if err := json.Unmarshal(resp, &r); err != nil {
return n... | [
"func",
"(",
"s",
"*",
"NuageVSPService",
")",
"ListNuageVspDevices",
"(",
"p",
"*",
"ListNuageVspDevicesParams",
")",
"(",
"*",
"ListNuageVspDevicesResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
... | // Lists Nuage VSP devices | [
"Lists",
"Nuage",
"VSP",
"devices"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NuageVSPService.go#L336-L348 |
23,173 | xanzy/go-cloudstack | cloudstack/NuageVSPService.go | NewUpdateNuageVspDeviceParams | func (s *NuageVSPService) NewUpdateNuageVspDeviceParams(physicalnetworkid string) *UpdateNuageVspDeviceParams {
p := &UpdateNuageVspDeviceParams{}
p.p = make(map[string]interface{})
p.p["physicalnetworkid"] = physicalnetworkid
return p
} | go | func (s *NuageVSPService) NewUpdateNuageVspDeviceParams(physicalnetworkid string) *UpdateNuageVspDeviceParams {
p := &UpdateNuageVspDeviceParams{}
p.p = make(map[string]interface{})
p.p["physicalnetworkid"] = physicalnetworkid
return p
} | [
"func",
"(",
"s",
"*",
"NuageVSPService",
")",
"NewUpdateNuageVspDeviceParams",
"(",
"physicalnetworkid",
"string",
")",
"*",
"UpdateNuageVspDeviceParams",
"{",
"p",
":=",
"&",
"UpdateNuageVspDeviceParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",... | // You should always use this function to get a new UpdateNuageVspDeviceParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"UpdateNuageVspDeviceParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NuageVSPService.go#L473-L478 |
23,174 | xanzy/go-cloudstack | cloudstack/NuageVSPService.go | UpdateNuageVspDevice | func (s *NuageVSPService) UpdateNuageVspDevice(p *UpdateNuageVspDeviceParams) (*UpdateNuageVspDeviceResponse, error) {
resp, err := s.cs.newRequest("updateNuageVspDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r UpdateNuageVspDeviceResponse
if err := json.Unmarshal(resp, &r); err != nil {
ret... | go | func (s *NuageVSPService) UpdateNuageVspDevice(p *UpdateNuageVspDeviceParams) (*UpdateNuageVspDeviceResponse, error) {
resp, err := s.cs.newRequest("updateNuageVspDevice", p.toURLValues())
if err != nil {
return nil, err
}
var r UpdateNuageVspDeviceResponse
if err := json.Unmarshal(resp, &r); err != nil {
ret... | [
"func",
"(",
"s",
"*",
"NuageVSPService",
")",
"UpdateNuageVspDevice",
"(",
"p",
"*",
"UpdateNuageVspDeviceParams",
")",
"(",
"*",
"UpdateNuageVspDeviceResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",... | // Update a Nuage VSP device | [
"Update",
"a",
"Nuage",
"VSP",
"device"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/NuageVSPService.go#L481-L513 |
23,175 | xanzy/go-cloudstack | cloudstack/SecurityGroupService.go | NewAuthorizeSecurityGroupEgressParams | func (s *SecurityGroupService) NewAuthorizeSecurityGroupEgressParams() *AuthorizeSecurityGroupEgressParams {
p := &AuthorizeSecurityGroupEgressParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *SecurityGroupService) NewAuthorizeSecurityGroupEgressParams() *AuthorizeSecurityGroupEgressParams {
p := &AuthorizeSecurityGroupEgressParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"SecurityGroupService",
")",
"NewAuthorizeSecurityGroupEgressParams",
"(",
")",
"*",
"AuthorizeSecurityGroupEgressParams",
"{",
"p",
":=",
"&",
"AuthorizeSecurityGroupEgressParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"["... | // You should always use this function to get a new AuthorizeSecurityGroupEgressParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"AuthorizeSecurityGroupEgressParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/SecurityGroupService.go#L215-L219 |
23,176 | xanzy/go-cloudstack | cloudstack/SecurityGroupService.go | NewAuthorizeSecurityGroupIngressParams | func (s *SecurityGroupService) NewAuthorizeSecurityGroupIngressParams() *AuthorizeSecurityGroupIngressParams {
p := &AuthorizeSecurityGroupIngressParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *SecurityGroupService) NewAuthorizeSecurityGroupIngressParams() *AuthorizeSecurityGroupIngressParams {
p := &AuthorizeSecurityGroupIngressParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"SecurityGroupService",
")",
"NewAuthorizeSecurityGroupIngressParams",
"(",
")",
"*",
"AuthorizeSecurityGroupIngressParams",
"{",
"p",
":=",
"&",
"AuthorizeSecurityGroupIngressParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
... | // You should always use this function to get a new AuthorizeSecurityGroupIngressParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"AuthorizeSecurityGroupIngressParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/SecurityGroupService.go#L431-L435 |
23,177 | xanzy/go-cloudstack | cloudstack/SecurityGroupService.go | NewCreateSecurityGroupParams | func (s *SecurityGroupService) NewCreateSecurityGroupParams(name string) *CreateSecurityGroupParams {
p := &CreateSecurityGroupParams{}
p.p = make(map[string]interface{})
p.p["name"] = name
return p
} | go | func (s *SecurityGroupService) NewCreateSecurityGroupParams(name string) *CreateSecurityGroupParams {
p := &CreateSecurityGroupParams{}
p.p = make(map[string]interface{})
p.p["name"] = name
return p
} | [
"func",
"(",
"s",
"*",
"SecurityGroupService",
")",
"NewCreateSecurityGroupParams",
"(",
"name",
"string",
")",
"*",
"CreateSecurityGroupParams",
"{",
"p",
":=",
"&",
"CreateSecurityGroupParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"... | // You should always use this function to get a new CreateSecurityGroupParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"CreateSecurityGroupParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/SecurityGroupService.go#L560-L565 |
23,178 | xanzy/go-cloudstack | cloudstack/SecurityGroupService.go | NewDeleteSecurityGroupParams | func (s *SecurityGroupService) NewDeleteSecurityGroupParams() *DeleteSecurityGroupParams {
p := &DeleteSecurityGroupParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *SecurityGroupService) NewDeleteSecurityGroupParams() *DeleteSecurityGroupParams {
p := &DeleteSecurityGroupParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"SecurityGroupService",
")",
"NewDeleteSecurityGroupParams",
"(",
")",
"*",
"DeleteSecurityGroupParams",
"{",
"p",
":=",
"&",
"DeleteSecurityGroupParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"int... | // You should always use this function to get a new DeleteSecurityGroupParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteSecurityGroupParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/SecurityGroupService.go#L684-L688 |
23,179 | xanzy/go-cloudstack | cloudstack/SecurityGroupService.go | NewListSecurityGroupsParams | func (s *SecurityGroupService) NewListSecurityGroupsParams() *ListSecurityGroupsParams {
p := &ListSecurityGroupsParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *SecurityGroupService) NewListSecurityGroupsParams() *ListSecurityGroupsParams {
p := &ListSecurityGroupsParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"SecurityGroupService",
")",
"NewListSecurityGroupsParams",
"(",
")",
"*",
"ListSecurityGroupsParams",
"{",
"p",
":=",
"&",
"ListSecurityGroupsParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
"interf... | // You should always use this function to get a new ListSecurityGroupsParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListSecurityGroupsParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/SecurityGroupService.go#L884-L888 |
23,180 | xanzy/go-cloudstack | cloudstack/SecurityGroupService.go | NewRevokeSecurityGroupEgressParams | func (s *SecurityGroupService) NewRevokeSecurityGroupEgressParams(id string) *RevokeSecurityGroupEgressParams {
p := &RevokeSecurityGroupEgressParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *SecurityGroupService) NewRevokeSecurityGroupEgressParams(id string) *RevokeSecurityGroupEgressParams {
p := &RevokeSecurityGroupEgressParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"SecurityGroupService",
")",
"NewRevokeSecurityGroupEgressParams",
"(",
"id",
"string",
")",
"*",
"RevokeSecurityGroupEgressParams",
"{",
"p",
":=",
"&",
"RevokeSecurityGroupEgressParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"... | // You should always use this function to get a new RevokeSecurityGroupEgressParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"RevokeSecurityGroupEgressParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/SecurityGroupService.go#L1047-L1052 |
23,181 | xanzy/go-cloudstack | cloudstack/SecurityGroupService.go | NewRevokeSecurityGroupIngressParams | func (s *SecurityGroupService) NewRevokeSecurityGroupIngressParams(id string) *RevokeSecurityGroupIngressParams {
p := &RevokeSecurityGroupIngressParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *SecurityGroupService) NewRevokeSecurityGroupIngressParams(id string) *RevokeSecurityGroupIngressParams {
p := &RevokeSecurityGroupIngressParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"SecurityGroupService",
")",
"NewRevokeSecurityGroupIngressParams",
"(",
"id",
"string",
")",
"*",
"RevokeSecurityGroupIngressParams",
"{",
"p",
":=",
"&",
"RevokeSecurityGroupIngressParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
... | // You should always use this function to get a new RevokeSecurityGroupIngressParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"RevokeSecurityGroupIngressParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/SecurityGroupService.go#L1115-L1120 |
23,182 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewAddTrafficMonitorParams | func (s *UsageService) NewAddTrafficMonitorParams(url string, zoneid string) *AddTrafficMonitorParams {
p := &AddTrafficMonitorParams{}
p.p = make(map[string]interface{})
p.p["url"] = url
p.p["zoneid"] = zoneid
return p
} | go | func (s *UsageService) NewAddTrafficMonitorParams(url string, zoneid string) *AddTrafficMonitorParams {
p := &AddTrafficMonitorParams{}
p.p = make(map[string]interface{})
p.p["url"] = url
p.p["zoneid"] = zoneid
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewAddTrafficMonitorParams",
"(",
"url",
"string",
",",
"zoneid",
"string",
")",
"*",
"AddTrafficMonitorParams",
"{",
"p",
":=",
"&",
"AddTrafficMonitorParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"... | // You should always use this function to get a new AddTrafficMonitorParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"AddTrafficMonitorParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L84-L90 |
23,183 | xanzy/go-cloudstack | cloudstack/UsageService.go | AddTrafficMonitor | func (s *UsageService) AddTrafficMonitor(p *AddTrafficMonitorParams) (*AddTrafficMonitorResponse, error) {
resp, err := s.cs.newRequest("addTrafficMonitor", p.toURLValues())
if err != nil {
return nil, err
}
var r AddTrafficMonitorResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
... | go | func (s *UsageService) AddTrafficMonitor(p *AddTrafficMonitorParams) (*AddTrafficMonitorResponse, error) {
resp, err := s.cs.newRequest("addTrafficMonitor", p.toURLValues())
if err != nil {
return nil, err
}
var r AddTrafficMonitorResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"AddTrafficMonitor",
"(",
"p",
"*",
"AddTrafficMonitorParams",
")",
"(",
"*",
"AddTrafficMonitorResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
"... | // Adds Traffic Monitor Host for Direct Network Usage | [
"Adds",
"Traffic",
"Monitor",
"Host",
"for",
"Direct",
"Network",
"Usage"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L93-L105 |
23,184 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewAddTrafficTypeParams | func (s *UsageService) NewAddTrafficTypeParams(physicalnetworkid string, traffictype string) *AddTrafficTypeParams {
p := &AddTrafficTypeParams{}
p.p = make(map[string]interface{})
p.p["physicalnetworkid"] = physicalnetworkid
p.p["traffictype"] = traffictype
return p
} | go | func (s *UsageService) NewAddTrafficTypeParams(physicalnetworkid string, traffictype string) *AddTrafficTypeParams {
p := &AddTrafficTypeParams{}
p.p = make(map[string]interface{})
p.p["physicalnetworkid"] = physicalnetworkid
p.p["traffictype"] = traffictype
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewAddTrafficTypeParams",
"(",
"physicalnetworkid",
"string",
",",
"traffictype",
"string",
")",
"*",
"AddTrafficTypeParams",
"{",
"p",
":=",
"&",
"AddTrafficTypeParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
... | // You should always use this function to get a new AddTrafficTypeParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"AddTrafficTypeParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L228-L234 |
23,185 | xanzy/go-cloudstack | cloudstack/UsageService.go | AddTrafficType | func (s *UsageService) AddTrafficType(p *AddTrafficTypeParams) (*AddTrafficTypeResponse, error) {
resp, err := s.cs.newRequest("addTrafficType", p.toURLValues())
if err != nil {
return nil, err
}
var r AddTrafficTypeResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
// If we have a... | go | func (s *UsageService) AddTrafficType(p *AddTrafficTypeParams) (*AddTrafficTypeResponse, error) {
resp, err := s.cs.newRequest("addTrafficType", p.toURLValues())
if err != nil {
return nil, err
}
var r AddTrafficTypeResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
// If we have a... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"AddTrafficType",
"(",
"p",
"*",
"AddTrafficTypeParams",
")",
"(",
"*",
"AddTrafficTypeResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",
"p"... | // Adds traffic type to a physical network | [
"Adds",
"traffic",
"type",
"to",
"a",
"physical",
"network"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L237-L269 |
23,186 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewDeleteTrafficMonitorParams | func (s *UsageService) NewDeleteTrafficMonitorParams(id string) *DeleteTrafficMonitorParams {
p := &DeleteTrafficMonitorParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *UsageService) NewDeleteTrafficMonitorParams(id string) *DeleteTrafficMonitorParams {
p := &DeleteTrafficMonitorParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewDeleteTrafficMonitorParams",
"(",
"id",
"string",
")",
"*",
"DeleteTrafficMonitorParams",
"{",
"p",
":=",
"&",
"DeleteTrafficMonitorParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string"... | // You should always use this function to get a new DeleteTrafficMonitorParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteTrafficMonitorParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L308-L313 |
23,187 | xanzy/go-cloudstack | cloudstack/UsageService.go | DeleteTrafficMonitor | func (s *UsageService) DeleteTrafficMonitor(p *DeleteTrafficMonitorParams) (*DeleteTrafficMonitorResponse, error) {
resp, err := s.cs.newRequest("deleteTrafficMonitor", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteTrafficMonitorResponse
if err := json.Unmarshal(resp, &r); err != nil {
return... | go | func (s *UsageService) DeleteTrafficMonitor(p *DeleteTrafficMonitorParams) (*DeleteTrafficMonitorResponse, error) {
resp, err := s.cs.newRequest("deleteTrafficMonitor", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteTrafficMonitorResponse
if err := json.Unmarshal(resp, &r); err != nil {
return... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"DeleteTrafficMonitor",
"(",
"p",
"*",
"DeleteTrafficMonitorParams",
")",
"(",
"*",
"DeleteTrafficMonitorResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
... | // Deletes an traffic monitor host. | [
"Deletes",
"an",
"traffic",
"monitor",
"host",
"."
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L316-L328 |
23,188 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewDeleteTrafficTypeParams | func (s *UsageService) NewDeleteTrafficTypeParams(id string) *DeleteTrafficTypeParams {
p := &DeleteTrafficTypeParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | go | func (s *UsageService) NewDeleteTrafficTypeParams(id string) *DeleteTrafficTypeParams {
p := &DeleteTrafficTypeParams{}
p.p = make(map[string]interface{})
p.p["id"] = id
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewDeleteTrafficTypeParams",
"(",
"id",
"string",
")",
"*",
"DeleteTrafficTypeParams",
"{",
"p",
":=",
"&",
"DeleteTrafficTypeParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string",
"]",
... | // You should always use this function to get a new DeleteTrafficTypeParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"DeleteTrafficTypeParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L379-L384 |
23,189 | xanzy/go-cloudstack | cloudstack/UsageService.go | DeleteTrafficType | func (s *UsageService) DeleteTrafficType(p *DeleteTrafficTypeParams) (*DeleteTrafficTypeResponse, error) {
resp, err := s.cs.newRequest("deleteTrafficType", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteTrafficTypeResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
... | go | func (s *UsageService) DeleteTrafficType(p *DeleteTrafficTypeParams) (*DeleteTrafficTypeResponse, error) {
resp, err := s.cs.newRequest("deleteTrafficType", p.toURLValues())
if err != nil {
return nil, err
}
var r DeleteTrafficTypeResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"DeleteTrafficType",
"(",
"p",
"*",
"DeleteTrafficTypeParams",
")",
"(",
"*",
"DeleteTrafficTypeResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
"... | // Deletes traffic type of a physical network | [
"Deletes",
"traffic",
"type",
"of",
"a",
"physical",
"network"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L387-L414 |
23,190 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewGenerateUsageRecordsParams | func (s *UsageService) NewGenerateUsageRecordsParams(enddate string, startdate string) *GenerateUsageRecordsParams {
p := &GenerateUsageRecordsParams{}
p.p = make(map[string]interface{})
p.p["enddate"] = enddate
p.p["startdate"] = startdate
return p
} | go | func (s *UsageService) NewGenerateUsageRecordsParams(enddate string, startdate string) *GenerateUsageRecordsParams {
p := &GenerateUsageRecordsParams{}
p.p = make(map[string]interface{})
p.p["enddate"] = enddate
p.p["startdate"] = startdate
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewGenerateUsageRecordsParams",
"(",
"enddate",
"string",
",",
"startdate",
"string",
")",
"*",
"GenerateUsageRecordsParams",
"{",
"p",
":=",
"&",
"GenerateUsageRecordsParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"m... | // You should always use this function to get a new GenerateUsageRecordsParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"GenerateUsageRecordsParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L469-L475 |
23,191 | xanzy/go-cloudstack | cloudstack/UsageService.go | GenerateUsageRecords | func (s *UsageService) GenerateUsageRecords(p *GenerateUsageRecordsParams) (*GenerateUsageRecordsResponse, error) {
resp, err := s.cs.newRequest("generateUsageRecords", p.toURLValues())
if err != nil {
return nil, err
}
var r GenerateUsageRecordsResponse
if err := json.Unmarshal(resp, &r); err != nil {
return... | go | func (s *UsageService) GenerateUsageRecords(p *GenerateUsageRecordsParams) (*GenerateUsageRecordsResponse, error) {
resp, err := s.cs.newRequest("generateUsageRecords", p.toURLValues())
if err != nil {
return nil, err
}
var r GenerateUsageRecordsResponse
if err := json.Unmarshal(resp, &r); err != nil {
return... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"GenerateUsageRecords",
"(",
"p",
"*",
"GenerateUsageRecordsParams",
")",
"(",
"*",
"GenerateUsageRecordsResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
... | // Generates usage records. This will generate records only if there any records to be generated, i.e if the scheduled usage job was not run or failed | [
"Generates",
"usage",
"records",
".",
"This",
"will",
"generate",
"records",
"only",
"if",
"there",
"any",
"records",
"to",
"be",
"generated",
"i",
".",
"e",
"if",
"the",
"scheduled",
"usage",
"job",
"was",
"not",
"run",
"or",
"failed"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L478-L490 |
23,192 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewListTrafficMonitorsParams | func (s *UsageService) NewListTrafficMonitorsParams(zoneid string) *ListTrafficMonitorsParams {
p := &ListTrafficMonitorsParams{}
p.p = make(map[string]interface{})
p.p["zoneid"] = zoneid
return p
} | go | func (s *UsageService) NewListTrafficMonitorsParams(zoneid string) *ListTrafficMonitorsParams {
p := &ListTrafficMonitorsParams{}
p.p = make(map[string]interface{})
p.p["zoneid"] = zoneid
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewListTrafficMonitorsParams",
"(",
"zoneid",
"string",
")",
"*",
"ListTrafficMonitorsParams",
"{",
"p",
":=",
"&",
"ListTrafficMonitorsParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string... | // You should always use this function to get a new ListTrafficMonitorsParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListTrafficMonitorsParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L576-L581 |
23,193 | xanzy/go-cloudstack | cloudstack/UsageService.go | ListTrafficMonitors | func (s *UsageService) ListTrafficMonitors(p *ListTrafficMonitorsParams) (*ListTrafficMonitorsResponse, error) {
resp, err := s.cs.newRequest("listTrafficMonitors", p.toURLValues())
if err != nil {
return nil, err
}
var r ListTrafficMonitorsResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil,... | go | func (s *UsageService) ListTrafficMonitors(p *ListTrafficMonitorsParams) (*ListTrafficMonitorsResponse, error) {
resp, err := s.cs.newRequest("listTrafficMonitors", p.toURLValues())
if err != nil {
return nil, err
}
var r ListTrafficMonitorsResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil,... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"ListTrafficMonitors",
"(",
"p",
"*",
"ListTrafficMonitorsParams",
")",
"(",
"*",
"ListTrafficMonitorsResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"... | // List traffic monitor Hosts. | [
"List",
"traffic",
"monitor",
"Hosts",
"."
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L584-L596 |
23,194 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewListTrafficTypeImplementorsParams | func (s *UsageService) NewListTrafficTypeImplementorsParams() *ListTrafficTypeImplementorsParams {
p := &ListTrafficTypeImplementorsParams{}
p.p = make(map[string]interface{})
return p
} | go | func (s *UsageService) NewListTrafficTypeImplementorsParams() *ListTrafficTypeImplementorsParams {
p := &ListTrafficTypeImplementorsParams{}
p.p = make(map[string]interface{})
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewListTrafficTypeImplementorsParams",
"(",
")",
"*",
"ListTrafficTypeImplementorsParams",
"{",
"p",
":=",
"&",
"ListTrafficTypeImplementorsParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"string... | // You should always use this function to get a new ListTrafficTypeImplementorsParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListTrafficTypeImplementorsParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L671-L675 |
23,195 | xanzy/go-cloudstack | cloudstack/UsageService.go | ListTrafficTypeImplementors | func (s *UsageService) ListTrafficTypeImplementors(p *ListTrafficTypeImplementorsParams) (*ListTrafficTypeImplementorsResponse, error) {
resp, err := s.cs.newRequest("listTrafficTypeImplementors", p.toURLValues())
if err != nil {
return nil, err
}
var r ListTrafficTypeImplementorsResponse
if err := json.Unmarsh... | go | func (s *UsageService) ListTrafficTypeImplementors(p *ListTrafficTypeImplementorsParams) (*ListTrafficTypeImplementorsResponse, error) {
resp, err := s.cs.newRequest("listTrafficTypeImplementors", p.toURLValues())
if err != nil {
return nil, err
}
var r ListTrafficTypeImplementorsResponse
if err := json.Unmarsh... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"ListTrafficTypeImplementors",
"(",
"p",
"*",
"ListTrafficTypeImplementorsParams",
")",
"(",
"*",
"ListTrafficTypeImplementorsResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newReques... | // Lists implementors of implementor of a network traffic type or implementors of all network traffic types | [
"Lists",
"implementors",
"of",
"implementor",
"of",
"a",
"network",
"traffic",
"type",
"or",
"implementors",
"of",
"all",
"network",
"traffic",
"types"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L678-L690 |
23,196 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewListTrafficTypesParams | func (s *UsageService) NewListTrafficTypesParams(physicalnetworkid string) *ListTrafficTypesParams {
p := &ListTrafficTypesParams{}
p.p = make(map[string]interface{})
p.p["physicalnetworkid"] = physicalnetworkid
return p
} | go | func (s *UsageService) NewListTrafficTypesParams(physicalnetworkid string) *ListTrafficTypesParams {
p := &ListTrafficTypesParams{}
p.p = make(map[string]interface{})
p.p["physicalnetworkid"] = physicalnetworkid
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewListTrafficTypesParams",
"(",
"physicalnetworkid",
"string",
")",
"*",
"ListTrafficTypesParams",
"{",
"p",
":=",
"&",
"ListTrafficTypesParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",
"map",
"[",
"stri... | // You should always use this function to get a new ListTrafficTypesParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListTrafficTypesParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L762-L767 |
23,197 | xanzy/go-cloudstack | cloudstack/UsageService.go | ListTrafficTypes | func (s *UsageService) ListTrafficTypes(p *ListTrafficTypesParams) (*ListTrafficTypesResponse, error) {
resp, err := s.cs.newRequest("listTrafficTypes", p.toURLValues())
if err != nil {
return nil, err
}
var r ListTrafficTypesResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
retur... | go | func (s *UsageService) ListTrafficTypes(p *ListTrafficTypesParams) (*ListTrafficTypesResponse, error) {
resp, err := s.cs.newRequest("listTrafficTypes", p.toURLValues())
if err != nil {
return nil, err
}
var r ListTrafficTypesResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
retur... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"ListTrafficTypes",
"(",
"p",
"*",
"ListTrafficTypesParams",
")",
"(",
"*",
"ListTrafficTypesResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",... | // Lists traffic types of a given physical network. | [
"Lists",
"traffic",
"types",
"of",
"a",
"given",
"physical",
"network",
"."
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L807-L819 |
23,198 | xanzy/go-cloudstack | cloudstack/UsageService.go | NewListUsageRecordsParams | func (s *UsageService) NewListUsageRecordsParams(enddate string, startdate string) *ListUsageRecordsParams {
p := &ListUsageRecordsParams{}
p.p = make(map[string]interface{})
p.p["enddate"] = enddate
p.p["startdate"] = startdate
return p
} | go | func (s *UsageService) NewListUsageRecordsParams(enddate string, startdate string) *ListUsageRecordsParams {
p := &ListUsageRecordsParams{}
p.p = make(map[string]interface{})
p.p["enddate"] = enddate
p.p["startdate"] = startdate
return p
} | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"NewListUsageRecordsParams",
"(",
"enddate",
"string",
",",
"startdate",
"string",
")",
"*",
"ListUsageRecordsParams",
"{",
"p",
":=",
"&",
"ListUsageRecordsParams",
"{",
"}",
"\n",
"p",
".",
"p",
"=",
"make",
"(",... | // You should always use this function to get a new ListUsageRecordsParams instance,
// as then you are sure you have configured all required params | [
"You",
"should",
"always",
"use",
"this",
"function",
"to",
"get",
"a",
"new",
"ListUsageRecordsParams",
"instance",
"as",
"then",
"you",
"are",
"sure",
"you",
"have",
"configured",
"all",
"required",
"params"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L986-L992 |
23,199 | xanzy/go-cloudstack | cloudstack/UsageService.go | ListUsageRecords | func (s *UsageService) ListUsageRecords(p *ListUsageRecordsParams) (*ListUsageRecordsResponse, error) {
resp, err := s.cs.newRequest("listUsageRecords", p.toURLValues())
if err != nil {
return nil, err
}
var r ListUsageRecordsResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
retur... | go | func (s *UsageService) ListUsageRecords(p *ListUsageRecordsParams) (*ListUsageRecordsResponse, error) {
resp, err := s.cs.newRequest("listUsageRecords", p.toURLValues())
if err != nil {
return nil, err
}
var r ListUsageRecordsResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}
retur... | [
"func",
"(",
"s",
"*",
"UsageService",
")",
"ListUsageRecords",
"(",
"p",
"*",
"ListUsageRecordsParams",
")",
"(",
"*",
"ListUsageRecordsResponse",
",",
"error",
")",
"{",
"resp",
",",
"err",
":=",
"s",
".",
"cs",
".",
"newRequest",
"(",
"\"",
"\"",
",",... | // Lists usage records for accounts | [
"Lists",
"usage",
"records",
"for",
"accounts"
] | b6f53ed3282d22b6446422879587b0a78e1b0f11 | https://github.com/xanzy/go-cloudstack/blob/b6f53ed3282d22b6446422879587b0a78e1b0f11/cloudstack/UsageService.go#L995-L1007 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.